Link to home
Start Free TrialLog in
Avatar of bgit
bgit

asked on

Giving some samba users access to everyone's home directory

Hi,

I want all users to have access to their own home directory, but on top of that want to give two users access to everyone's home directory as well as their own. I'm not having much luck with this, could someone help me out.

Here's a copy of my smb.conf file:

[global]
workgroup = WORKGROUP
netbios name = Server
server string = "Downstairs"
security = USER
wins support = yes

# Home Directories
[homes]
comment = "Home Directories"
valid users = %S, dave, rob
read only = no
browseable = no


Thanks!
Avatar of daly1
daly1

Try this:

valid users = %S dave rob

If it does not work, please post any error messages you receive and/or any unexpected behaviour.
Avatar of bgit

ASKER

I made those changes but nothing changed.

There no errors in the log file, the home directories just don't appear.

I'm thinking that because homes is something samba takes care of especially by referring to the /smb/passwd file, it ignores dave and rob and will always just give the appropriate user their home directory only.

Any other suggestions?
did you give permission for dave and rob for all of the home directories.

try

setfacl -m:dave:rwx  /home
setfacl -m:rob:rwx  /home

then set
[homes]
comment = "Home Directories"
valid users = %S dave rob
read only = no
browseable = no
Avatar of bgit

ASKER

Sorry I didn't mention this earlier, but I'm running Ubuntu which doesn't utilise Access Control Lists.
Is there another way of achieving this?
ASKER CERTIFIED SOLUTION
Avatar of utarn
utarn

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bgit

ASKER

Thanks!