LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Adding users with no home directory (https://www.linuxquestions.org/questions/linux-newbie-8/adding-users-with-no-home-directory-431144/)

keysorsoze 04-02-2006 09:13 PM

Adding users with no home directory
 
Hi! I am looking for a way to add users to the system using useradd but not to create a directory in /home for them. I just need them added to the system with no directory. I will be bringing the home directories from another system. Any ideas.

Thanks.

ilikejam 04-02-2006 09:37 PM

Hi.

The -M flag for useradd will prevent the creation of a home directory. You can use 'usermod -d' later to assign the home directory.

Dave

keysorsoze 04-02-2006 09:52 PM

Thanks for the answer, I'll give it a go.


All times are GMT -5. The time now is 05:13 PM.