Difference between revisions of "Sudo"

From Noah.org
Jump to: navigation, search
(Set timestamp timeout)
(Set timestamp timeout)
Line 5: Line 5:
 
== Set timestamp timeout ==
 
== Set timestamp timeout ==
  
The following sets the timestamp timeout to 30 minutes.
+
The following sets the timestamp timeout to 30 minutes for the given YOUR_USERNAME.
  
 
<pre>
 
<pre>
Defaults:your_username timestamp_timeout=1800
+
Defaults:YOUR_USERNAME timestamp_timeout=30
 +
</pre>
 +
 
 +
The following sets the timestamp timeout to 30 minutes for all users:
 +
 
 +
<pre>
 +
Defaults timestamp_timeout=30
 
</pre>
 
</pre>
  

Revision as of 12:27, 20 July 2008


Use `visudo` to make changes to /etc/sudoers.

Set timestamp timeout

The following sets the timestamp timeout to 30 minutes for the given YOUR_USERNAME.

Defaults:YOUR_USERNAME timestamp_timeout=30

The following sets the timestamp timeout to 30 minutes for all users:

Defaults timestamp_timeout=30

No password

your_username ALL=NOPASSWD: ALL