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
问题描述 sudo 场景下 nohup 重定向报错 /tmp/nm.nohup.out: Permission denied
重现方法
非 root 安装
预期现象 安装继续,而不是超时
原因:输出重定向操作未「sudo」
Permission denied:sudo nohup bash /tmp/setup_proxy.sh &> /tmp/nm.nohup.out &
需要更正为:sudo sh -c "nohup bash /tmp/setup_proxy.sh &> /tmp/nm.nohup.out &"
前者的 sudo 只作用在「&>」前的命令,而 ec-user 用户访问不到「/tmp/nm.nohup.out」
截屏 请提供截屏来解释你的问题,当然这也能更好地帮助我们理解问题。
请提供以下信息
The text was updated successfully, but these errors were encountered:
bugfix: sudo 场景下 nohup 重定向报错 /tmp/nm.nohup.out: Permission denied (cl…
85152a9
…osed TencentBlueKing#1633)
bugfix: 修复 sudo 场景下 nohup Permission denied 的问题 (fixed TencentBlueKin…
1639f00
…g#1633)
bugfix: 修复 sudo 场景下 nohup Permission denied 的问题 (fixed #1633)
0e52119
415cf66
CohleRustW
No branches or pull requests
问题描述
sudo 场景下 nohup 重定向报错 /tmp/nm.nohup.out: Permission denied
重现方法
非 root 安装
预期现象
安装继续,而不是超时
原因:输出重定向操作未「sudo」
Permission denied:sudo nohup bash /tmp/setup_proxy.sh &> /tmp/nm.nohup.out &
需要更正为:sudo sh -c "nohup bash /tmp/setup_proxy.sh &> /tmp/nm.nohup.out &"
前者的 sudo 只作用在「&>」前的命令,而 ec-user 用户访问不到「/tmp/nm.nohup.out」
截屏
请提供截屏来解释你的问题,当然这也能更好地帮助我们理解问题。
请提供以下信息
The text was updated successfully, but these errors were encountered: