This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help with ACL and POSIX permissions for external flash/HD.


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

Attachment: signature.asc
Description: Digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]