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

Re: mount as specific user in fstab (su user -c 'mount ~/dir')



On Fri, Jul 19, 2002 at 01:33:37PM +0100, Shri Shrikumar wrote:
> I have a vfat partition that is mount in ~/data. It needs to be mounted
> by my uid or all the files are owned by root:root which means that I
> cant do anything with them.
> 
> This means that each time the machine is started, this folder has to be
> mounted. I could put it into the .zshrc but then it would be mounted
> each time a new terminal was opened.
> 
> Current /etc/fstab entry is
> 
> /dev/hda11 /home/shri/data  vfat defaults,user,noauto 0 0
> 
> Is there a way to specify it in /etc/fstab so it is mounted under a
> specific uid.

Yes, see "Mount options for fat" in the man page. You can set the uid
and gid options.

Cheers,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: