You are not logged in.

#1 2002-10-03 01:31:09

dunbar
Member
From: Central New Hampshire USA
Registered: 2002-08-14
Posts: 106

Adding a user but they can't login

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

#2 2002-10-03 12:52:43

almostlucky
Member
From: California, USA
Registered: 2002-09-30
Posts: 16

Re: Adding a user but they can't login

log on as root, and enter:

passwd lee

it will then prompt you for the password. log out, and log in as lee! wink

Offline

#3 2002-10-03 13:33:01

dunbar
Member
From: Central New Hampshire USA
Registered: 2002-08-14
Posts: 106

Re: Adding a user but they can't login

almostlucky wrote:

log on as root, and enter:

passwd lee

it will then prompt you for the password. log out, and log in as lee! wink

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

#4 2002-10-03 15:16:58

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: Adding a user but they can't login

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

#5 2002-10-03 15:43:06

dunbar
Member
From: Central New Hampshire USA
Registered: 2002-08-14
Posts: 106

Re: Adding a user but they can't login

sarah31 wrote:

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

#6 2002-10-04 10:32:01

dunbar
Member
From: Central New Hampshire USA
Registered: 2002-08-14
Posts: 106

Re: Adding a user but they can't login

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 wink

Offline

Board footer

Powered by FluxBB