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
sudo [2016/02/01 16:28]
steve
sudo [2016/02/01 17:15]
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, which can cause problems if calling binaries in /usr/local. Override it with the secure_path option.
 +
 +<​code>​
 +Defaults secure_path = /​usr/​local/​sbin:/​usr/​local/​bin:/​usr/​sbin:/​usr/​bin:/​sbin:/​bin
 </​code>​ </​code>​