[Samba] odd issue with permisions

Rowland penny rpenny at samba.org
Wed Oct 28 11:02:22 UTC 2020


On 28/10/2020 10:24, L.P.H. van Belle via samba wrote:
> Hm, samba 4.11.2-13 is running on CentOS  8.
> Im not really into CentOS/RH im more Debian/Ubuntu..
>
> But I suggest you try this.
>
> Remove [homes]  ( or keep it but add a new one. )
>
> Setup
> [users]
>      Path = /home
>      browseable = yes
>      read only = no
>
> Test again against that new share, but not with smbclient alone,
> setup a cifs mount and test and/or use a windows client pc.
> Preffered W10 or server 2016+
>
> I think you hitted a bug here. In smbclient + [homes]
> But not sure yet.
>
> And increasing the loglevel might help in "seeing" where this is going wrong.
>
>
> Greetz,
>
> Louis
>
>
>
OK, I feel this must be something at your end (selinux ???), it works 
for myself on Debian 10 running Samba 4.12.8

$ mkdir ~rowland/test1
$ chmod 700 ~rowland/test1
$ smbclient -U rowland //localhost/rowland
Enter WORKGROUP\rowland's password:
Try "help" to get a list of possible commands.
smb: \> cd test1
smb: \test1\> put test1.txt
putting file test1.txt as \test1\test1.txt (0.0 kb/s) (average 0.0 kb/s)

My smb.conf:

[global]
    log file = /var/log/samba/log.%m
    max log size = 1000
    logging = file
    panic action = /usr/share/samba/panic-action %d
    server role = standalone server
    obey pam restrictions = yes
    unix password sync = yes
    passwd program = /usr/bin/passwd %u
    passwd chat = *Enter\snew\s*\spassword:* %n\n 
*Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    pam password change = yes
    map to guest = bad user
    usershare allow guests = yes
    vfs objects = acl_xattr
    map acl inherit = yes
    printing = CUPS

[homes]
    comment = Home Directories
    browseable = no
    read only = no
    create mask = 0700
    directory mask = 0700
    valid users = %S

[printers]
    comment = All Printers
    browseable = no
    path = /var/spool/samba
    printable = yes
    create mask = 0700

[print$]
    comment = Printer Drivers
    path = /var/lib/samba/printers

[demo]
     path = /srv/samba/demo
     read only = no


Rowland





More information about the samba mailing list