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

Re: mount permissions



> when my FAT32 file systems are mounted at
> boot time the owner and group are "root".
> As a regular user I can read files but not
> write them.
> 
> I have the user option in my /etc/fstab file
> like so:
> /dev/hdc6  /matrox/mx6 vfat defaults,user 0 2
> 
> so I can `umount' and then `remount' as a regular
> user and then I'm the owner and group and I have
> read write permission.
> 
> so what's the point of having this file system
> automatically mounted at boot time?  Or is there
> another way around this?
> 


In this case having this file system automatically mounted at boot time
only saves you the need for mount/umount it.
I know of two ways to accomplish what you want:

	1. use mount uid and gid options:
[20:14:55 /tmp]$ grep MS /etc/fstab 
/dev/hda1           /MS             vfat    defaults,noauto,umask=002,uid=0,gid
=500     0       0
[20:15:03 /tmp]$ grep dos /etc/group
dos:x:500:shaul
[20:15:14 /tmp]$ 

	2. use the mtools. 
This will eliminate the need for mount/umount.
[20:16:25 /tmp]$ mdir c:/linux
 Volume in drive C has no label
 Volume Serial Number is 2820-11DF
Directory for C:/linux

.            <DIR>     12-14-1998  12:38 
..           <DIR>     12-14-1998  12:38 
loadlin  exe     32208 05-01-1996   0:44 
linuxb~1 bat        44 06-30-2000  22:39  linux.bat.bat
vmlinu~1 17     461562 09-19-2000  22:31  vmlinuz-2.2.17
        5 files             493 814 bytes
                        139 886 592 bytes free

[20:16:46 /tmp]$ 


> - greg s.
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
> 

-- 
	
	Shaul Karl <shaulka@bezeqint.net>




Reply to: