IT Community - Software Programming, Web Development and Technical Support

Ubuntu root password

This is a discussion on Ubuntu root password within the Operating Systems forums, part of the Computer Hardware/Software and Networking category; Hi, I installed ubuntu 7.10 in my desktop by using live cd successfully. During the installation I given the ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Computer Hardware/Software and Networking > Operating Systems

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 03-31-2008, 11:07 PM
JSureshkumar JSureshkumar is offline
D-Web Sr.Programmer
 
Join Date: Feb 2007
Location: in someone's heart
Posts: 139
JSureshkumar is on a distinguished road
Send a message via Skype™ to JSureshkumar
Default Ubuntu root password

Hi,

I installed ubuntu 7.10 in my desktop by using live cd successfully.
During the installation I given the user name as ubuntu.
Byusing this user rights,I cant perform root access.
For example,When I try to create an user,it asks for root password.
Can anyone help me?
__________________
J Suresh Kumar
Google Hacks
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-31-2008, 11:14 PM
nnraja nnraja is offline
D-Web Programmer
 
Join Date: May 2007
Posts: 94
nnraja is on a distinguished road
Default Re: Ubuntu root password

Read up on 'sudo'.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-31-2008, 11:16 PM
arjkhanna arjkhanna is offline
D-Web Genius
 
Join Date: Mar 2007
Posts: 1,102
arjkhanna is on a distinguished road
Default Re: Ubuntu root password

Quote:
Originally Posted by JSureshkumar View Post
Hi,

I installed ubuntu 7.10 in my desktop by using live cd successfully.
During the installation I given the user name as ubuntu.
Byusing this user rights,I cant perform root access.
For example,When I try to create an user,it asks for root password.
Can anyone help me?

Pls switch to root account
$ sudo su -

Then sudo will prompt you for password, which will give you root-level access

Thanks
__________________
A.Rajesh Khanna
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-31-2008, 11:24 PM
satheesh satheesh is offline
D-Web Programmer
 
Join Date: Aug 2007
Posts: 95
satheesh is on a distinguished road
Default Re: Ubuntu root password

Dear suresh
Few distros like Ubuntu do not assign a root password by default and make the user a sudo-er. To execute any command as root prefix it with sudo and enter your own user account password when prompted for one.

If you try to open some gnome apps (Say Synaptic), then also it asks for a
password. As Ubuntu uses gksudo, this is also your user password. To get to
a root shell type sudo -s and enter your own user a/c password.
To set the root password, type passwd in a root shell and enter the new password for root.

Hope this helps.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-02-2008, 01:33 AM
arjkhanna arjkhanna is offline
D-Web Genius
 
Join Date: Mar 2007
Posts: 1,102
arjkhanna is on a distinguished road
Default Re: Ubuntu root password

Hi
There are many ways you can reset the root password.In ubuntu initially
you donot have the root password set. So ,you can simply execute this
command by opening the terminal:

sudo passwd

The shell will ask you for a new UNIX password and you get access to root
with this new passwd you set.

The account 'ubuntu' is actually an account for desktop user that you set
during installation and usually has all the administrative previleges. But whenever you do tasks like accessing synaptic or change system settings ,you need to enter you password for 'ubuntu' account not the 'root' account.


Incase you forget the root password you have options to get it reset
it.You can get those options by checking other forums or just use any
of the two methods mentioned below

1)first option is simple :use the ubuntu live disk and select the repair
option while in grub

2)second one is without the need of any repair disk. just when grub
appears. press e and then you will get some lines mentioning something like
root (hda0,0) and so on.

select the line strating with the keyword with kernel and add init=/bin/bash at the end of the line and also replace an option ro to rw in the same line. press enter and press b to boot you will directly get a shell prompt bypassing ulogin .so just set the
password by typing passwd
Now restart the system and you have the root passwd reset for you.

I hope this helps you.
__________________
A.Rajesh Khanna
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-10-2008, 09:53 PM
shaalini shaalini is offline
D-Web Analyst
 
Join Date: Apr 2007
Posts: 342
shaalini is on a distinguished road
Default Re: Ubuntu root password

Quote:
Originally Posted by arjkhanna View Post
Pls switch to root account
$ sudo su -

Then sudo will prompt you for password, which will give you root-level access
..
....
To set root password, use

$ sudo passwd root

This will fist ask you for the logged in user's password. Later you are prompted to enter and confirm the root user's password. But as mentioned earlier, use "sudo" rather than logging in as root.

Thanks
__________________
Shaalini.S
Be the Best of Whatever you are...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Linux prasannavigneshr Operating Systems 7 02-28-2008 10:24 PM
How to make BSNL Dial up connection from Ubuntu JSureshkumar Operating Systems 2 08-18-2007 04:43 AM
How to attach or mount a file system to the linux root directory.? itbarota Operating Systems 1 07-26-2007 12:43 AM
Login remotely as root vigneshgets Operating Systems 1 07-18-2007 05:36 AM
Is Money the Root of All Evil? KHyuga The Lounge 0 02-23-2007 09:20 AM


All times are GMT -7. The time now is 02:39 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0