cd /home/test01 gives a "does not exist"
does it mean the /export/home/test01 will be created automatically?
Main Topics
Browse All TopicsHi,
I want /home/<user> to point to /export/home/<user>I cant seem to get it working... current config are as code snippets.
Also, is there a way to create the <user> folder upon execution of useradd?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The idea is to tell useradd that the home directory is at /export/home/test01 when it creates the directory. Then
once the directory, change the home path to /home/test01. You may need to refresh the autofs service. If not,
it might still be a while before it shows up in /home/test01. And that is only after you get the autofs thing
working in the first place.
Well, there isn't much use for it on a single system. The advantage comes mainly when you start sharing a home directory over multiple systems.
One possible advantage on a single system comes if it is a server with many users. That way all
the users can have the same home path (/home/username) when the actual directories live on
multiple disk volumes. (/export/home/disk1/userna
Other than that, there isn't much point.
Business Accounts
Answer for Membership
by: bluPosted on 2009-05-11 at 05:24:36ID: 24353715
So, what happens when you do "cd /home/test01" ?
As for the question about useradd, the answer is "sort of"
If you read the usradd man page, you will see a flag called "-b" which specifies a base directory and one called
"-m" which says to create the directory. Your problem is that you need to create the directory in one place, and
specify the actual string used in another. So to add your user and create the home directory:
useradd -m -b /export/home -u 5002 test01
Then immediately after that succeeds:
usermod -d /home/test01 test01
That will change the home directory to the aut0mount directory.