admin password-Answered, Thanks!

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read this

admin password-Answered, Thanks!

Postby euthypro on Sat Feb 03, 2007 10:18 am

Hi,

New to this, so this may be a silly question: Once I've used the system a couple of times, I don't get asked for a password when using any admin programs such as synaptic. Also in terminal using "sudo, Is it supposed to do this?

Only password saved in keychain is for wireless.
Last edited by euthypro on Sat Feb 03, 2007 6:21 pm, edited 1 time in total.
User avatar
euthypro
Level 3
Level 3
 
Posts: 105
Joined: Wed Jan 17, 2007 12:10 pm
Location: Dumaguete, Philippines

Linux Mint is funded by ads and donations.
 

Postby clem on Sat Feb 03, 2007 1:14 pm

Your default user is basically "allowed to run things as root", you just need to use sudo in front of the command you want to run.

You don't really need to "become root", but if you want to, you can use your power to "run things as root" to give root a password :

sudo passwd root

From there you can become root:

su -

Or even without knowing the root password:

sudo su -

Clem
PS: This is a great innovation inherited from Ubuntu.
User avatar
clem
Level 15
Level 15
 
Posts: 5514
Joined: Wed Nov 15, 2006 8:34 am

Thanks,Clem, but still a question.

Postby euthypro on Sat Feb 03, 2007 3:39 pm

Appreciate your answer, Clem, and I'm getting to understand the uses of sudo and su -. What I wondered about is whether functions that require root privileges should ask for my user (not root) password every time they start. Or just once per session?

Excellent system, by the way. Enjoying learning it.

Angel
User avatar
euthypro
Level 3
Level 3
 
Posts: 105
Joined: Wed Jan 17, 2007 12:10 pm
Location: Dumaguete, Philippines

Re: Thanks,Clem, but still a question.

Postby scorp123 on Sat Feb 03, 2007 5:19 pm

euthypro wrote:What I wondered about is whether functions that require root privileges should ask for my user (not root) password every time they start. Or just once per session?
The password is cached for a couple of minutes. So if you start two processes via "sudo" that would require authentication in short succession chances are that the password is still cached from the first process, so all following processes won't bother asking as they can still see the successful authentication from the previous process.
User avatar
scorp123
Level 8
Level 8
 
Posts: 2287
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Thank you.

Postby euthypro on Sat Feb 03, 2007 6:25 pm

Thanks, scorp. I've been playing around in here, adding and taking out things, and I wondered why it would only ask sometimes. So far haven't broken anything.

A.
User avatar
euthypro
Level 3
Level 3
 
Posts: 105
Joined: Wed Jan 17, 2007 12:10 pm
Location: Dumaguete, Philippines


Return to Other topics

Who is online

Users browsing this forum: No registered users and 4 guests