System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

make file system as home dir?

NDO
Super Advisor

make file system as home dir?

Hi All!

 

I am trying to create a user, and make its home directory as an existing file system ( 1Tb), but so far I am unable to do that, it comes with the following error:

'xyz/' is not a valid directory

 Please can have some help!

3 REPLIES
Torsten.
Acclaimed Contributor

Re: make file system as home dir?

Not really sure what you are doing, but you probably need to specify the full path to the mounted filesystem, e.g.

 

/xyz


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
NDO
Super Advisor

Re: make file system as home dir?

 

I have already created a user, but right now its home dir is /home/userX, but when I use the usermod command this is what happening:

 #usermod -d xyz/ userX
'xyz/' is not a valid directory

 

NDO
Super Advisor

Re: make file system as home dir?

its now came right, I did the following:

 

usermod -d /xyz userX

 

thanx