Once upon a time Neal Lippman said...
> 
> eg, I create a directory called /home/restricted, and then want to mount
> a local disk partition containing an ext2fs file system:
>       mount /dev/hda8 /home/restricted
> 
> When I do the mount, the ownership and permissions of /home/restricted
> are now changed to root.root and rwxrwxrwx, regardless of what I have
> set for the ownership / permissions of /home/restricted prior to the
> mount.

Change the ownership and permissions after you mount /home/restricted.
This will set it on the root of the filesystem you have mounted.

The mounted filesystem root obscures the mount directory, so any 
changes made prior to the mount are also obscured.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to