From: Afanasov Dmitry <ender@atrus.ru>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] Блокировка экрана.
Date: Sun, 27 Jan 2008 16:16:44 +0300
Message-ID: <20080127131643.GA3644@utvuk.orbita> (raw)
In-Reply-To: <20080126230917.GF9329@wo.int.altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 2365 bytes --]
On Sun, Jan 27, 2008 at 02:09:17AM +0300, Dmitry V. Levin wrote:
> On Sat, Jan 26, 2008 at 10:38:06PM +0300, Afanasov Dmitry wrote:
> > On Sat, Jan 26, 2008 at 07:38:22PM +0300, Dmitry V. Levin wrote:
> > > > если он, тогда
> > > > # chgrp chkpwd /usr/lib/chkpwd
> > >
> > > Каталог /usr/lib/chkpwd и так принадлежит группе chkpwd.
> > у меня после установки xscrensaver не принадлежал.
>
> А до установки xscreensaver принадлежал?
вот это не смотрел. файл оказывается принадлежит pam0_tcb - что-то в его
сторону я не думал. а как раз pam файлы hasher'ом распаковываются без
выполнения скриптов (--noscripts).
мне что-то интересно, а где тогда в инсталляторе скрипты отрабатывают?
> Ввиду особенностей установки вашей системы рекомендую выполнить
> # rpmverify -Va
> и посмотреть вывод на предмет неправильных прав на файлы.
спасибо за подсказку.
# rpmverify -V pam0_tcb
......G. /usr/lib/chkpwd
rpm --setperms pam0_tcb и rpm --setugids pam0_tcb дали следующее:
rpmverify -V pam0_tcb больше не ругается
а содержимое:
# ls -la /usr/lib/chkpwd
итого 51
drwx--x--- 2 root chkpwd 80 Янв 5 06:28 .
drwxr-xr-x 81 root root 44304 Янв 27 15:53 ..
-rwx------ 1 root root 4932 Ноя 2 2006 tcb_chkpwd
rpmverify -V xscreensaver не ругается
# ls -l =xscreensaver
-rwx--s--x 1 root chkpwd 212552 Ноя 14 18:36 /usr/bin/xscreensaver
одно меня смущает: xscreensaver будет работать под моим пользователем. для
tcb_chkpwd прав на группу нет.
могу и сам исправить, но интересно как должно бытьт реально.
> > > Не делайте так, пожалуйста, это категорически неправильно.
> > > Если какой-то screensaver не работает, то повесьте на него block bug.
> > знаю. правильнее было сделать как в courier, squid - отдельного
> > пользователя и прописать его в shadow и auth.
>
> Отнюдь, правильно -- это повесить sgid-to-chkpwd на тот executable,
> который проверяет пароль. Так сделан vlock, да и /usr/bin/xscreensaver
> в пакете xscreensaver-5.04-alt1 сделан так же.
как я понимаю именно такая ситуация у меня и сложилась: xscreensaver как
был так и сейчас xgid-to-chkpwd. и что делать с tcb_chkpwd?
rpmverify -Va я ещё отмучаю, спасибо за навеодку. как я полагаю после
hasher'ного rpm -ihv --noscripts --notriggers осталось достаточно много
интересностей.
--
С уважением
Афанасов Дмитрий
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2008-01-27 13:16 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-26 12:42 Евгений
2008-01-26 12:46 ` Eugene Ostapets
2008-01-26 13:28 ` Afanasov Dmitry
2008-01-26 13:40 ` Евгений
2008-01-26 13:46 ` Евгений
2008-01-26 16:39 ` Dmitry V. Levin
2008-01-26 16:38 ` Dmitry V. Levin
2008-01-26 19:38 ` Afanasov Dmitry
2008-01-26 23:09 ` Dmitry V. Levin
2008-01-27 13:16 ` Afanasov Dmitry [this message]
2008-01-27 14:03 ` Dmitry V. Levin
2008-01-26 15:20 ` Slava Semushin
2008-01-26 16:41 ` Dmitry V. Levin
2008-01-28 6:00 ` Slava Semushin
2008-01-28 10:36 ` [sisyphus] tcb_chkpwd Dmitry V. Levin
2008-01-28 10:42 ` Slava Semushin
2008-01-28 10:46 ` Dmitry V. Levin
2008-01-28 10:52 ` Slava Semushin
2008-01-28 10:59 ` Dmitry V. Levin
2008-01-28 12:29 ` Kirill A. Shutemov
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=20080127131643.GA3644@utvuk.orbita \
--to=ender@atrus.ru \
--cc=AfanasovDmitry@gmail.com \
--cc=sisyphus@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 Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git