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?
Best Answer
lsattr will give you something like this
from "man chattr"
A file with the āaā attribute set can only be open in append mode for writing. Only the superuser or a process possessing the CAP_LINUX_IMMUTABLE capability can set or clear this attribute.
A file with the āiā attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file and no data can be written to the file. Only the superuser or a process possessing the CAP_LINUX_IMMUTABLE capability can set or clear this attribute.
does the job