OpenWrt Forum Archive

Topic: Samba Access Denied

The content of this topic has been archived on 18 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello. I installed Samba. The only problem is that I am not able to modify / add any file (anything else works fine) from Windows or any OS (android). The Path which I am using is from a mount point (usb device), which has the default options (i assume that it is writable).


Samba configuration:

[global]
    netbios name = |NAME|
    display charset = |CHARSET|
    interfaces = |INTERFACES|
    server string = |DESCRIPTION|
    unix charset = |CHARSET|
    workgroup = |WORKGROUP|
    browseable = yes
    deadtime = 30
    domain master = yes
    encrypt passwords = true
    enable core files = no
    guest account = nobody
    guest ok = yes
    invalid users = root
    local master = yes
    load printers = no
    map to guest = Bad User
    max protocol = SMB2
    min receivefile size = 16384
    null passwords = yes
    obey pam restrictions = yes
    os level = 20
    passdb backend = smbpasswd
    preferred master = yes
    printable = no
    security = user
    smb encrypt = disabled
    smb passwd file = /etc/samba/smbpasswd
    socket options = TCP_NODELAY IPTOS_LOWDELAY
    syslog = 2
    use sendfile = yes
    writeable = yes

This is caused by patch 010-patch-cve-2015-5252.patch.
Its bad fix that remove ability of accessing root. Long ago I created ticket but it was ignored.
Since when I self compile samba with this patch removed

(Last edited by bolvan on 26 Apr 2017, 09:50)

The discussion might have continued from here.