From: Sergey Lebedev <linux@vlink.ru>
To: community@altlinux.ru
Subject: Re: [Comm] useradd/userdel -- ????
Date: Tue, 23 Nov 2004 13:27:04 +0300
Message-ID: <20041123102704.GI5419@sarepta.ru> (raw)
In-Reply-To: <20041123101627.GB10417@ujo.office.sema.ru>
On 23 Nov, 01:16, Artem K. Jouravsky wrote:
> Привет всем!
> Глаза лезут на лоб -- не могу создать пользователя, потому что не могу
> его удалить!
> По порядку:
> 1. сделал пользователя для самбы в процессе экспериментов.
> 2. После конца экспериментов посносил домашние папки всех созданных
> юзеров, а также их почтовые ящики из /var/mail и записи из /etc/passwd. Не
> забыл и их папочки из /etc/tcb.
> 3. Потом решил кое-кого вернуть назад. Тут объявляется, что один
> пользователь не удалился:
> useradd: user pash exists
> 4. Пытаюсь его удалить:
> [root@tantalus r_ujo]# userdel -r pash
> userdel: cannot lock shadow password file
Если у вас есть нет ldap и всякого иного усложнения жизни, то
есть 2 варианта решения проблемы.
1. Вынести строчки из /etc/passwd и /etc/group с pash
2. Вариант создать папку pash в /etc/tcb в этой папке в свою
очередь файл shadow и попробовать удалить пользователя
userdel'ом. (этот способ я не проверял) :)
next prev parent reply other threads:[~2004-11-23 10:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-23 10:16 Artem K. Jouravsky
2004-11-23 10:27 ` Sergey Lebedev [this message]
2004-11-23 10:34 ` Sergey Lebedev
2004-11-23 10:35 ` Artem K. Jouravsky
2004-11-23 10:38 ` Sergey Lebedev
2004-11-23 11:13 ` Artem K. Jouravsky
2004-11-23 13:53 ` Sergey Lebedev
2004-11-23 14:09 ` [Comm] Re: [SUMMARY] " Artem K. Jouravsky
2004-11-24 10:10 ` Sergey Lebedev
2004-11-24 11:42 ` Artem K. Jouravsky
2004-11-26 13:05 ` [Comm] [JT] " 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=20041123102704.GI5419@sarepta.ru \
--to=linux@vlink.ru \
--cc=community@altlinux.ru \
/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