Re: mount changes permissions of directory?
On Tue, Feb 25, 2003 at 08:59:23AM +0100, Joerg Johannes wrote:
> Why does a mount change the file permissions of a directory?
> Example:
>
> ls -l /mnt
> drwxr-xr-x 2 root root 4096 2003-01-20 18:29 d
> mount /mnt/d
> ls -l /mnt
> dr-x------ 1 root root 4096 2003-01-24 09:22 d
The first of these shows you the permissions of the /mnt/d directory on
the filesystem mounted on /. The second shows you the permissions of the
/ directory on the filesystem mounted on /mnt/d. Does that help?
Very little ever pays attention to the permissions on the mount point
itself (the first).
Cheers,
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: