Re: help setting umask corrently



Once upon a time, Gregory Machin <gdm@xxxxxxxxxxxxxx> 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@xxxxxxxxxx>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines



Relevant Pages

  • Re: umask dont change
    ... I have uncommented and modified to umask setting in ~/.bash_profile to: ... although I exit and re-login the umask stays 0022. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: umask dont change
    ... I have uncommented and modified to umask setting in ~/.bash_profile to: ... although I exit and re-login (with SSH) the umask stays 0022. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: umask for init?
    ... subject of "unsubscribe". ... Trouble? ... instead of umask 0133 ... If the solution point only one user you can add this command in the .bashrc ...
    (Debian-User)
  • Re: permissions all zero when using cp
    ... I see a difference when I run the same commands. ... and umask is 0033. ... The longer you run a cracked system the longer the cracker has to do ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Is there a work-around for a umask bug in rssh/chroot ??
    ... (so thatumaskhas full control of what will end up on the inode)? ... If sftp/rssh is trying to ... in the /etc/profile only umask is set. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)