Greg Lopp on Thu, 24 Feb 2000 23:43:09 -0500 (EST)


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

Re: [PLUG] permissions on mounted filesystems


Christian Betz wrote:

> I usually use my computer as the normal user shux. By default my vfat
> partition is mounted on /mnt/shux (on startup). However I would like to
> give all users (specifically shux) read and write access. I was looking
> around the man pages but I honestly can't say I understand how to set the
> options so all users have read/write capability. How can I do this?
>
> Specifically I want to mount this vfat hard drive, which contains mp3's,
> and serve them through samba. However machines which access the share
> don't hae read and write access because of the original problem described
> above.
>

I faced the same problem (permissions on auto mounted device) some time
back.  Right now, you probably have something like this...

/dev/hda1    /mnt/shux    vfat    defaults    0 0

in your /etc/fstab.  Use the uid=XXX, gid=YYY and umask=ZZZZ options to
change the default mount options like so...

/dev/hda1    /mnt/shux    vfat    exec,user,uid=500,gid=100,umask=0002    0
0

and the drive will be mounted with user 500 (or whatever user id you are -
check /etc/passwd or type id on the cmdline), group 100 and permissions 775.


______________________________________________________________________
Philadelphia Linux Users Group       -       http://plug.nothinbut.net
Announcements - http://lists.nothinbut.net/mail/listinfo/plug-announce
General Discussion   -   http://lists.nothinbut.net/mail/listinfo/plug