[NTLUG:Discuss] create user account

Charles Cashion papacharles at dunjas.com
Mon Jan 16 12:40:20 CST 2006


I want to create a user account for my grandson.
The computer is running FC4.
when I ran
[root]# useradd -p sonofjohn bcashion
It created entries in /etc/passwd and /etc/shadow
and it created /home/bcashion
But when I tried
[root]# su bcashion
password: sonofjohn
it would not accept "sonofjohn" as password.

Then I cleaned out what I had created
[root]# userdel bcashion
Then I read "man useradd" and observed that it wanted
the password to pass thru "encrypt(3)" first. So I
tried to create the account without a password
[root]# useradd bcashion
It created entries in /etc/passwd and /etc/shadow
and it created /home/bcashion
And when I tried
[root]# su bcashion
It did NOT ask for password and it returned
[/home/bcashion ~]
So I thought I was in until I logged completely off
and tried to log back in as bcashion. The login
wants a password.

Tnx,
Charles




More information about the Discuss mailing list