Differences

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

Link to this comparison view

Both sides previous revision Previous revision
sudo [2016/02/01 17:14]
steve
sudo [2016/02/01 17:15]
steve
Line 57: Line 57:
 </​code>​ </​code>​
  
-Set PATH for new user. sudo will not pass the user's PATH when switching to another user by default.+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>​ <​code>​
 Defaults secure_path = /​usr/​local/​sbin:/​usr/​local/​bin:/​usr/​sbin:/​usr/​bin:/​sbin:/​bin Defaults secure_path = /​usr/​local/​sbin:/​usr/​local/​bin:/​usr/​sbin:/​usr/​bin:/​sbin:/​bin
 </​code>​ </​code>​