These are permissions:
$ ls -l | grep view.tmpl -rw-rw-r-- 1 apache devel 1057 2009-04-30 00:39 view.tmpl
I(lexsys) am in group developers:
$ cat /etc/group | grep devel devel:x:503:anthony,lexsys
But when I open the file, it shows like read-only:
"view.tmpl" [readonly] 31L, 1057C
and when I try to write it with w command, I get an error:
"view.tmpl" E212: Can't open file for writing
How can I set permissions to allow lexsys editing the file?
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.
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.
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 lsattr: