Mounting an ext2 filesystem at mount point with specific uid, gid
Hello,
I'm using debian 4.0r1. I have an ext2 partition at /dev/hda1 and want to mount
it at /home/storage/store. The /etc/fstab record I use is as follows:
/dev/hda1 /home/storage/store ext2 defaults 0 4
Before I mount it, the command "ls -al /home/storage" yields:
drwxr-xr-x 2 storage storage 4096 2007-09-19 17:42 store
Which is of course empty. After the mount, which is successfull, the command "ls -al /home/storage" yields:
drwxrwsr-x 10 505 505 4096 2007-09-21 16:03 store
It seems that system assigns the directory hierarchy under 'store' to an unknown user/groupid, for security purposes I suppose. But I want it to assign it to user 'storage' & group 'storage'
How can I do that?
Although it seems a very basic administrative task, I haven't found a way to do it.
I would greatly appreciate any help
Antonis Tsakiridis
Reply to: