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

Re: mount changes permissions of directory?



Hi Cameron

> 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)

Only root can do this... But root can change the uid to 1000. So let's try 
and put uid=1000 and gid=1000 into /etc/fstab... Ok, now the mounted 
directory is readable by user 1000,1000. This is enough for me for the 
moment, I can now enter and read this directory. But still it would be nicer 
if the uid and gid were set to the uid and gid the mount process is running 
with.

thanks
joerg



Reply to: