Quote:> How do I allow all users to have read/write permission for DOS drives
>and partitions under Linux? Is it also possible to only allow certain
>users to have read/write permission? Thanks!
What I did was this:
A) Make a group for people who are allowed read/write access to
your DOS drives.
B) In your /etc/fstab, in the options section, specify that your DOS
filesystems are to be mounted with group = the special group you made
and umask 007. This will allow read/write/execute for root [the owner]
and your special group [the group] but no permissions for anyone else.
Here's the line I put in /etc/fstab:
/dev/hda1 /dosc msdos async,check=normal,nodev,noexec,nosuid,nouser,rw,gid=16,uid=0,umask=007 0 2
And this is the relevant line in the /etc/group file:
As you can see, you need to create the group first so you know its
number. Then you can put that number in the /etc/fstab file.
The nodev, nosuid and nouser options are there for paranoia value. The
"rw" option is there so you can read and write to the dos drives,
obviously. The async is there because that's in the "defaults," so I
figured it was a good idea. check=normal prevents you from writing long
unix-style filenames or filenames with spaces in them to the DOS partitions,
which is a good thing.
The only thing to be aware of when doing this is that there's no
such thing as permissions on an MSDOS filesystem. So when you copy
stuff there, you'll sometime get a "cannot" error when it tries to
set the permissions identical to the copied file. Ignore those
errors, they're not important.
"BGC: Because some of us believe women over 14 are still *."
=--------- http://www.veryComputer.com/~cantrick/home.html -------------=
*Ben Cantrick, diehard BGC otaku and Priss fan. ---> THE BGC DUBS SUCK! <---*
*Mac? Ha. "When I want to spend 50% of my time fighting an OS, I'll use VMS."*