/etchssh/sshd_config属性只读无法修改


https://serverfault.com/questions/393414/root-only-has-read-permission-for-etc-ssh-sshd-config



I'm trying to edit my /etc/ssh/sshd_config file as per these instructions to properly set up git on my Synology NAS: http://www.wonko.de/2010/04/set-up-git-on-synology-nas.html (step 6)

However, when I tried to save the modified sshd_config file while logged in as root, I got the following error:

"/etc/ssh/sshd_config" File is read only

When I typed in "ls -l /etc/ssh/sshd_config" I got:

--rw-r--r-- 1 root root 3745 May 27 06:32 /etc/ssh/sshd_config

Does anyone know how I can change these permissions so they're read/write for root?

5
chattr -ia sshd_config


hunterzuo 2024年10月20日 15:25 收藏文档