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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-21-2005, 06:38 AM
|
#1
|
|
LQ Newbie
Registered: Jun 2005
Posts: 18
Rep:
|
user home dir doesn't create when new user add
Dear,
i have a problem when create new user the system doesn't create a user home dir under /home i don't want to use the -d option to tell where is the home dir i want use the default.
note i am on debian.
can any one tell me why does it can't create a user home dir
thank you
|
|
|
|
06-21-2005, 10:09 AM
|
#2
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,690
|
Hi,
Take a look at the useradd manpage, especially the -b option (part of the 'Changing the default values' section).
Hope this helps.
|
|
|
|
06-22-2005, 02:13 AM
|
#3
|
|
LQ Newbie
Registered: Jun 2005
Posts: 18
Original Poster
Rep:
|
try adduser
hi,
i try adduser instad of useradd to create the new user and it's work fine it's create the user home dir and also it ask me about all the user info like the passwd, full name and other.
as i think this is happend on debian i didn't see this in redhat or fedora
thank you.
|
|
|
|
01-12-2007, 01:08 AM
|
#4
|
|
Member
Registered: Jul 2006
Distribution: RHEL, CentOS, PuppyLinux, SuSe, Ubuntu, Debian
Posts: 59
Rep:
|
Use the '-m' option with useradd. This tells the command to create the home directory.
You may also want to use the '-d' option to specify the directory to be created. The '-k' option will specify the skeleton directory from where the initial files to be put into the home directory will be picked up (the default is /etc/skel).
useradd -d /home/username -m -k /etc/skel username
Hope that helps.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:25 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|