From: Eugene Prokopiev <enp@altlinux.org>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: [Comm] Change password permission denied for root
Date: Fri, 1 Oct 2010 10:28:40 +0400
Message-ID: <AANLkTi=TfVbn7NE=4b8EUZOCcpZa2ZKSz=iAE_3KHoH8@mail.gmail.com> (raw)
Здравствуйте!
Расскажите, как я смог добиться такого эффекта?
# 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
--
С уважением,
Прокопьев Евгений
next reply other threads:[~2010-10-01 6:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-01 6:28 Eugene Prokopiev [this message]
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
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='AANLkTi=TfVbn7NE=4b8EUZOCcpZa2ZKSz=iAE_3KHoH8@mail.gmail.com' \
--to=enp@altlinux.org \
--cc=community@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 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