LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-19-2005, 11:15 AM   #1
Joe2003
Member
 
Registered: May 2005
Distribution: Core 4
Posts: 34
Blog Entries: 2

Rep: Reputation: 15
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?????
 
Old 05-19-2005, 11:20 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding users Abbaddon Linux - Newbie 7 09-01-2004 05:30 AM
adding users... Digital_Err0r Linux - General 1 03-31-2004 04:08 PM
adding users Lucasite Linux - Newbie 3 03-04-2004 12:30 PM
Adding new users Fried Linux - Newbie 4 09-24-2001 11:37 AM
Adding users... philfighter Linux - General 3 07-23-2001 11:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration