LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-18-2006, 07:51 AM   #1
thebiggiantmouse
Member
 
Registered: May 2006
Location: Da Bronx
Distribution: Arch Linux, Sackware, Gentoo
Posts: 255

Rep: Reputation: 31
gaining root access


I am using ubuntu 6.06. Upon installation i noticed it didnt ask me a root password.. Is there anyway to become root through gui or console?
 
Old 09-18-2006, 08:15 AM   #2
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
By default, Ubuntu disables the root account for logins. Sudo is used instead.

You can run a command with root privilleges by adding sudo before the command. Eg:
Code:
sudo vi /etc/fstab
will open /etc/fstab in vi with root privilleges.

You can get a shell with root privilleges using:
Code:
sudo -s
The prompt will change from $ to #, and any commands you enter will be executed with root privilleges.

In both cases, you will be prompted to enter your users password.

If you really want to login as root (it is not necessary, sudo does everything you need), use the command:
Code:
sudo passwd
This will prompt you for a password for root, and you can then login as root.

I hope this helps
--Ian
 
Old 09-18-2006, 08:16 AM   #3
imagineaxion
Member
 
Registered: Sep 2004
Location: Epsom, Surrey
Distribution: Ubuntu & Mac OS X
Posts: 141

Rep: Reputation: 16
yes there is

you need to use the 'sudo' command eg

Code:
sudo ifconfig
It will then ask you for your password.
The password you use is your user password.

The reason it askes for a password even though it uses your standard user password is to prevent programs from just using it to do whatever.

what ubuntu does is use the password of the first user account setup on the system as the "root password"

for more info type
Code:
man sudo
 
Old 09-18-2006, 09:59 AM   #4
lordSaurontheGreat
Member
 
Registered: Sep 2006
Distribution: Gentoo, SuSE 10
Posts: 94

Rep: Reputation: 16
To gain root privilages for GUI applications, you need to use kdesu/gtksu.

ex. (in a run dialog or in konsole/gnome terminal):

Code:
kdesu konqueror
gksu nautulis
This will prompt you for a root password, which is the password of the first user you set up when you installed Ubuntu.
 
Old 09-18-2006, 11:58 AM   #5
thebiggiantmouse
Member
 
Registered: May 2006
Location: Da Bronx
Distribution: Arch Linux, Sackware, Gentoo
Posts: 255

Original Poster
Rep: Reputation: 31
hey thanx guys I am new to ubuntu i am fast finding out i am liking it more than alot of other unnecessarily complicated. this was my only issue and you guys thanx a bunch
 
Old 09-19-2006, 03:53 AM   #6
imagineaxion
Member
 
Registered: Sep 2004
Location: Epsom, Surrey
Distribution: Ubuntu & Mac OS X
Posts: 141

Rep: Reputation: 16
Have a read in this forum from this link for a few posts
http://www.linuxquestions.org/questi...87#post2425287

this will give a "little" more insight or details on getting normal root account/password thought your system if this is what you would like. (Just using 'sudo passwd root' will not change the password for all the application that require root privileges when run from within the X environment).
 
  


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
Gaining root access in Gnome jonasan Linux - Software 5 01-31-2006 11:11 AM
Gaining access to Printerserver? gundestrup Linux - Hardware 8 08-07-2005 05:02 AM
Gaining access to Printerserver? gundestrup LinuxQuestions.org Member Intro 2 05-18-2004 11:54 AM
gaining access to my Windows C:/ drive spano Linux - Newbie 16 03-22-2004 11:21 PM
Gaining root access in KDE d-katz Linux - General 9 02-27-2004 05:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:44 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
Open Source Consulting | Domain Registration