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

Re: Changing ownership for mounted fat partitions



Take a look at the uid= and gid= options of mount. You can use them in
/etc/fstab as part of your options for these mounts. For example, if group
local's gid is 105, you could have a line something like

/dev/hdc1  /mnt/fat32  vfat  uid=0,gid=105,umask=0770   0  0

This would set user to root, group to local and permissions to rwxrwx for
user and group (if I recall umask correctly).




On 8 May 1999, Arcady Genkin wrote:

> Hi all:
> 
> I would like to change ownership of all partitions, mounted under /mnt 
> to group local. I am as a user member of "local". For instance, I have 
> a fat32 partition mounted under /mnt/fat32.
> 
> # chown root.local /mnt
> <OK>
> # chown root.local /mnt/fat32
> chown: /mnt/fat32: Operation not permitted
> 
> If I unmount the partition, then I can change ownership for
> /mnt/fat32, but when I mount the partition again, ownership changes to 
> root.root again. :(
> 
> The main problem for me is that I haven't got a write permission in my 
> fatXX partitions as a regular user.
> 
> Any input highly appreciated!!!
> -- 
> Arcady Genkin
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
> 
> 


Reply to: