LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-23-2001, 06:09 PM   #1
sancho5
Member
 
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327

Rep: Reputation: 30
Creating users...


Hey there,
Is there an option that allows you to add a user account but not setup a login/home folder for them on the system?
#useradd <name>

will add the user to the system, as well as create a home/login directory for them. I want to allow the account to authenticate to the system, but not create login files/directory for them.
 
Old 08-23-2001, 06:15 PM   #2
d3funct
Member
 
Registered: Jun 2001
Location: Centralia, WA
Posts: 274

Rep: Reputation: 31
If you do a "man useradd" you'll see that the "-M" option will override default settings.

From the useradd manpage:
-M The user home directory will not be created, even if the system wide settings from /etc/login.defs is to create home dirs.
 
Old 08-23-2001, 06:20 PM   #3
sancho5
Member
 
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327

Original Poster
Rep: Reputation: 30
Awesome. I'm not in front of a Linux box right now, or I would have checked myself - so thank you for your help.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
creating new users skvasistha Linux - General 3 11-26-2004 11:02 PM
I'm having trouble creating users royalflush Linux - Newbie 6 08-02-2004 10:31 AM
Creating Users [HELP] reddog64 Linux - Newbie 2 04-24-2004 10:34 AM
creating users ergo_sum Linux - Newbie 3 08-13-2003 04:46 PM
Creating Users mrsolo Linux - Software 2 12-10-2002 01:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:29 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