tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Permissions of the root dot files



> Date: Tue, 30 Aug 2022 09:18:47 -0400 (EDT)
> From: Mouse <mouse%Rodents-Montreal.ORG@localhost>
> 
> >> Is there any particular reason why /root/.profile and /root/.cshrc
> >> (that have hard links in / too, for the single user mode i guess)
> >> are not writable?
> > Aside from applications like vi rm mv etc (probably more) which
> > require a slight bit more effort if the file has no write permission,
> > what difference does the user 'w' (or 'r' ... 'x' does matter)
> > permission bit really make on a root owned file?
> 
> Absent some reason to _not_ turn on their 0200 bits, I would say that
> "slight bit more effort" is reason enough.  I've been annoyed often
> enough by those slight bits more effort myself.

This appears to have been an oversight in writing the Makefiles that
create the files (and, for /.cshrc and /.profile, create the links).
I've fixed it for these and several other cases, so you can edit them
without editor complaints.  mtree will also no longer object to the
modes out of the box.


Home | Main Index | Thread Index | Old Index