As someone who struggled with this issue (for much longer than was really necessary), I would like to say: well answered, Nick! Sioman, everything you need is there.
Anything extra you might want (like mount options such as: user(s), (no)exec, nodev, nosuid, noauto, rw, etc.) are in the man (8) mount page (already suggested reading by Nick). Kudos. Curtis On Tue, 2003-12-16 at 19:01, Nick W wrote: > umask=0 is the key option here. FAT doesnt store permissions data so when you > mount a FAT drive the permissions are set the same for all files on the > drive. umask=0 will give rwx to ALL users for ALL files on the drive. You > could use the uid=user gid=group options to have more control over > permissions, or learn how the octal umasks work. Heres a rundown... > > basic layout -- umask=0123 > > 0= simply tells umask you are giving it octal values, ALWAYS 0. > 1= sets permission for user [file owner] > 2= sets permission for group > 3= sets permission for others > > //octal values > 7=[no permission] > 6=x > 5=w > 4=wx > 3=r > 2=rx > 1=rw > 0=rwx > > so umask=0000 is rwx for everyone, 0777 denies everything, 0022 is the usual > setting, giving the owner full rwx, and both the group and others rx. > > Hence vfat sux for security, but we know that... > > check out > bash# man 8 mount > > HTH, > Nick > > > > On December 17, 2003 06:51 am, Ray wrote: > > Hi, Sjoman > > Try mounting this way (below are the lines for fstab file): > > /dev/hda2 /mnt/fat32drive1 vfat > > user,showexec,umask=0,codepage=850,iocharset=iso8859-1 0 0 > > /dev/hda3 /mnt/fat32drive2 vfat > > user,showexec,umask=0,codepage=850,iocharset=iso8859-1 0 0 > > > > For me it works > > > > Regards > > Ray > > > > Sjoman wrote: > > > Hi all, > > > > > > I'm trying to set up my fstab to mount two Fat32 drives in read-write > > > mode. Right now I can only seem to get them to mount them in > > > read-only mode. > > > > > > These are the lines in question: > > > /dev/hda2 /mnt/fat32drive1 vfat user,rw,noauto 0 0 > > > /dev/hda3 /mnt/fat32drive2 vfat user,rw,noauto 0 0 > > > > > > Any suggestions? > > > > > > Thanks, > > > sjoman > > > > > >------------------------------------------------------------------------ > > > > > >_______________________________________________ > > >clug-talk mailing list > > >[EMAIL PROTECTED] > > >http://clug.ca/mailman/listinfo/clug-talk_clug.ca _______________________________________________ clug-talk mailing list [EMAIL PROTECTED] http://clug.ca/mailman/listinfo/clug-talk_clug.ca

