You are not logged in.
Pages: 1
Howdy:
I'm trying to add a day to day user, the new user can't login, "login incorrect".
I've been through the man pages and I'm following the commands with these options... does anyone see anything I'm missing?
[root@myhost root] useradd -u 101 -g users -d /home/lee -m -p lee lee
[root@myhost root] groupadd -g 101 lee
[root@myhost root] su - lee
[lee@myhost lee] ls - l
.bash_profile .bashrc .xinitrc
[lee@myhost lee] startx
(X launches, runs windowmaker. I exit windowmaker, X also exits per normal)
[lee@myhost lee] exit
[root@myhost root] exit
Login: lee
password: (I entered the 3 character string 'lee', lower case per useradd)
Login incorrect.
Login: lee
password: (I entered the 3 character string 'LEE', upper case per a whim)
Login incorrect.
Login: lee
password: (entered tab character... worked as a null string in some prior instances)
Login incorrect.
Login: root
(blah, spew.)
[root@myhost root] more /etc/groups
shows lee:x:101:
Umm, x? The password was not letter x and was not a single character..... Maybe this x is just a token placed to show that there is a password, but I just showed that it didn't allow me to log in.
What am I doing wrong???
BTW: running userdel then groupdel, then rerunning groupadd (per above options) first, then useradd second also fails in the same manner.
Offline
log on as root, and enter:
passwd lee
it will then prompt you for the password. log out, and log in as lee!
Offline
log on as root, and enter:
passwd lee
it will then prompt you for the password. log out, and log in as lee!
Thanks for the pointer, will try it tonight when I once again sit at the Arch Linux 'console'!
Is this a normal routine when creating a user? Or possibly the other distros (which I've grown to hate) are hiding this effect behind the installation script?
Offline
yes it is a standard procedure for creating a users password. another good way of creating a user is:
useradd -m -s /bin/bash <usermane>
then
passwd <username>
This creates /home/newuser with password x and a nice bash prompt not the standard bash-2.05a prompt.
AKA uknowme
I am not your friend
Offline
useradd -m -s /bin/bash <usermane>
then
passwd <username>
This creates /home/newuser with password x and a nice bash prompt not the standard bash-2.05a prompt.
Thanks.
Offline
Well, the new user is happy (so am I).
FWIW, after I was given the answer here in this thread, I learned the document 'archworld.html' on the 0.3 ISO is not the most current version. Ok, all together: "DUH".
The "Managing Users" section of documentation on the Archlinux homepage is more recent and gives the same answer as those above.
Checking for more recent versions of a document certainly applies.
Arch Linux Documentation for 'Release: 0.3 (Firefly)' as of this post
Offline
Pages: 1