X-Recipient: archive-cygwin@delorie.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.sastre.medina@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Help with ACL and POSIX permissions for external flash/HD.
Message-ID: <20111031210052.GB6889@jethro.local.lan>
References: <j8kfav$csp$1@dough.gmane.org> <j8n123$9lq$1@dough.gmane.org>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;	protocol="application/pgp-signature"; boundary="xXmbgvnjoT4axfJE"
Content-Disposition: inline
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@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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--
