Map /home to samba share

Is there a way of doing this and is it undesirable in any way?
LVL 87
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I don't think I quite get what you want here...

a) you want to share your /home as a samba share?


b) you want to mount a remote share as /home?

the first option is fine, but obviously a big security risk

the second option is also fine, but will obviously be slower. you may want to use NFS rather than samba, but either would work
oh, as for the howto, for a) you just need to add a new share directive into the smb.conf. For b), you need to modify /etc/fstab so that the device /home is an smb or nfs mount.

You could also mount and empty /home from a local disk, and then use automount to connect the user's homedir when they try to access it.

both options are outlined here:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mount -t smbfs //server/share /home
Try this if you want to use JammyPak's second example.  It sounds to me like that's what you want.

Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

but you'd have to run that after every reboot...using /etc/fstab will make it permanent

here's another link with the syntax to use for smb mounts in fstab...
CEHJAuthor Commented:
Yes, it's b) i'm thinking of. The reason i'm doing this is HD space is very scarce on that box. Just wondering, apart from the obvious overhead if there's any gotcha i've overlooked. Shall be back in about a week
CEHJAuthor Commented:
Thanks folks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.