From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 8 Dec 2020 19:10:58 +0300 From: Mikhail Efremov To: ALT Linux Team development discussions Message-ID: <20201208191058.747b8a98@sem-notebook.localdomain> In-Reply-To: References: <20201208165429.4d81fa81@sem-notebook.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [devel] default umask X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Dec 2020 16:11:01 -0000 Archived-At: List-Archive: List-Post: On Tue, 8 Dec 2020 17:38:32 +0300 Stanislav Levin wrote: > 08.12.2020 16:54, Mikhail Efremov =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > On Tue, 8 Dec 2020 16:02:51 +0300 Stanislav Levin wrote: =20 > >> =D0=97=D0=B4=D1=80=D0=B0=D0=B2=D1=81=D1=82=D0=B2=D1=83=D0=B9=D1=82=D0= =B5. > >> > >> =D0=92 =D1=80=D0=B0=D0=BC=D0=BA=D0=B0=D1=85 https://www.openwall.com/l= ists/oss-security/2020/10/07/4 > >> =D1=85=D0=BE=D1=87=D1=83 =D0=BF=D0=BE=D0=B8=D0=BD=D1=82=D0=B5=D1=80=D0= =B5=D1=81=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=D1=81=D1=8F =D0=BF=D0=BE=D1=87=D0= =B5=D0=BC=D1=83 =D1=83 =D0=BD=D0=B0=D1=81 =D0=BF=D0=BE =D1=83=D0=BC=D0=BE= =D0=BB=D1=87=D0=B0=D0=BD=D0=B8=D1=8E umask 0022 > >> (/etc/profile)? =D0=9A=D0=B0=D0=BA=D0=B8=D0=B5-=D1=82=D0=BE =D0=B8=D1= =81=D1=82=D0=BE=D1=80=D0=B8=D1=87=D0=B5=D1=81=D0=BA=D0=B8=D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D =D0=B0=D0=BB=D1=8C= =D1=82=D0=BE=D0=B2=D1=8B=D0=B9 =D1=81=D0=BA=D1=80=D0=B8=D0=BF=D1=82 =D1=81= =D1=82=D0=B0=D0=B2=D0=B8=D1=82 UMASK > >> 076 =D0=B2 login.defs. =20 > >=20 > > =D0=9F=D0=BE =D1=83=D0=BC=D0=BE=D0=BB=D1=87=D0=B0=D0=BD=D0=B8=D1=8E =D1= =83 =D0=BD=D0=B0=D1=81 077 =D0=B8 =D1=8D=D1=82=D0=BE =D1=85=D0=BE=D1=80=D0= =BE=D1=88=D0=BE. > > =20 > =D0=A2=D1=83=D1=82 =D0=B2=D0=BE=D0=BF=D1=80=D0=BE=D1=81=D0=BE=D0=B2-=D1= =82=D0=BE =D0=B8 =D0=BD=D0=B5=D1=82. >=20 >=20 --=20 WBR, Mikhail Efremov