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

Re: mounting /dos with read and write perm.



On Tue, 31 Mar 1998, Michael Paul Friedlander wrote:

>...
> /dev/hdd1    /dos  vfat  defaults 1 1
> 
> How do I modify this line (or through some other means) to make that
> partition readable and writable by all?

Dangerous, but you can change the line in /etc/fstab to this:

 /dev/hdd1	/dos	vfat	defaults,rw,mode=777,umask=000 0 0

(The zeroes indicate the backup and fsck policies, respectively.  See
man fstab.)

Personally, I would create a special group (like "dos") and add special
people to it.  Say,  for instance, that this group has an ID of 102
(/etc/groups) and the user "nobody" has an ID of 99 (/etc/passwd).
This would give everyone in group 102 full access, excluding all other
normal users:

/dev/hdd1	/dos	vfat    defaults,rw,uid=99,gid=102,mode=070,umask=707 0 0


Also, you may want to replace "defaults" with "defaults,nosuid,nodev".

The mode flag does not appear in the man page for fsck.  Hrm.  Maybe
it's not necessary.

Comments, corrections wanted.



Milton L. Hankins  <><  Software Engineer, Raytheon Electronic Systems
 John 3:16 || I can't speak for Raytheon Company, but I often try to 
  L-I-F-E  || speak for my wife and my cat.  The latter doesn't mind.



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