LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 06-18-2007, 05:46 PM   #1
shorto
Member
 
Registered: Jul 2006
Distribution: Debian 6.0.2.1 i386
Posts: 111

Rep: Reputation: 15
Ubuntu 7.04 root problems


Hi all,
Well i have just installed ubuntu for the first time and well something very important is missing, the install never asked me about the root pass so how the hell do i know what it is, now i cant access the root account and well you know how it goes from here on . So how do i get this root password its really anoying not knowing it.

Please help,
tnx in advance
 
Old 06-18-2007, 05:50 PM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,970
Blog Entries: 1

Rep: Reputation: 208Reputation: 208Reputation: 208
In Ubuntu the root account is disabled by default. You can perform administrative tasks by using sudo:

Code:
sudo <command>
It will prompt you for a password. The password is the same as the users password.

Last edited by custangro; 06-18-2007 at 05:51 PM.
 
Old 06-18-2007, 07:27 PM   #3
shorto
Member
 
Registered: Jul 2006
Distribution: Debian 6.0.2.1 i386
Posts: 111

Original Poster
Rep: Reputation: 15
thank you!
 
Old 06-18-2007, 08:15 PM   #4
student04
Member
 
Registered: Jan 2004
Location: Georgia
Distribution: OS X, CentOS
Posts: 669

Rep: Reputation: 34
Just some info -

Should you decide to enable and set the password for the root user, type the following:
Code:
sudo passwd root

Should you decide to disable the account again (putting it back into the state it was before you set the root password), type the following:
Code:
sudo passwd -l root
The -l locks the root account by invalidating the root password in the password file.

-AM
 
Old 06-19-2007, 12:45 AM   #5
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,970
Blog Entries: 1

Rep: Reputation: 208Reputation: 208Reputation: 208
You can also sudo to the root account

Code:
sudo su -
The password that it will prompt you for is the user password.

You can edit the .bashrc file and add this:

Code:
alias su='sudo su -'
Now write and quit and re-read the file with:

Code:
source .bashrc
Now everytime you "su" you will su to the root account. Hope this helps
 
  


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
ubuntu, I can no longer become root or have root rights TroelsSmit Linux - Newbie 7 03-24-2007 08:17 PM
Ubuntu 5.10 root problems ironfistchamp Linux - Newbie 3 02-10-2006 06:59 AM
Ubuntu root craigissexy Linux - Newbie 2 01-10-2006 12:45 AM
ubuntu root problems GrexMachine Linux - Newbie 5 03-02-2005 09:11 AM


All times are GMT -5. The time now is 11:05 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