HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

useradd error: not a valid directory

 
dictum9
Super Advisor

useradd error: not a valid directory


Trying to run useradd but the -d parameter is so long (78 characters) that it errors out, saying:

...... is not a valid directory

could it be something other than the length of the home directory?
3 REPLIES
Sunny123_1
Esteemed Contributor

Re: useradd error: not a valid directory

Hi

Can you post exact error or snapshot of error and command that you are trying??


Regards
Sunny
James R. Ferguson
Acclaimed Contributor

Re: useradd error: not a valid directory

Hi:

You could show the command you are using and the OS level --- that's always "nice".

That said, when using the '-d' option To specify directory creation, you must use the '-m' option too.

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: useradd error: not a valid directory

Try it with a dummy directory - something like /tmp/userdir. Then you'll know.


Pete

Pete