LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 09: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, 09: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, 09: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, 11:45 AM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
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 11:50 AM.
 
Old 05-31-2011, 12:17 PM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

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, 12:51 PM   #6
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
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, 01: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



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 02:58 AM
Ubuntu 8.04 SU to Root? PipeDreams Ubuntu 14 06-19-2008 08:04 PM
ubuntu, I can no longer become root or have root rights TroelsSmit Linux - Newbie 7 03-24-2007 07:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:49 PM.

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
Open Source Consulting | Domain Registration