On Mon, Oct 31, 2011 at 10:39:27PM +0200, Oleksandr Gavenko wrote: > 30.10.2011 23:24, Oleksandr Gavenko пишет: > >How can I set umask? In .bashrc?
Umask is already set system-wide in /etc/profile: # Default to removing the write permission for group and other # (files normally created with mode 777 become 755; files created with # mode 666 become 644) umask 022 And user-defined in ~/.bashrc # /etc/profile sets 022, removing write perms to group + others. # Set a more restrictive umask: i.e. no exec perms for others: # umask 027 # Paranoid: neither group nor others have any perms: # umask 077 Check under /etc/defaults/etc. > >What if I run > >Cygwin program from cmd? YMMV, but 'bash -l' should source your profile settings, both system-wide and user defined. -- Huella de clave primaria: AD8F BDC0 5A2C FD5F A179 60E7 F79B AB04 5299 EC56
signature.asc
Description: Digital signature