LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-10-2011, 07:08 AM   #16
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,969

Rep: Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548

Quote:
Originally Posted by M$ISBS View Post
Back to my original problem....

When I first startup Ubuntu I enter my password and I log in, but when I need to do something that requires root priveledges I enter the same password and am given access.

Something doesnt seem right with this?
That is by design and the beauty of sudo. It allows root privileges without having to know roots password.
 
Old 03-10-2011, 06:05 PM   #17
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30
So when I enter my password, it is letting me act as root temporarily because my password is stored somewhere that says its ok for me to do a task that only root can do?

and that means that there really is no root password on this system since I never was prompted to create one?
 
Old 03-11-2011, 12:26 AM   #18
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,969

Rep: Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548
Quote:
Originally Posted by M$ISBS View Post
So when I enter my password, it is letting me act as root temporarily because my password is stored somewhere that says its ok for me to do a task that only root can do?
In a nut shell yes.

The reason you can use sudo in your access is because of this entry in the /etc/sudoers file and specifically this entry at the bottom:
%admin ALL=(ALL) ALL

The user you created during the install is a member of the admin group. This is done with the first user created during the install only. Other users added later are not placed in the admin group.

Quote:
and that means that there really is no root password on this system since I never was prompted to create one?
Yes. This is also why you cannot log in to root; no password. If you really want to log in to root, simply give root a password.

You can see this if you enter:

~$ sudo cat /etc/shadow

At the top for root you will see a "!" were an encrypted password should be. Near the bottom you will see your user name and your encrypted password.

Last edited by chrisretusn; 03-11-2011 at 12:27 AM.
 
  


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
Some Questions from a new user :) eAbdul Mandriva 8 11-04-2007 04:21 AM
New user questions... Panagiotis_IOA Slackware 5 02-03-2006 02:37 PM
New user many questions madscient Linux - Software 4 08-07-2005 07:47 PM
change of passord propagated slowly josefiller Linux - Networking 2 08-05-2004 11:42 AM
some new user questions... scotty2hott2k Fedora 5 02-16-2004 07:07 PM

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

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