[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mount changes permissions of directory?



Once upon a time Joerg Johannes said...
> Hi Colin
> maybe I should have described not only the symptom, but also the problem 
> arising from all this. I try to mount /mnt/d as user (I am allowed to do that 
> according to /etc/fstab). After mounting it, I have no right to enter the 
> directory I just mounted. Why not? 

I would assume that the vfat driver has code in it to get the real uid
and gid from the process performing the mount(2) system call and sets
the filesystem permissions accordingly. And the ntfs driver doesn't.

Or mount(8) has knowledge of vfat options and sets the appropriate
options for user access, but does not have similar code for ntfs
filesystems.

This is probably because the ntfs driver is less mature and core
filesystem issues are being concentrated on rather than user
conveniences.

Try:
$ mount -o uid=<your_uid> /mnt/d

and see if it sets the filesystem ownership how you want. (I didn't try
this so it may not work. There could be security issues with allowing
regular users to specify command line options to mount)



Reply to: