You are not logged in.

#1 2007-07-29 17:35:53

javierg
Member
Registered: 2007-06-22
Posts: 15

Problems creating users

Hi, i create an user acount for me (normal user acount, not root), i did:

#useradd -u 500 -d /home/javier javier
#passwd javier (for the pass)


The user appear in passwd file, but the home directory for this user was not created... and when i log on the system say to me "No directory, loggin in with HOME=/"

some help?

Offline

#2 2007-07-29 17:46:05

Roberth
Member
From: The Pale Blue Dot
Registered: 2007-01-12
Posts: 894

Re: Problems creating users

Try to use adduser instead...


Use the Source, Luke!

Offline

#3 2007-07-29 19:30:13

1311219
Member
From: Sweden
Registered: 2007-01-09
Posts: 121

Re: Problems creating users

I wouldn't recommend you to specify a uid less than 1000 (they should be reserved for system accounts). you don't need to specify it anyway, since you will get a appropriate chose automatically.

also, I would recommend you to use the -m flag (instead of just specifying the home dir - since the -d parameter wont create it), since it will create the home directory if it doesn't exist.

that's all, I think, good luck! smile

Offline

#4 2007-07-29 21:57:28

javierg
Member
Registered: 2007-06-22
Posts: 15

Re: Problems creating users

ok... thanks for help...

i use adduser and the problem it's fixed...

smile

Offline

Board footer

Powered by FluxBB