LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-29-2008, 11:30 AM   #1
deedawn
LQ Newbie
 
Registered: Oct 2008
Posts: 1

Rep: Reputation: 0
Creating a user without a home directory.


Hello All,

I am very new to Unix, and I am trying to create a user without a home directory so that I can then use Pam_mkhomedir to create a custom home directory for that user. Can someone please help me with this.
 
Old 10-29-2008, 11:35 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by deedawn View Post
Hello All,

I am very new to Unix, and I am trying to create a user without a home directory so that I can then use Pam_mkhomedir to create a custom home directory for that user. Can someone please help me with this.
useradd (with no -d flag)

man useradd for details
 
Old 10-29-2008, 11:36 AM   #3
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
just do:

Quote:
useradd username

also read through:

man useradd
 
  


Reply

Tags
directory, home, user



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
Creating a group home directory powerpleb Linux - Newbie 7 09-07-2012 12:42 AM
Useradd not creating home directory when creating newuser meneedham Linux - Newbie 4 10-05-2007 12:11 PM
How can I set the permission on the home directory when creating an user crisostomo_enrico Solaris / OpenSolaris 4 09-26-2007 06:24 PM
creating home directory jitheshmurali Linux - Networking 2 04-24-2006 06:03 AM
Creating new user gives empty /home directory rkfb Slackware 8 12-28-2005 11:17 AM

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

All times are GMT -5. The time now is 07:22 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
Open Source Consulting | Domain Registration