Help with ACL and POSIX permissions for external flash/HD.
David Sastre
d.sastre.medina@gmail.com
Mon Oct 31 21:01:00 GMT 2011
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: Digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20111031/b8fd07aa/attachment.sig>
More information about the Cygwin
mailing list