[ale] permission confusion
Geoffrey
esoteric at 3times25.net
Mon Aug 16 07:59:10 EDT 2004
Sean Kilpatrick wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Has anyone ever seen permissions/ownership change depending
> on what "drive" is mounted?
Permissions can and will change on the mount point when you mount a
device depending on who you permit to mount it. For example, if you
permit any user to mount the device, you'll see that the mount point
will be owned by that user when that user mounts it. Here is an example
for my memory stick device on my laptop:
rhws/home/esoteric> ls /mnt/memstick
ls: /mnt/memstick: Permission denied
rhws/home/esoteric> mount /mnt/memstick
rhws/home/esoteric> ls -ld /mnt/memstick
drwxr-xr-x 3 esoteric users 16384 Dec 31 1969 /mnt/memstick
/etc/fstab entry for this device:
/dev/sda1 /mnt/memstick vfat noauto,user,exec 0 0
Note the user option in the entry.
If I unmount it, then su to root and list the device I get:
root at rhws/home/esoteric> ls -ld /mnt/memstick
drwx------ 2 root root 4096 May 12 13:59 /mnt/memstick
--
Until later, Geoffrey Registered Linux User #108567
AT&T Certified UNIX System Programmer - 1995
More information about the Ale
mailing list