-1
我有Debian的远程服务器,我需要编辑服务器上的只读文件fcgid.conf。当我使用sudo:chmod。更改文件的权限
sudo su chmod 755 fcgid.conf
对此的反应:
-bash: sudo: command not found
我也试过cmod +x
:
chmod +x fcgid.conf
,并得到:
文件chmod: changing permissions of `fcgid.conf': Operation not permitted
所有者是根用户,我不知道如何获得编辑此文件的权限。
使用现在,“sudo”对你来说是安全的。不要使用'su'。 –
@VishalKumar你是什么意思? – h0ch5tr4355
建议使用'sudo'来访问root用户。 'su'命令将用户更改为root用户,因此不推荐给新用户。 –