Re: shadow problems with adduser
On Tue, 13 May 1997, George Bonser wrote:
>
> When I attempt to add a user account with adduser <username> it prompts me
> for the password twice as I would expect then notifies me that the user
> was not found in /etc/shadow (no duh! I am trying to ADD a new user!) and
> kicks me back to the prompt for a password and it sticks in this loop.
>
> I have to go to another VT to kill adduser to get control back.
>
> QUESTION: How do I add a new user if I have shadow support?
>
Until adduser is fixed to accomodate shadow passwords here is the work
around:
shadowconfig off
adduser
shadowconfig on
or you can use the following script that I called sadduser:
#!/bin/sh
set -e
pwck -e
grpck
pwunconv
grpunconv
adduser $@
pwck -e
grpck
pwconv
grpconv
chown root.root /etc/passwd /etc/group
chmod 644 /etc/passwd /etc/group
chown root.shadow /etc/shadow /etc/gshadow
chmod 640 /etc/shadow /etc/gshadow
Luck,
Dwarf
--
_-_-_-_-_-_- _-_-_-_-_-_-_-
aka Dale Scheetz Phone: 1 (904) 656-9769
Flexible Software 11000 McCrackin Road
e-mail: dwarf@polaris.net Tallahassee, FL 32308
_-_-_-_-_-_- If you don't see what you want, just ask _-_-_-_-_-_-_-
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: