ubuntu wont let me edit /etc/init.d/ files

Erik Bågfors zindar at gmail.com
Fri Feb 4 15:59:37 UTC 2005


On Fri, 04 Feb 2005 16:45:23 +0100, R. Mattes <rm at mh-freiburg.de> wrote:
> Erik Bågfors wrote:
> 
> >Because the file is read only? Try "sudo chmod +w /etc/init.d/vmware" ?
> >
> >/Erik
> >
> >
> No, don't! There is a reason for these permissions. The way these files
> are installed
> prevent accidental changes of the file (many users use vi et.al. to
> _look_ at files and
> it's all to easy to accidentally type an 'i' or 'a' character). The
> init-scripts are hyper-
> sensitive since a corrupted script can prevent booting of the system.
> The (small)
> price one has to pay for the extra protection is worth it. :-)
> 

Interesting is that on my ubuntu all the files in /etc/init.d are
root-writeable.

But if you really care, I should have been clearer!

try
sudo chmod +w /etc/init.d/vmware
sudo vi /etc/init.d/vmware
sudo chmod -w /etc/init.d/vmware

Using :w! in vi(m) is as bad as having them write:able because you'll
soon learn to always save with "!" and they you are screwed anyway.



Regards,
Erik




More information about the ubuntu-users mailing list