File permissions aren't inherited from parent directory on change. This is what ls
's first column means: (rwx
is read, write, execution)
[directory] [owner perms] [group perms] [everybody else's prems] d rwx r-x r-x
As you can see, only owner (root
, third column of ls
) can write to the file. You can use chmod
to allow everybody edit these files:
chmod go+w *
or:
chmod a+w *
First command means:
Allow (+) group members (g) and others (o) write (w) to the file, for all files (*).
Second one is
Allow everybody (a) write to the file.