Take the 2-minute tour ×  These are permissions:  $ ls -l | grep
view.tmpl  I(lexsys) am in group developers:  $ cat /etc/group |
grep devel   "view.tmpl" [readonly] 31L, 1057C   "view.tmpl"
E212: Can't open file for writing  How can I set permissions to
allow lexsys editing the file?  share|improve this question  1
Answer 1  up vote 8 down vote accepted   1. How recently were
you (lexsys) added to the devel group? If you were added after
your current login session, then you need to log out and then
log back in again.    2. Is the filesystem that contains
view.tmpl mounted read-only? This may be by design (examine
/etc/fstab), or it may be because it's an ext3 fs mounted with
the "errors=remount-ro", which causes the fs to be remounted
read-only if any errors are detected while accessing the fs.
3. Has someone used chattr to set the immutable flag on
view.tmpl? check this with lsattr. If it is set, use 'chattr -I
view.tmpl' to clear it (as root).      An immutable file will
look something like this with ls