We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://overtrue.me/articles/2015/05/cannot-find-command-sudo-hu.html
虽然在 /etc/profile 中加了全局 PATH,但是在以 sudo -Hu [username] [command] 执行的时候报命令不存在,原因是 /etc/sudoers 中还有一个 secure_path 没修改: visudo 查找 secure_path,加入你要添加的目录,比如 /usr/local/bin: Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin 改为: Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin 即可。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://overtrue.me/articles/2015/05/cannot-find-command-sudo-hu.html
虽然在 /etc/profile 中加了全局 PATH,但是在以 sudo -Hu [username] [command] 执行的时候报命令不存在,原因是 /etc/sudoers 中还有一个 secure_path 没修改: visudo 查找 secure_path,加入你要添加的目录,比如 /usr/local/bin: Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin 改为: Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin 即可。
The text was updated successfully, but these errors were encountered: