delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW |
X-Spam-Check-By: | sourceware.org |
Date: | Mon, 31 Oct 2011 22:00:52 +0100 |
From: | David Sastre <d DOT sastre DOT medina AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Help with ACL and POSIX permissions for external flash/HD. |
Message-ID: | <20111031210052.GB6889@jethro.local.lan> |
References: | <j8kfav$csp$1 AT dough DOT gmane DOT org> <j8n123$9lq$1 AT dough DOT gmane DOT org> |
MIME-Version: | 1.0 |
In-Reply-To: | <j8n123$9lq$1@dough.gmane.org> |
User-Agent: | Mutt/1.5.20 (2009-06-14) |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
--xXmbgvnjoT4axfJE Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 31, 2011 at 10:39:27PM +0200, Oleksandr Gavenko wrote: > 30.10.2011 23:24, Oleksandr Gavenko =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > >How can I set umask? In .bashrc?=20 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. --=20 Huella de clave primaria: AD8F BDC0 5A2C FD5F A179 60E7 F79B AB04 5299 EC56 --xXmbgvnjoT4axfJE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EAREIAAYFAk6vDIQACgkQ95urBFKZ7Fa5iAD/cIqRbgHbgG9J95+WIx0Q5xPZ T441YatuehcEM4+GU0IA/i5iGnPy6lXG7qPZYJz9DfL+UUEuZnhjVxEGgR9juLSg =b2r+ -----END PGP SIGNATURE----- --xXmbgvnjoT4axfJE--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |