[SLE] Re: Fwd: Re: [SLE] Permissions
On Sun, 28 Nov 1999, you wrote:
Yes,
but how do I set up the server to give the permissions out constantly? I mean I just want on directory were several uses can do whatever they like.
Well, this is really over my head, but I recall you mentioned umask. Correct me if I am wrong, but doesn't the umask set the default permissions for files/directories when a user creates them? One can change the defaults? If so, can the same be done for groups? I guess this is the very question you are asking. I would think that if such a thing could be done it would affect all creations by every member of the group system wide and not just within the directory you want. If security is an issue then I doubt you would want this. At this point I kinda think your stuck with having each user set permissions as they create files/directories. Even when a user makes a copy permissions will be set according to the umask, and that user, or root, will have to reset permissions for group access. In a GUI such as KFM this quick and painless. I assume your environment is such that it is not practical to coach users to set permissions. In that case could a shell script be created that a user could invoke such as 'perm filename' and it would set permissions as you wish? If GUI, user could click icon on desktop, popup asks for path/filename which user inputs and all is set. I don't know the answer, but man umask, man creat (not misspelled), man open may be of some help if you haven't looked at them already. Sorry I couldn't be of more help. Tim, NJ
Jon
Jon R. Doyle Systems Administrator Document Solutions, Inc. 1611 Telegraph Avenue Ste. 1010 Oakland, Ca. 94612 510-986-0250
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
On Sun, 28 Nov 1999, you wrote:
On Sun, 28 Nov 1999, you wrote:
Yes,
but how do I set up the server to give the permissions out constantly? I mean I just want on directory were several uses can do whatever they like.
Well, this is really over my head, but I recall you mentioned umask. Correct me if I am wrong, but doesn't the umask set the default permissions for files/directories when a user creates them? One can change the defaults? If so, can the same be done for groups? I guess this is the very question you are asking. I would think that if such a thing could be done it would affect all creations by every member of the group system wide and not just within the directory you want. If security is an issue then I doubt you would want this. At this point I kinda think your stuck with having each user set permissions as they create files/directories. Even when a user makes a copy permissions will be set according to the umask, and that user, or root, will have to reset permissions for group access. In a GUI such as KFM this quick and painless. I assume your environment is such that it is not practical to coach users to set permissions. In that case could a shell script be created that a user could invoke such as 'perm filename' and it would set permissions as you wish? If GUI, user could click icon on desktop, popup asks for path/filename which user inputs and all is set. I don't know the answer, but man umask, man creat (not misspelled), man open may be of some help if you haven't looked at them already.
Sorry I couldn't be of more help. Tim, NJ
Actually I did think of another option. On my stand alone computer I have many vfat partitions. Initially only root was able to write to any of them, though users (me) could read and copy from them. I printed out a suggestion from Aduanne Carter from this list and was able to set up /etc/fstab so that users could write to them. Further action is not need or even possible(?) This is what he said: "here is my line from /etc/fstab for my fat32 partition that allows users to write to it. /dev/hde1 /share vfat defaults,gid=100,umask=007 0 0 gid 100 is the 'users' group. Typing "id <yournonrootlogin>' will tell you if your 'users' group is gid 100 as well." Of course the gid would be the one for your intended group. This will do exactly what you want, If you can set aside a separate partition for vfat or dos I guess. This works because it's not possible to set permissions on vfat like ext2 except via umask..
Jon
Jon R. Doyle Systems Administrator Document Solutions, Inc. 1611 Telegraph Avenue Ste. 1010 Oakland, Ca. 94612 510-986-0250
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Hi, On Sun, Nov 28, 1999 at 09:13 -0500, Tim Shann wrote:
directory you want. If security is an issue then I doubt you would want this. At this point I kinda think your stuck with having each user set permissions as they create files/directories. Even when a user makes a copy permissions will be set according to the umask, and that user, or root, will have to reset permissions for group access. In a GUI such as KFM this quick and painless. I
To avoid this mess, one could do this: - Create an own private group for every user, e. g. I'm user sttr and my group is sttr, as well. - Change everyone's umask to 007. - Create a group for all users who will have access to a shared directory, say sharegrp. - Create that shared directory, let's call it sharedir, and do a chgrp sharegrp sharedir chmod 2770 sharedir Now all files/directories created in sharedir will automatically be accessible to the members of sharegrp. Ciao, Stefan -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (2)
-
stefan.troeger@wirtschaft.tu-chemnitz.de
-
tajc@goes.com