On Thu, 23 Apr 1998, Daniel Martin at cush wrote: [SNIP]
> /etc/fstab: > /dev/sda4 /misc/zip vfat noexec,umask=000 0 0 > (If you just had "defaults" before, you can just replace it with the > "umask=000" bit) > Then everyone will be able to write to /misc/zip. > Also, anyone will be able to delete anyone else's files on /misc/zip You can restrict who should be able to write to the disk by creating a group and add all users that should be able to write to the disk. In my example I allow users in the group fat (gid=108) to write to fat disks. In your /etc/group add a line (you can use any group-id, 108 is just an example): --------------------------------------------------------------------- fat:x:108:userid1,userid2,userid3 --------------------------------------------------------------------- where useridX are the users that should have write access to the disk The entry for the zipdisk in the /etc/fstab would then be: --------------------------------------------------------------------- /dev/sda4 /misc/zip vfat defaults,gid=108,umask=002,quiet 0 0 --------------------------------------------------------------------- Now all files on the zipdisk will get group-id 108 (fat) and all users in that group will be able to write to the disk, but others will only be able to read from the disk. (The access rights will be "rwxrwxr-x" on all files.) The quiet option will suppress error messages when trying to change the modes on the files. If you want users to be able to mount/unmount disks in your removable media (the zip drive) you should us another set of options in fstab though: --------------------------------------------------------------------- /dev/sda4 /misc/zip vfat noauto,rw,user,exec,dev,suid,async,gid=108,umask=002,quiet 0 0 --------------------------------------------------------------------- With these options every user can mount/umount /misc/zip and the user mounting the disk will be the owner of all the files on the disk. As before all users in group fat will be able to write to the disk as well. If you don't want them to be able to do that, just remove the gid and umask options. Hope this is of any use /Fredrik -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]