On Wed, 30 Jan 2002, e white wrote: > for a dos partition, the fstab entry should go > something like: > > /dev/hda1 /dos vfat defaults,umask=022 0 1 > > /dos has a mode of 640. the umask is and'ed with the
~umask (bit-wise "not" of umask) is and'ed, not umask itself. So with umask=022 you turn off write permissions for group and user. > directory mode to allow access, correct? from > somewhere i dug up 022, but it doesn't work (if i'm > correct, it shouldn't). > > so, to allow all users to read/write to /dos, shell or > within dosemu, what umask value would i use? if i > allow all users, then the gid= option won't be > necessary? umask=000 then it's world readable/writeable. That doesn't look very secure. Or create a dosemu group, say 200, with something like /dev/hda1 /dosc msdos defaults,gid=200,umask=002 0 0 see chapter 6 of README.txt. Here 002 strips off world write permissions. Be aware that Joe user then isn't able to change the timestamps of files to something different than the current time and "cp -p" and DOS "copy" cannot preserve them. BTW, the meaning of "noexec" has changed with linux kernel 2.4.10: before 2.4.10 "noexec" for msdos/vfat also stripped of the "x" permissions of files in file listings, if the file wasn't a directory. Now you see the "x" bits with "noexec" but you cannot execute the file (in Linux that is, DOSEMU doesn't care). With "showexec" you will only see the "x" bits for .exe, .com and .bat files. Bart - To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
