[Samba] Samba works, but no acces to home directories
Rowland Penny
rpenny at samba.org
Tue Jun 26 12:43:05 UTC 2018
On Tue, 26 Jun 2018 13:49:40 +0200
Daniel Spannbauer via samba <samba at lists.samba.org> wrote:
> Hello,
>
>
> I installed a fresh opensuse Tumbleweed with samba
> 4.8.2+git.30.690aa93c189-2.2.
>
> smb.conf looks as follows:
>
> [global]
> server string = host12
> workgroup = WORKGROUP
> ; speed optimierungen
> socket options = TCP_NODELAY
> debug level = 10
> getwd cache = yes
> preserve case = yes
> bind interfaces only = yes
> interfaces = br0
> encrypt passwords = yes
> printing = cups
> printcap name = cups
> printcap cache time = 750
> smb ports = 139
> local master = no
> kernel oplocks = No
> ; ----- same as "umask 2"
> create mask = 0775
> ; ----- disconnect after N minutes inactive
> dead time = 300
> ; ----- check whether clients are alive [seconds]
> keep alive = 300
> ; ----- may delete readonly files
> delete readonly = yes
> ; ----- logfiles grow up to N kByte
> max log size = 100
> ; ----- don't map archive bit to execute bit
> map archive = no
> directory mask = 0775
> ; ----- WINS support
> wins support = yes
> name resolve order = wins host bcast
> security = user
> unix charset = UTF-8
> netbios aliases = homedirs
> usershare allow guests = No
>
>
> [homes]
> comment = Home Directory
> browseable = no
> writable = yes
>
> [......som other sharees....]
>
> Permissions for the home directories should work I think:
>
> host12# ll -d /mnt/home/user/
> drwxr-xr-x 75 user entw 4096 Jun 25 15:30 /mnt/home/user/ User is
> added to the samba password database with "smbpasswd -a
> user". /mnt/home is on a second disk:
> UUID=d3100e02-be82-43a0-af5b-054bcf6c0575 /boot ext4
> acl,user_xattr 0 2 UUID=91b5580b-6272-408e-bf24-1b7ffe07da55
> swap swap defaults 0 0
> UUID=d1413106-210d-4f03-8f60-699cf3486251 / ext4
> acl,user_xattr 0 1
> UUID=086480e2-d313-495f-8fba-fef25c9149a3 /mnt/home/ ext4
> acl,user_xattr 0 1 All shares are working EXCEPT the user homes.
> With a raised log level I found: --------------------------
>
First (and this probably doesn't have anything to do with your
problem), did you know that 'acl' and 'user_xattr' are part of the
defaults for ext4 ?
Obviously not, or you wouldn't have replaced 'defaults' with
'acl,user_xattr', can I suggest you change it back ?
Do the users home directories exist ?
Do they match the default setting 'template homedir = /home/%D/%U' ?
Where '%D' will be 'WORKGROUP' and '%U' will be the users name.
I am taking it for granted that the users also exist as a local Unix
user i.e. they are in /etc/passwd
Rowland
More information about the samba
mailing list