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 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: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xXmbgvnjoT4axfJE" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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--