Re: off-topic autofs permissions
On Thu, 23 Apr 1998, Fredrik Ax wrote: > 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 Better use: adduser Cheers, Joost -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: off-topic autofs permissions
On Thu, 23 Apr 1998, Daniel Martin at cush wrote: [SNIP] > /etc/fstab: > /dev/sda4/misc/zip vfat noexec,umask=0000 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]
Re: off-topic autofs permissions
[EMAIL PROTECTED] writes: > Hi! > I guess this it not a debian related problem, but: > I am setting up a small Network with a linux server and some linux, win95 and > nt-workstation clients. The clients shall be able to access the cd-rom and > zip-drive on the server using autofs. The problem is that the zip drive is > mounted as drwxr-xr-x root.root /misc/zip, so windoze clients can´t write on > it. > I RTFM, but did not find a way to set other permissons. > Any ideas someone? There are two ways to do this - one is to make the zip drive have an ext2 filesystem instead of a dos one, but then you won't be able to use the zip drive on MS machines. The other is as follows: I assume that in your /etc/fstab you have something like: /dev/sda4/misc/zip vfat noexec0 0 (Or you may have type "fat" instead of "vfat", or you may have some other options instead of "noexec" (like, say, "defaults")) Anyway, what you need to do is make the following change to /etc/fstab: /dev/sda4/misc/zip vfat noexec,umask=0000 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, and you won't be able to tell who did it - this is because the fat/vfat filesystem can't keep track of who owns what file; attempting to make the directory "sticky" (like /tmp is) won't work. I suggest that it really might be best to have some other directory, which was set with permissions like /tmp that would be copied onto the zip disk every five minutes or so by a cron job. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
off-topic autofs permissions
-BEGIN PGP SIGNED MESSAGE- Hi! I guess this it not a debian related problem, but: I am setting up a small Network with a linux server and some linux, win95 and nt-workstation clients. The clients shall be able to access the cd-rom and zip-drive on the server using autofs. The problem is that the zip drive is mounted as drwxr-xr-x root.root /misc/zip, so windoze clients can´t write on it. I RTFM, but did not find a way to set other permissons. Any ideas someone? Thanks, Ramin. - E-Mail: [EMAIL PROTECTED] Date: 23-Apr-98 Time: 07:57:53 - -BEGIN PGP SIGNATURE- Version: 2.6.3ia Charset: noconv iQCVAwUBNT7cn/Q9+Dm4/+DZAQG3EAQAnmejyXr6HRAHN71f1LK/ceQ03F39pqes VjKEkak0e+g3Pc43uDVoRef3FU6EQwDqzuiYJJmJ7K4rzjQCclqGxWgEwqSiNx+O t+eHnkkHq7ikTY8J3wjWRhxN+Q/Qhri+pvlxsOejnVWm89KHlmJAnqnmkVNR9p1y a1f6me9DiO4= =NTte -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]