lkml.org 
[lkml]   [1998]   [Oct]   [21]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateTue, 20 Oct 1998 22:24:33 -0500 (CDT)
FromShawn Leas <>
Subject[SEMI OFFTOPIC] symbolic links
Does anybody here know if there is a standard that defines
what should happen when chmod'ing a symlink?

GIVEN:

$ ln -s somefile somelink

$ ls -l somefile somelink
-rw-r--r--   1 sleas    sys            0 Oct 20 22:21 somefile
lrwxr-xr-x   1 sleas    sys            8 Oct 20 22:21 somelink -> somefile

If I "chmod 600 somelink", should that act upon somefile, or
should that change the perms on the symlink inode itself?

I ask because I have seen both behaviors on different systems.

While I'm at it, what does Linux do?

-Shawn
<=========== America Held Hostage ===========>
   Day 2099 for the poor and the middle class. 
   Day 2118 for the rich and the dead.
   823 days remaining in the Raw Deal.
<============================================> 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:45    [from the cache]
©2003-2008