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 lsattr:

    $ lsattr /tmp/foo
share|improve this answer
The first answer was right. I used to Lock screen, not Log out, when I go away. So when I did logout/login, everything became fine. –  lexsys Aug 10 '09 at 8:57

Your Answer


