ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [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

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