Related to: FC4 Sluggishness on a 466 MHz Celeron

Ralf Corsepius rc040203 at freenet.de
Wed Jul 13 15:16:28 UTC 2005


On Wed, 2005-07-13 at 10:10 -0500, Mike McCarty wrote:
> Paul Howarth wrote:
> 
> >On Wed, 2005-07-13 at 01:46 -0500, Mike McCarty wrote:

> >>I don't understand why echo should be able to write a file that
> >>an editor cannot.
> >>    
> >>
> >
> >Some editors like to rename the original file to "filename~" and then
> >write out a new file "filename". This won't work in /proc.
> >
> >Paul.
> >  
> >
> I don't use *that* editor. I never have used that one. 
Are you sure? Many editors open files like this.

> Interesting that one
> can delete but not rename the file, even as owner. How is that accomplished?

It's ordinary permissions on files and directories:

# ls  -ld /proc/sys/vm/swappiness
-rw-r--r--  1 root root 0 Jul 13 17:13 /proc/sys/vm/swappiness
# ls  -ld /proc/sys/vm
dr-xr-xr-x  2 root root 0 Jul 13 17:13 /proc/sys/vm

Note the owner permissions.

Ralf





More information about the fedora-list mailing list