I am not sure if I understand.<br>0022 makes read/write access for owner and read only access for the group.. right?<br>0002 adds write access for the group..right?<br><br>So the logic of having my own group is so noone has access to my files until I specifically change groups or add someone to my group. But then they still only have readonly access why not read/write access?
<br><br>I basically want my staff to be able to upload files which can automatically be read and written to by the group specified by the setgid of the directory.<br>If users want to change the permissions they can do so manually. But by default it should be read/write accessible by group members.
<br><br>To do this should I edit /etc/bashrc?<br><br>If I change /etc/bachrc will that change to umask for all users? If so what is the value of umask on the command line? It seems to reset when you log out?<br><br><div><span class="gmail_quote">
On 12/06/06, <b class="gmail_sendername">Les Mikesell</b> <<a href="mailto:les@futuresource.com">les@futuresource.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sun, 2006-06-11 at 14:11, Krsnendu Dasa wrote:<br>> ><br>> >In case that's not clear - first chgrp the directory to the<br>> >right group ownership, then chmod g+s the directory to make<br>> >the files added inherit the group ownership.  RH/fedora based
<br>> >systems already have a default umask of 0022 which makes the<br>> >file permissions work for this.<br>> ><br>> ><br>> ><br>> I am having problems with umask. I want permission automatically set for
<br>> group write access, read only access for others. So I changed to root<br>> and did<br>> #umask 0002<br>> When I login as another user and try to create a directory it denies me.<br>> When i do umask for that user it tells me 0022.
<br>> I thought that changing umask while in a directory changes the umask for<br>> the directory, or is it a per user setting. If so, how do I change all<br>> users umask to 0002? Or do I have to specify which directory to set the
<br>> umask for?<br><br>Before you do this, make sure you understand the reasoning<br>for setting it to 0022 in RH/fedora which is that by creating<br>a group for every user, you do not automatically have any<br>additional privileges permitted.  That is, there are no
<br>members but yourself in your default group.  Now, if you ever<br>want to permit shared access somewhere, all you have to do is<br>create groups with appropriate members or add members to your<br>own group.  If you did not already have group access arranged
<br>it is much more difficult to add it later.<br><br>Now if you still want to make the change, it is set for most<br>things in /etc/bashrc.<br><br>--<br>  Les Mikesell<br>   <a href="mailto:les@futuresource.com">les@futuresource.com
</a><br><br><br>_______________________________________________<br>K12OSN mailing list<br><a href="mailto:K12OSN@redhat.com">K12OSN@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/k12osn">https://www.redhat.com/mailman/listinfo/k12osn
</a><br>For more info see <<a href="http://www.k12os.org">http://www.k12os.org</a>><br></blockquote></div><br><br clear="all"><br>-- <br>Please use my new email address-<br><a href="mailto:krsnendu108@gmail.com">krsnendu108@gmail.com
</a>