在 CentOS 5 机器上执行以下命令:
$ sudo cp file1 file2
Run Code Online (Sandbox Code Playgroud)
给了我以下错误:
抱歉,不允许用户 my_username 在 site_name.com 上以 root 身份执行“/bin/cp file1 file2”
root 权限怎么可能不够用?
小智 10
你的 sudoers 文件是如何设置的?这个命令不是说root不能cp,而是不允许你使用cp AS root。
你应该有:my_username ALL=(ALL) ALL
在 sudoers 文件中
归档时间: |
|
查看次数: |
10640 次 |
最近记录: |