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

Re: Mounting an ext2 filesystem at mount point with specific uid, gid



On Sat, Sep 22, 2007 at 05:30:11AM +0530, Raj Kiran Grandhi wrote:
> anomatos@freemail.gr wrote:
>> 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

> After mounting, run
> # chown storage.storage /home/storage/store
>

Hi Rajkiran,
it should be noted that when you give an instruction that is
'destructive' in that it will alter the ownership of all the files on
this volume, you should make sure to tell the poster this as a
precaution.
cheers,
Kev
-- 
|  .''`.  == Debian GNU/Linux == |       my web site:           |
| : :' :      The  Universal     |mysite.verizon.net/kevin.mark/|
| `. `'      Operating System    | go to counter.li.org and     |
|   `-    http://www.debian.org/ |    be counted! #238656       |
|  my keyserver: subkeys.pgp.net |     my NPO: cfsg.org         |
|join the new debian-community.org to help Debian!              |
|_______  Unless I ask to be CCd, assume I am subscribed _______|



Reply to: