[Samba] Changing users home directory location

dnk d.k.emaillists at gmail.com
Sat Apr 25 20:21:01 GMT 2009


Hi there,

I have a pretty stock samba setup, but had been getting low on drive  
space. I dropped in another hard drive, and added it as the mount  
point /home/users.

I then moved all my user folders into the /home/users folder  
(effectively moving them to another hard drive), and left my existing  
public samba shares where they were /home/samba/share. I didn't want  
to have to much with my ACL's, etc.

I then used the usermod tool to update all the users home directory.

# usermod -d /home/users/username username

now my smb.conf currently has (home directory related - rest trimmed):

logon home = \\%L\%U

[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No

Now after restarting smb, and trying to access my mapped drives

\\xxx.xxx.xxx.xxx\username

They are not accessible. How does samba determine that path?

I also tried making my homes share like:

[homes]
comment = Home Directories
path = /home/users
valid users = %S
read only = No
browseable = No

But again, no go. So I am assuming there must be another setting

Then I tried:

[homes]
comment = Home Directories
path = /home/users/%u
valid users = %S
read only = No
browseable = No

and

[homes]
comment = Home Directories
path = /home/users/%U
valid users = %S
read only = No
browseable = No


Any pointers here?

Thanks in advance!






More information about the samba mailing list