Adding New Accounts & Changing Root Password

A place to ask all newbie questions and not get flamed, though you will get beaten down if you post a newbieish question outside of these walls.
Post Reply
ps2repairpro
Newbie
Posts: 9
Joined: Fri Sep 24, 2004 7:37 pm

Adding New Accounts & Changing Root Password

Post by ps2repairpro »

Well solved the password change problem passwd at the konsole. But how do I create a new user account. I have a redhat book that told me to use the command useradd and passwd. I created a user in this fashion and when I attempted to log on it said their home directory didn't exist :roll:.

I am using the KDE environment is there a way to do this through the GUI rather then the Konsole? I have no preference either way.
nobspangle
Gentoox Guru!
Posts: 1681
Joined: Sun Sep 28, 2003 11:59 am
Location: Manchester, UK

Post by nobspangle »

you need to use the -m switch with useradd so that the home directory gets copied from /etc/skel you'll proabablly also want to make them a memeber of users, audio and wheel like this

Code: Select all

useradd -G users,audio,wheel -m username
If you've already set the user up you can create the home directory yourself like this

Code: Select all

cp -avx /etc/skel /home/username
chown username:users /home/username
chown -R username:users /home/username/*
If you keep an open mind, will your brain fall out?
ps2repairpro
Newbie
Posts: 9
Joined: Fri Sep 24, 2004 7:37 pm

Post by ps2repairpro »

Ok thanks I can do it now. Since I'm replying with my Xbox :D .
ps2repairpro
Newbie
Posts: 9
Joined: Fri Sep 24, 2004 7:37 pm

Post by ps2repairpro »

Success thanks alot :wink:.
SnAtcH
Linux User
Posts: 11
Joined: Wed Nov 03, 2004 1:52 pm

webmin

Post by SnAtcH »

login to webmin.. go to systems and there you'll see something named user management... the easiest way to create users :)


http://xbox:10000 (default)



Cheers
Post Reply