Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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? –  Beaming Mel-Bin Oct 27 '10 at 2:08
add comment

1 Answer

How about just move Samba homes? For example:

[homes]
path=/data/documents/%S
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.