LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   New User? (https://www.linuxquestions.org/questions/linux-newbie-8/new-user-74663/)

acc_minion 07-21-2003 04:48 PM

New User?
 
How do i make a new user in linux?

david_ross 07-21-2003 04:55 PM

As root:
useradd username

Then set the password:
passwd username

acc_minion 07-21-2003 05:11 PM

i get the error:

No Write access to $HOME Directory (/).

acc_minion 07-21-2003 05:26 PM

/\ I edited the last message, cuz i said thx before i finished it, so can u please tell me what to do:

This is what i did:

1. Logged in as root (in KDE)
2. Opened the Konsole
3. Entered useradd (the user name here)
4. Entered passwd (the user name here)
5. And typed the password twice, first, then varaification.

Please help

david_ross 07-22-2003 12:21 PM

Thats odd - try:
chown -R USERNAME /home/USERNAME

acc_minion 07-23-2003 09:44 AM

I recieved the error:

"chown: failed to get attributes of 'home/USERNAME' : No such file or directory"

If i made a file in /home/ of my username would that fix the problem?

david_ross 07-23-2003 12:30 PM

It would need be a folder and yes it might. Are you sure the user had been added? Take a look at /etc/passwd and make sure that an entry has been created for the user and that there is a home directory specified for that account.

acc_minion 07-23-2003 03:00 PM

Yes, i made a Admin directory in /home/ and changed the permissions, and it worked, thanks for the help

dav1x 07-23-2003 03:17 PM

I believe the -m switch on useradd makes the home directory as well. In redhat for instance, there is a preset alias adding that switch. In other distros its not present sometimes.

d

Dogface1SG 10-20-2003 09:31 AM

Man, I love this place
 
do a specific search for your problem, find an answer immediately!

Same problem, same solution

Thanks again

AskMe 10-20-2003 09:47 AM

In Red Hat Linux 9 there is command called redhat-config-users, it will give you graphical user interface GUI to create users and groups


All times are GMT -5. The time now is 11:40 PM.