I have a directory called sai
at /var/www/html/
. I gave permission initially 755
and tried 777
. I have loggen in as user nitish
. When I tried to edit the files , it says the file is read-only
. But if I edit files through terminal
logging as root
, I can edit the same files. Below is ls -l
command output:
[root@localhost sai]# ls -l
total 48
-rwxr-xr-x. 1 root root 5508 Mar 30 15:40 build-my-website.html
-rwxr-xr-x. 1 root root 674 Mar 30 15:40 check.html
drwxr-xr-x. 3 root root 4096 Mar 30 15:40 css
drwxr-xr-x. 2 root root 4096 Mar 30 15:40 images
-rwxr-xr-x. 1 root root 9002 Mar 30 15:40 index.html
drwxr-xr-x. 2 root root 4096 Mar 30 15:40 js
-rwxr-xr-x. 1 root root 4589 Mar 30 15:40 overview.html
drwxr-xr-x. 4 root root 4096 Mar 30 15:40 slider