ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Alexei Takaseev <alexei@taf.ru>
To: ALT Linux sysadmins' discussion <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] запрет изменения пароля пользователя
Date: Thu, 18 Oct 2012 02:05:24 +0900 (IRKT)
Message-ID: <28909973.17.1350493519415.JavaMail.javamailuser@localhost> (raw)
In-Reply-To: <1397124.B9EbIi57bj@epiphanov.bkpi82.nikiet.ru>



----- Исходное сообщение -----
> От: "Sergei Epiphanov" <serpiph@nikiet.ru>
> Кому: "ALT Linux sysadmins' discussion" <sysadmins@lists.altlinux.org>
> Отправленные: Среда, 17 Октябрь 2012 г 19:35:20
> Тема: Re: [Sysadmins] запрет изменения пароля пользователя
> 
> On 17 октября 2012 16:30 Alexei Takaseev wrote:
> > chmod u-w /etc/tcb/_USER_/shadow
> 
> А что помешает самому юзеру как владельцу файла сделать обратное?
> Разве что
> immutable-флаг на shadow.

Неа, не сможет пользователь поменять права. только что проверил:

Enter new password: 
Re-type new password: 
passwd: Authentication token manipulation error.
[taf@metamorph taf]$ chmod u+w /etc/tcb/taf/shadow
chmod: невозможно получить доступ к «/etc/tcb/taf/shadow»: Отказано в доступе
[taf@metamorph taf]$ 

[root@metamorph taf]# ls -al
total 12
drwx--s---  2 taf  auth   4096 Oct  7 12:07 .
drwx--x--- 54 root shadow 4096 Oct  8 21:39 ..
-r--r-----  1 taf  auth     77 Oct  7 12:07 shadow
-rw-------  1 taf  auth      0 Oct  7 12:07 shadow-
-rw-------  1 taf  auth      0 Oct  7 12:07 shadow.lock
[root@metamorph taf]# 

  parent reply	other threads:[~2012-10-17 17:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-17  4:49 andriy
2012-10-17  7:30 ` Alexei Takaseev
2012-10-17 10:35   ` Sergei Epiphanov
2012-10-17 11:03     ` Sergei Epiphanov
2012-10-17 17:05     ` Alexei Takaseev [this message]
2012-10-17 11:13 ` Boris Savelev

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=28909973.17.1350493519415.JavaMail.javamailuser@localhost \
    --to=alexei@taf.ru \
    --cc=sysadmins@lists.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 sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

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


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