From: diver <diver666@gmail.com>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] kscreenlock & kcheckpass
Date: Wed, 30 Nov 2011 08:55:09 +0200
Message-ID: <CAK2uZ2d3yrK3kqC5AG_9-k=ok8W=3arVZj7x6RX1M2X4YR1p=w@mail.gmail.com> (raw)
In-Reply-To: <20111129230240.GA29714@altlinux.org>
2011/11/30 Dmitry V. Levin <ldv@altlinux.org>:
> On Wed, Nov 30, 2011 at 12:20:48AM +0200, diver wrote:
>> 2011/11/29 Dmitry V. Levin:
>> >
>> > Если у вас есть решимость исправить ошибку, то давайте разберемся.
>> > Первое, что надо выяснить - есть проблема в kscreenlock/kcheckpass или
>> > нет. Для этого надо проверить, работает ли у вас vlock
>> > (http://lists.altlinux.org/pipermail/sisyphus/2008-January/327304.html).
>>
>> Выше по треду отвечал. vlock работает только при control tcb_chkpwd
>> traditional. При tcb: "tcb_chkpwd[1135]: user unknown"
>
> Эта диагностика говорит о том, что tcb_chkpwd не хватило прав на
> getspnam(3), чего в нормальной ситуации не бывает.
> Значит, что-то с правами на файлы или параметрами монтирования.
> Давайте проверим все по порядку.
>
>> Права перепроверял на всем пути к /etc/tcb/<user>/shadow согласно man.
>> + смотрел отличия в правах, между офисной и домашней машиной. Отличий
>> не обнаружил.
>
> Давайте посмотрим еще раз. Что у вас показывают
> # ls -ld / /etc /etc/tcb /etc/tcb/diver /etc/tcb/diver/shadow /usr/lib/chkpwd /usr/lib/chkpwd/tcb_chkpwd
> и
> # sed -rn '/^[^ ]+ \/(usr(\/lib(\/chkpwd)?)?)? /p' /proc/mounts
>
root@genesis:~$ control tcb_chkpwd traditional
root@genesis:~$ ls -ld / /etc /etc/tcb /etc/tcb/diver
/etc/tcb/diver/shadow /usr/lib/chkpwd /usr/lib/chkpwd/tcb_chkpwd
drwxr-xr-x 23 root root 4096 Сен 22 15:49 /
drwxr-xr-x 148 root root 12288 Ноя 30 06:02 /etc
drwx--x--- 88 root shadow 4096 Окт 4 23:19 /etc/tcb
drwx--s--- 2 diver auth 4096 Ноя 26 2009 /etc/tcb/diver
-rw-r----- 1 diver auth 79 Ноя 26 2009 /etc/tcb/diver/shadow
drwx--x--- 2 root chkpwd 4096 Ноя 30 06:02 /usr/lib/chkpwd
-rws--x--x 1 root root 7680 Авг 12 22:39 /usr/lib/chkpwd/tcb_chkpwd
root@genesis:~$ control tcb_chkpwd tcb
root@genesis:~$ ls -ld / /etc /etc/tcb /etc/tcb/diver
/etc/tcb/diver/shadow /usr/lib/chkpwd /usr/lib/chkpwd/tcb_chkpwd
drwxr-xr-x 23 root root 4096 Сен 22 15:49 /
drwxr-xr-x 148 root root 12288 Ноя 30 06:02 /etc
drwx--x--- 88 root shadow 4096 Окт 4 23:19 /etc/tcb
drwx--s--- 2 diver auth 4096 Ноя 26 2009 /etc/tcb/diver
-rw-r----- 1 diver auth 79 Ноя 26 2009 /etc/tcb/diver/shadow
drwx--x--- 2 root chkpwd 4096 Ноя 30 06:02 /usr/lib/chkpwd
-rwx--s--x 1 root shadow 7680 Авг 12 22:39 /usr/lib/chkpwd/tcb_chkpwd
root@genesis:~$ grep ^shadow: /etc/nsswitch.conf
shadow: tcb files
root@genesis:~$ cat /proc/mounts
rootfs / rootfs rw 0 0
udevfs /dev devtmpfs rw,relatime,size=5120k,nr_inodes=213963,mode=755 0 0
/dev/sda1 / ext3
rw,relatime,errors=continue,commit=5,barrier=1,data=writeback 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
shmfs /dev/shm tmpfs rw,relatime 0 0
/dev/sda3 /home reiserfs rw,relatime 0 0
/dev/sdb1 /home/diver/Media ext4
rw,noatime,user_xattr,acl,barrier=1,data=ordered 0 0
tmpfs /tmp tmpfs rw,nosuid,relatime 0 0
next prev parent reply other threads:[~2011-11-30 6:55 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-29 10:38 diver
2011-11-29 12:32 ` Sergey V Turchin
2011-11-29 13:48 ` diver
2011-11-29 14:12 ` Sergey V Turchin
2011-11-29 14:29 ` diver
2011-11-29 14:47 ` Sergey V Turchin
2011-11-29 14:58 ` diver
2011-11-29 15:04 ` Sergey V Turchin
2011-11-29 15:01 ` Sergey V Turchin
2011-11-29 15:05 ` diver
2011-11-29 15:16 ` diver
2011-11-30 11:57 ` Sergey V Turchin
2011-11-30 12:00 ` Sergey V Turchin
2011-11-29 14:48 ` Dubrovskiy Viacheslav
2011-11-29 14:55 ` diver
2011-11-29 18:01 ` Anton Farygin
2011-11-29 18:29 ` diver
2011-11-29 19:26 ` diver
2011-11-29 20:23 ` diver
2011-11-29 21:11 ` Dmitry V. Levin
2011-11-29 22:20 ` diver
2011-11-29 23:02 ` Dmitry V. Levin
2011-11-29 23:04 ` Dmitry V. Levin
2011-11-30 6:55 ` diver [this message]
2011-11-30 12:28 ` Dmitry V. Levin
2011-11-30 13:07 ` diver
2011-11-30 13:12 ` diver
2011-11-30 13:44 ` Dmitry V. Levin
2011-11-30 14:01 ` diver
2011-11-30 14:02 ` diver
2011-11-30 14:09 ` diver
2011-11-30 14:30 ` Dmitry V. Levin
2011-11-30 14:34 ` diver
2011-11-30 14:39 ` Dmitry V. Levin
2011-11-30 14:41 ` diver
2011-11-30 14:43 ` diver
2011-11-30 14:57 ` Dmitry V. Levin
2011-11-30 15:02 ` diver
2011-11-30 15:18 ` [sisyphus] rpm-4.0.4-alt100.32 regression Dmitry V. Levin
2011-12-01 2:22 ` Dmitry V. Levin
2011-12-01 13:18 ` [sisyphus] [JT] " Michael Shigorin
2011-11-30 14:11 ` [sisyphus] kscreenlock & kcheckpass Dmitry V. Levin
2011-11-30 14:22 ` diver
2011-11-30 14:27 ` Dmitry V. Levin
2011-11-30 16:54 ` Dubrovskiy Viacheslav
2011-11-29 21:05 ` Dmitry V. Levin
2017-02-03 11:40 ` [sisyphus] "tcb_chkpwd: user unknown" (was: kscreenlock & kcheckpass) Michael Shigorin
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='CAK2uZ2d3yrK3kqC5AG_9-k=ok8W=3arVZj7x6RX1M2X4YR1p=w@mail.gmail.com' \
--to=diver666@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