Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
sudo [2016/02/01 16:28]
steve
sudo [2016/02/01 17:14]
steve
Line 55: Line 55:
 <​code>​ <​code>​
 steve ALL=(beandog) NOPASSWD: ALL steve ALL=(beandog) NOPASSWD: ALL
 +</​code>​
 +
 +Set PATH for new user. sudo will not pass the user's PATH when switching to another user by default.
 +
 +<​code>​
 +Defaults secure_path = /​usr/​local/​sbin:/​usr/​local/​bin:/​usr/​sbin:/​usr/​bin:/​sbin:/​bin
 </​code>​ </​code>​