* [Comm] Change password permission denied for root
@ 2010-10-01 6:28 Eugene Prokopiev
2010-10-01 6:40 ` Timur Batyrshin
2010-10-01 6:41 ` Starodumoff Ilya
0 siblings, 2 replies; 5+ messages in thread
From: Eugene Prokopiev @ 2010-10-01 6:28 UTC (permalink / raw)
To: ALT Linux Community general discussions
Здравствуйте!
Расскажите, как я смог добиться такого эффекта?
# usermod -p "" user
usermod: cannot lock shadow password file
# strace -f usermod -p "" user
...
open("/etc/tcb/user/shadow.lock",
O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK|O_NOFOLLOW, 0600) = -1 EACCES
(Permission denied)
...
# echo hello > /etc/tcb/user/shadow.lock
# rm /etc/tcb/user/shadow.lock
rm: remove regular empty file `/etc/tcb/user/shadow.lock'? y
# usermod -p "" user
usermod: cannot rewrite shadow password file
# strace -f usermod -p "" user
...
open("/etc/tcb/user/shadow-", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1
EACCES (Permission denied)
...
# echo hello > /etc/tcb/user/shadow-
# rm /etc/tcb/user/shadow-
rm: remove regular file `/etc/tcb/user/shadow-'? y
# usermod -p "" user
#
На всякий случай: user был создан в процессе создания образа системы
средствами mkimage примерно так:
useradd user
usermod -G wheel user
usermod -p "" user
--
С уважением,
Прокопьев Евгений
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] Change password permission denied for root
2010-10-01 6:28 [Comm] Change password permission denied for root Eugene Prokopiev
@ 2010-10-01 6:40 ` Timur Batyrshin
2010-10-01 9:13 ` Eugene Prokopiev
2010-10-01 6:41 ` Starodumoff Ilya
1 sibling, 1 reply; 5+ messages in thread
From: Timur Batyrshin @ 2010-10-01 6:40 UTC (permalink / raw)
To: community
[-- Attachment #1: Type: text/plain, Size: 514 bytes --]
On Fri, 1 Oct 2010 10:28:40 +0400
Eugene Prokopiev wrote:
> Расскажите, как я смог добиться такого эффекта?
>
> # usermod -p "" user
> usermod: cannot lock shadow password file
> На всякий случай: user был создан в процессе создания образа системы
> средствами mkimage примерно так:
>
> useradd user
> usermod -G wheel user
> usermod -p "" user
Это не #13213 случаем?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] Change password permission denied for root
2010-10-01 6:28 [Comm] Change password permission denied for root Eugene Prokopiev
2010-10-01 6:40 ` Timur Batyrshin
@ 2010-10-01 6:41 ` Starodumoff Ilya
1 sibling, 0 replies; 5+ messages in thread
From: Starodumoff Ilya @ 2010-10-01 6:41 UTC (permalink / raw)
To: community
01.10.2010 12:28, Eugene Prokopiev пишет:
> Здравствуйте!
ага
chown -R root.auth /etc/tcb/root
--
С уважением,
Стародумов Илья
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] Change password permission denied for root
2010-10-01 6:40 ` Timur Batyrshin
@ 2010-10-01 9:13 ` Eugene Prokopiev
2010-10-01 9:39 ` Дмитрий Дегтярев
0 siblings, 1 reply; 5+ messages in thread
From: Eugene Prokopiev @ 2010-10-01 9:13 UTC (permalink / raw)
To: ALT Linux Community general discussions
> Это не #13213 случаем?
оно, спасибо
--
С уважением,
Прокопьев Евгений
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] Change password permission denied for root
2010-10-01 9:13 ` Eugene Prokopiev
@ 2010-10-01 9:39 ` Дмитрий Дегтярев
0 siblings, 0 replies; 5+ messages in thread
From: Дмитрий Дегтярев @ 2010-10-01 9:39 UTC (permalink / raw)
To: ALT Linux Community general discussions
01.10.2010 15:13, Eugene Prokopiev пишет:
>> Это не #13213 случаем?
> оно, спасибо
>
позавчера не смог авторизоваться в kde при включении компа
днём ранее обновлялся, больше ничего с системой ни делал
root'а пускает, остальных нет...
su - user
говорит UNKNOWN user
strace passwd user
говорит
Permission denied на shadow
find /etc/tcb/user -ls
2217 4 drwx--s--- 2 user auth 4096 Июн 8 03:06 /etc/tcb/user
67614 4 -rw-r----- 1 user auth 77 Июн 8 03:06 /etc/tcb/user/shadow
74693 0 -rw------- 1 user auth 0 Июн 8 03:06 /etc/tcb/user/shadow.lock
67617 0 -rw------- 1 user auth 0 Июн 8 03:06 /etc/tcb/user/shadow-
Вошёл в систему только путём правки /etc/pam.d/system-auth
auth requisite pam_succeed_if.so uid = 500 quiet
account requisite pam_succeed_if.so uid = 500 quiet
password requisite pam_succeed_if.so uid = 500 quiet
session requisite pam_succeed_if.so uid = 500 quiet
В торой день таким образом авторизуюсь. В чём косяк не пойму..
система sisyphus x86_64
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-10-01 9:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-01 6:28 [Comm] Change password permission denied for root Eugene Prokopiev
2010-10-01 6:40 ` Timur Batyrshin
2010-10-01 9:13 ` Eugene Prokopiev
2010-10-01 9:39 ` Дмитрий Дегтярев
2010-10-01 6:41 ` Starodumoff Ilya
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git