LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-31-2011, 10:45 AM   #1
vikas_choudharyy
LQ Newbie
 
Registered: May 2011
Posts: 7

Rep: Reputation: Disabled
i am not able to go to root in ubuntu 10.4


i am using ubuntu 10.4 ultimate. I am not able to go my root.
I am using the command: > su
and even feeding the right password.

please healp me.

thanx in advance
 
Old 05-31-2011, 10:48 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You really should have done a search, which undoubtedly would have turned up the following page from the Ubuntu documentation: https://help.ubuntu.com/community/RootSudo.
 
Old 05-31-2011, 10:53 AM   #3
mericet
Member
 
Registered: Jul 2009
Posts: 50

Rep: Reputation: 8
sudo su
then enter password
 
1 members found this post helpful.
Old 05-31-2011, 12:45 PM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Quote:
Originally Posted by vikas_choudharyy View Post
i am using ubuntu 10.4 ultimate. I am not able to go my root.
I am using the command: > su
and even feeding the right password.

please healp me.

thanx in advance
If you're giving it the password for you user account, that's wrong. You need to enter the root user's password.

As far as I know, Ubuntu doesn't let you log in as root by setting the password to some random characters. Try this command:

Code:
sudo passwd
It will prompt you for the new root password. From now on, you should be able to use that password with su.

EDIT: I just tried this on an Ubuntu VM, and it does work.

Last edited by MTK358; 05-31-2011 at 12:50 PM.
 
Old 05-31-2011, 01:17 PM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by mericet View Post
sudo su
then enter password
And that password should be the user password, not the root password (that you don't know anyway).

Further I prefer
Code:
sudo su -
as it uses root's environment.
 
1 members found this post helpful.
Old 05-31-2011, 01:51 PM   #6
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,044

Rep: Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108
Ubuntu's recommendation is to use "sudo" for a single command as root or "sudo -i" for a root shell. This is detailed in the article Nylex linked to in post #2.
 
Old 05-31-2011, 02:32 PM   #7
mehreen
LQ Newbie
 
Registered: May 2011
Posts: 3

Rep: Reputation: Disabled
sudo
passwd
will ask ubuntu name and passwrd
aftr doing all typ su

root will be changed
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
did not find any option for root password for root user in ubuntu 9.10 linux.ab Linux - Newbie 1 03-02-2010 03:58 AM
Ubuntu 8.04 SU to Root? PipeDreams Ubuntu 14 06-19-2008 09:04 PM
ubuntu, I can no longer become root or have root rights TroelsSmit Linux - Newbie 7 03-24-2007 08:17 PM


All times are GMT -5. The time now is 04:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration