New User?
How do i make a new user in linux?
|
As root:
useradd username Then set the password: passwd username |
i get the error:
No Write access to $HOME Directory (/). |
/\ 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 |
Thats odd - try:
chown -R USERNAME /home/USERNAME |
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? |
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.
|
Yes, i made a Admin directory in /home/ and changed the permissions, and it worked, thanks for the help
|
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 |
Man, I love this place
do a specific search for your problem, find an answer immediately!
Same problem, same solution Thanks again |
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. |