ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Stanislav Levin <slev@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>,
	Mikhail Efremov <sem@altlinux.org>
Subject: Re: [devel] default umask
Date: Tue, 8 Dec 2020 17:38:32 +0300
Message-ID: <bf722fe6-ba5d-f04e-5c5e-2104c4b82776@altlinux.org> (raw)
In-Reply-To: <20201208165429.4d81fa81@sem-notebook.localdomain>


[-- Attachment #1.1: Type: text/plain, Size: 1203 bytes --]



08.12.2020 16:54, Mikhail Efremov пишет:
> On Tue, 8 Dec 2020 16:02:51 +0300 Stanislav Levin wrote:
>> Здравствуйте.
>>
>> В рамках https://www.openwall.com/lists/oss-security/2020/10/07/4 хочу
>> поинтересоваться почему у нас по умолчанию umask 0022 (/etc/profile)?
>> Какие-то исторические проблемы совместимости?
> 
> А что не так с таким umask? Хорошее умолчание для большинства файлов.
> По ссылке же речь о правах на домашние каталоги, которые регулируются
> как раз UMASK в login.defs.
> 
По ссылке речь о пермишенах для хомяк и дефолтном umask.

1) проблема в том, что есть приложения, которые надеются на umask по
умолчанию и не выставляют должные пермишены или не меняют umask перед
созданием файлов/директорий, создавая возможность получить доступ к
информации третьих лиц.
2) пользователи могут и не догадываться, что их домашняя директория
доступна для перехода, при этом пользуясь дефолтным umask, подвергают
опасности свою информацию.

Поэтому и возник вопрос, а что мешает поставить 077.

>> Спрашиваю, потому что как минимум один альтовый скрипт ставит UMASK
>> 076 в login.defs.
> 
> По умолчанию у нас 077 и это хорошо.
> 
Тут вопросов-то и нет.



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

  reply	other threads:[~2020-12-08 14:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-08 13:02 Stanislav Levin
2020-12-08 13:14 ` Vitaly Lipatov
2020-12-08 13:30   ` Stanislav Levin
2020-12-08 13:54 ` Mikhail Efremov
2020-12-08 14:38   ` Stanislav Levin [this message]
2020-12-08 16:10     ` Mikhail Efremov
2020-12-08 23:56     ` Alexey V. Vissarionov
2020-12-09  7:59       ` Stanislav Levin
2020-12-09  8:28         ` Alexey V. Vissarionov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bf722fe6-ba5d-f04e-5c5e-2104c4b82776@altlinux.org \
    --to=slev@altlinux.org \
    --cc=devel@lists.altlinux.org \
    --cc=sem@altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git