DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   IT Professionals' Lounge (http://www.daniweb.com/forums/forum5.html)
-   -   change sudo setting (http://www.daniweb.com/forums/thread136397.html)

keripix Jul 24th, 2008 1:26 am
change sudo setting
 
im using ubuntu, n the thing is, i want my ubuntu to always ask me the root password everytime i try 2 access root permision.

Is there a way 2 do that?

John A Jul 24th, 2008 4:20 am
Re: change sudo setting
 
No. If you want to authenticate to the root user (or any user for that matter), you have to use su.

keripix Jul 24th, 2008 9:06 am
Re: change sudo setting
 
Im sorry, but wat i mean is,for the first time i acces root's permission, yes it asks me 4 the root's password. But after that, it doesnt. N thats wat i wanna change. I want it 2 ask me the password every time.

Tnx 4 awl de help

John A Jul 24th, 2008 12:19 pm
Re: change sudo setting
 
In that case, you want to modify the timestamp_timeout value in the /etc/sudoers file. Open up the sudoers file with
$ sudo visudo
enter your password, then look in the file for a line that starts with
Defaults
and has
timestamp_timeout
in it. Adjust the value so that it's set to 0. If there isn't a line like that present in the file, add a new one:
Defaults tty_tickets, timestamp_timeout=0

nsindian Jul 25th, 2008 6:02 pm
Re: change sudo setting
 
the default is to ask for your "regular" user password each time. you'd rather type the "root" password each time? why?

keripix Jul 25th, 2008 11:31 pm
Re: change sudo setting
 
It works....tnx


All times are GMT -4. The time now is 5:27 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC