Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to modify my Linux server's Samba config so that each user gets their own private folder, in a similar way to having a private 'home' folder.

Is it possible to create a samba share that maps to different places, depending on username? E.g if 'bob' connects they see the contents of /documents/bob and if 'fred' connects they see the contents of /documents/fred, and so on?

(I know this is what the [homes] share does, but I want another specifically for each user's private documents that won't get mixed with all the Linux user cruft such as dotfiles and things)

share|improve this question
Did you ever get this to work? – Belmin Fernandez Oct 27 '10 at 2:08

How about just move Samba homes? For example:

comment = User homes
valid users = %S
read only = No
browseable = No

That way, you won't have to see all the "Linux user cruft". You could always symlink the Linux home directory to /data/documents/%S/linux or something.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .