Click to See Complete Forum and Search --> : new user id/accounts?


motorhead28
04-19-2001, 03:05 AM
how do i create a user id/account aside from superuser?

thanks in advance

supernewb

prince_kenshi
04-19-2001, 03:11 AM
You can use the useradd command to accomplish this task. Just use the syntax "useradd kenshi" with whatever username you desire. I don't think this will make a home directory though. You'll have to make it by typing "mkdir /home/kenshi". Luckily it seems to put this home directory in /etc/passwd for you, so as long as the home directory has the same name as your user, you needn't worry about it. Then you just type "cp /etc/skel/* /home/kenshi/" and you're done. Confused? Just do what I put in quotations replacing kenshi with the username.

motorhead28
04-19-2001, 03:22 AM
ok, got the first two commands, but what does the "cp/etc/skel/* /home/kenshi/" do? I entered it from the / directory and the error message says "no such file or directory"

motorhead28
04-19-2001, 03:40 AM
just chekin my new sig

prince_kenshi
04-19-2001, 03:42 AM
Stupid copy command. Ok, I have a better way. If you made the user, type "userdel kenshi". Also type "rm /home/kenshi". Now type "useradd -m kenshi". This does all three steps at a time. Bam!