urgent
Hi!
how to create the user without creating home directory? Hillol Nayak |
Hello and Welcome to LinuxQuestions,
Please don't use words like 'urgent' in your thread title or in your text. We're all volunteers here on LQ and it's only urgent to you. Change your thread title into something more descriptive so that we instantly know what it's about. In regards to your question, AFAIK the command useradd doesn't create a home directory if you don't provide the parameter -d or --home. So you just use the command without that parameter and the user will be created without a home directory. For more detail you can always read the man page: Code:
man useradd Eric |
Hi,
In addition to EricTRA's reply: useradd will not create the home dir by default. Do not use the -m option either. Regards. |
See man useradd, the -M option in particular (but do read the entire man page!).
|
@tronayne: That should be -m, not -M ;) (This depends on the useradd version that is available on your machine, see post #6)
|
Hi druuna,
Don't want to go against you but I think there might be some differences in the versions of useradd used. In the man page of useradd I have on my Slackware 13.1 is also mentioning of the -M Code:
-m, --create-home Eric |
@EricTRA / tronayne:
I did look at the manpage and it does not mention the -M option. As stated by you: Other versions do seem to mention it. So: check the manpage to make sure. |
|
All times are GMT -5. The time now is 02:38 PM. |