Re: sys_chown() hits symlinks

H. Peter Anvin (
18 Jan 1998 11:59:35 GMT

Followup to: <>
By author: Perry Harrington <>
In newsgroup:
> Sounds like ther kernel is begging for a lsys_chown. I would speculate it
> is so that any joe user can nuke a symlink that he created, otherwise
> wouldn't the root:root semantics be a limiting factor? I know that symlinks
> are lrwxrwxrwx, it's neccessary to set the owner so any joe user can't just
> nuke any symlink (I am aware that current directory owner/perms affect this).
> Symlinks should not be at the mercy of the directory perms, files aren't.

Incorrect. Neither the owner nor the mode of a symlink have any
effects, whatsoever.


    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See for web page and full PGP public key
        I am Bahá'í -- ask me about it or see
   "To love another person is to see the face of God." -- Les Misérables