xfs
[Top] [All Lists]

Re: different modes for symlinks?

To: be@xxxxxxxxxxx (Bernhard R. Erdmann)
Subject: Re: different modes for symlinks?
From: Tad Dolphay <tbd@xxxxxxx>
Date: Sat, 21 Jul 2001 07:16:11 -0500 (CDT)
Cc: linux-xfs@xxxxxxxxxxx (Linux XFS Mailing List)
In-reply-to: <3B59647E.8F28594A@xxxxxxxxxxx> from "Bernhard R. Erdmann" at Jul 21, 2001 01:16:14 PM
Sender: owner-linux-xfs@xxxxxxxxxxx
> 
> Hi,
> 
> I'm wondering about different modes of symlinks on XFS filesystems:
> 
> # ll /usr/tmp /usr/src/linux
> lrwxr-xr-x   1 root     root           19 Jul 10 00:36 /usr/src/linux ->
> linux-2.4-xfs/linux
> lrwx------   1 root     root           10 Jul 10 00:27 /usr/tmp ->
> ../var/tmp
> # ll -d /var/tmp /usr/src/linux-2.4-xfs/linux 
> drwxr-xr-x  16 root     root         4096 Jul 21 09:09
> /usr/src/linux-2.4-xfs/linux
> drwxrwxrwt   2 root     root         4096 Jul 21 10:06 /var/tmp
> 
> I'm used to mode 777 for a symlink. Why here 755 and 700 and only the
> mode of /usr/src/linux matching the mode of the dir it points to?
> 

ll is probably an alias for "ls -l" which lists the status of the link
itself and not the file or directory referenced by the symbolic link.
"ls -lL <symbolic link>" should list the status of the file or directory 
referenced by the link.

Tad


<Prev in Thread] Current Thread [Next in Thread>