LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Adding users (https://www.linuxquestions.org/questions/linux-software-2/adding-users-325044/)

Joe2003 05-19-2005 10:15 AM

Adding users
 
hey

I have been using the server on our network, anyway some how I have managed to delete my user dirrectory and now I cannot log back in (ssh). I have root the password so how do I add a new user through the command line, I tried just making a new dirrectory to /home but this doesnt work. Any pointers?????

jtshaw 05-19-2005 10:20 AM

If all you did was delete the home directory for the user then try this:

mkdir /home/<user>
chown <user>:users /home/<user>

If you somehow deleted the user entirely then the adduser command will help you out.


All times are GMT -5. The time now is 02:04 AM.