lkml.org 
[lkml]   [2004]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectOdd symlink behaviour?
Vanilla kernel 2.6.6.  / is ext3, /dev is on /

I noticed when I created a symlink, the perms were not 777 like I would have
expected. See below.

[root@vegeta:/dev] v cdrom
ls: cdrom: No such file or directory
[root@vegeta:/dev] ln -s scd0 cdrom
[root@vegeta:/dev] v cdrom
lrwxr-xr-x 1 root root 4 May 25 20:13 cdrom -> scd0
[root@vegeta:/dev] umask 0
[root@vegeta:/dev] ln -sf scd0 cdrom
[root@vegeta:/dev] v cdrom
lrwxrwxrwx 1 root root 4 May 25 20:13 cdrom -> scd0
[root@vegeta:/dev] umask 022
[root@vegeta:/dev] uname -r
2.6.6
[root@vegeta:/dev] ln --version
ln (coreutils) 5.0.91

I have another filesystem which is reiserfs; It doesn't exibit this problem.

--
Lab tests show that use of micro$oft causes cancer in lab animals
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:03    [from the cache]
©2003-2011 Jasper Spaans. Advertise on this site