LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   mount with given uid,gid (https://www.linuxquestions.org/questions/linux-general-1/mount-with-given-uid-gid-669189/)

ernst 09-11-2008 07:04 AM

mount with given uid,gid
 
I am mounting a LVM volume (ext3) which was used on another computer and want all files and directories on it
to be accessible with my uid,gid.

I could just mount it and then
find . -type f -exec chown ernst:ernst {} \;
find . -type d -exec chown ernst:ernst {} \;

Maybe I could specify in fstab to regard all files on that volume to have my uid.gid.
However I did not find out anything about this in the man page for mount.

Thanks
Ernst

Matir 09-11-2008 08:04 AM

No, user and group properties are only set at mount time for filesystems that do not support unix permissions internally. You could just mount it and do: chown -R ernst:ernst /mount/point


All times are GMT -5. The time now is 01:12 AM.