LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-07-2009, 09:11 AM   #1
daransinus
LQ Newbie
 
Registered: Oct 2009
Posts: 8

Rep: Reputation: 0
can`t see user in debian


created a new user with useradd, but it`s not visible in the /home directory. So i thought the user wasn`t really created so i tried useradd once more with the same username as before - got back the user already exists. Is there some kind refresh that needs to be done?
 
Old 10-07-2009, 09:27 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello and Welcome to LinuxQuestions,

The useradd command doesn't automatically create the home directory for the user, you'll have to provide arguments to do that. To create with home directory you'd use the -d parameter. Check out the man pages for useradd.
Code:
man useradd
to get a full list of the options.

If you are new to Linux try using the adduser command instead, it does a lot more automatically, like setting a home directory, setting password and such. Check out
Code:
man adduser
to learn about the options of the command.

Kind regards,

Eric
 
Old 10-08-2009, 07:25 PM   #3
daransinus
LQ Newbie
 
Registered: Oct 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Very useful thanks you :-)
 
Old 10-08-2009, 08:54 PM   #4
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 63
Quote:
Originally Posted by daransinus View Post
Very useful thanks you :-)
What's the command(using useradd) did you use to solve the problem?

Last edited by cola; 10-08-2009 at 09:20 PM.
 
Old 10-09-2009, 09:36 AM   #5
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Quote:
Originally Posted by daransinus View Post
Very useful thanks you :-)
You're welcome

Kind regards,

Eric
 
  


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
Debian user juchem LinuxQuestions.org Member Intro 1 02-05-2008 03:51 PM
New Debian user here Christmas LinuxQuestions.org Member Intro 1 04-17-2006 08:40 AM
New Debian user alphazed LinuxQuestions.org Member Intro 1 01-08-2006 04:42 PM
New Debian User cheeky_zombie Linux - Distributions 3 10-23-2001 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:21 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration