help setting umask corrently
Gregory Machin
gdm at linuxpro.co.za
Tue Mar 15 03:54:26 UTC 2011
Hi.
found the info I needed to get it correct
http://en.wikipedia.org/wiki/Umask
0 – read, write and execute
1 – read and write
2 – read and execute
3 – read only
4 – write and execute
5 – write only
6 – execute only
7 – no permissions
so I ended up with umask 003
Thanks
On Tue, Mar 15, 2011 at 4:09 PM, Chris Adams <cmadams at hiwaay.net> wrote:
> Once upon a time, Gregory Machin <gdm at linuxpro.co.za> said:
>> I have a hack that sets the usmak for users in /etc/bashrc
>>
>> umask -S u=rwx,g=rwx,o=r
>>
>> The problem with this is that at logon it echo's "u=rwx,g=rwx,o=r"
>> out.
>
> You are telling umask to print the value with the "-S". Take it out.
>
> I will say that is a rather odd umask value.
>
> --
> Chris Adams <cmadams at hiwaay.net>
> Systems and Network Administrator - HiWAAY Internet Services
> I don't speak for anybody but myself - that's enough trouble.
> --
> users mailing list
> users at lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
>
More information about the users
mailing list