Hi,
I am Using OMV 4.1.31.-1 (Arrakis). I can connect to my SMB share but I cannot access its content.
In Windows 10 I'm connecting with Map network drive via \\192.168.178.100\Sharetest or \\omvnas\Sharetest. If I provide a wrong password, the drive won't be added. However, with the correct password the drive will be mapped but I cannot open it, it's a "Permission denied" error. From Xubuntu Live I tried something like mount -t cifs -o ver=3.11,user=user1 ... but I get cifs_mount failed w/return code = -13
What I have checked so far:
- Create user1 in groups: user1, users, sambashare
- Access Rights Management > Shared Folders: Add "Sharetest"
- Permissions: Everyone: read/write
- Privileges: Read/Write for user user1 and group user1
- Tried with and without ACLs
- Services > SMB/CIFS > Settings:
- Enable
- Workgroup: WORKGROUP
- Local master browser OFF
- Home directories: OFF
- Browseable: ON
- WINS support OFF
- Use sendfile: ON
- Services > SMB/CIFS > Shares:
- Sharetest
- Public: Guests allowed
- Browseable ON
- Inherit ACLs ON
- Changed file permissions:
- chown -R user1:users /srv/dev-disk-by-label-nasdrive/Sharetest (tried with and without this)
- chmod -R 777 /srv/dev-disk-by-label-nasdrive/Sharetest (tried with and without this)
- File permissions of /srv/dev-disk-by-label-nasdrive/Sharetest:Bash: ls -la
root@omvnas:/srv/dev-disk-by-label-nasdrive/Sharetest # drwxrwsrwx 4 user1 users 4.0K Jan 25 01:14 . drwxrws--- 14 root root 4.0K Jan 23 22:25 .. drwxrwsrwx 2 user1 users 4.0K Jan 24 23:17 MyFolder root@omvnas:/sharedfolders/Sharetest # drwxrwsrwx 4 user1 users 4.0K Jan 25 01:14 . drwxr-xr-x 4 root root 4.0K Jan 24 00:07 .. drwxrwsrwx 2 user1 users 4.0K Jan 24 23:17 MyFolder
As you can see I have setgid set, but is doesn't seem to change anything.
#======================= Global Settings =======================
[global]
workgroup = WORKGROUP
server string = %h server
dns proxy = no
log level = 10
log file = /var/log/samba/log.%m
max log size = 1000
logging = syslog
panic action = /usr/share/samba/panic-action %d
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = no
unix password sync = no
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
socket options = TCP_NODELAY IPTOS_LOWDELAY
guest account = nobody
load printers = no
disable spoolss = yes
printing = bsd
printcap name = /dev/null
unix extensions = yes
wide links = no
create mask = 0777
directory mask = 0777
map to guest = Bad User
use sendfile = yes
local master = no
time server = no
wins support = no
#======================= Share Definitions =======================
[Sharetest]
comment = Sharetest
path = /srv/dev-disk-by-label-nasdrive/Sharetest
guest ok = yes
read only = no
browseable = yes
inherit acls = yes
inherit permissions = yes
ea support = no
store dos attributes = no
vfs objects =
printable = no
create mask = 0664
force create mode = 0664
directory mask = 0775
force directory mode = 0775
hide special files = yes
follow symlinks = yes
hide dot files = no
read list =
write list = "user1",@"user1"
Alles anzeigen
Jan 25 01:24:59 omvnas nmbd[19559]: [2020/01/25 01:24:59.040304, 4, pid=19559, effective(0, 0), real(0, 0)] ../source3/nmbd/nmbd_workgroupdb.c:165(find_workgroup_on_subnet)
Jan 25 01:24:59 omvnas nmbd[19559]: find_workgroup_on_subnet: workgroup search for WORKGROUP on subnet 192.168.178.100: found.
Jan 25 01:24:59 omvnas nmbd[19559]: [2020/01/25 01:24:59.040469, 10, pid=19559, effective(0, 0), real(0, 0)] ../source3/nmbd/nmbd_sendannounce.c:376(announce_myself_to_domain_master_browser)
Jan 25 01:24:59 omvnas nmbd[19559]: announce_myself_to_domain_master_browser: no unicast subnet, ignoring.
I accidentally created an aquota.group and aquota.user file in /srv/dev-disk-by-label-nasdrive via the UI but there isn't any active quota set.
With debian from WSL I see:
root@Desktop:~# smbclient -L //omvnas -U user1
tdb(/var/run/samba/gencache_notrans.tdb): tdb_open_ex: tdb_new_database failed for /var/run/samba/gencache_notrans.tdb: Operation not permitted
tdb(/var/run/samba/gencache_notrans.tdb): tdb_open_ex: tdb_new_database failed for /var/run/samba/gencache_notrans.tdb: Operation not permitted
tdb(/var/run/samba/gencache_notrans.tdb): tdb_open_ex: tdb_new_database failed for /var/run/samba/gencache_notrans.tdb: Operation not permitted
Enter WORKGROUP\user1's password:
Sharename Type Comment
--------- ---- -------
Sharetest Disk Sharetest
IPC$ IPC IPC Service (omvnas server)
Reconnecting with SMB1 for workgroup listing.
tdb(/var/run/samba/gencache_notrans.tdb): tdb_open_ex: tdb_new_database failed for /var/run/samba/gencache_notrans.tdb: Operation not permitted
tdb(/var/run/samba/gencache_notrans.tdb): tdb_open_ex: tdb_new_database failed for /var/run/samba/gencache_notrans.tdb: Operation not permitted
tdb(/var/run/samba/gencache_notrans.tdb): tdb_open_ex: tdb_new_database failed for /var/run/samba/gencache_notrans.tdb: Operation not permitted
Server Comment
--------- -------
Workgroup Master
--------- -------
WORKGROUP
root@Desktop:~$ smbclient //omvnas/Sharetest -U user1
Unable to initialize messaging context
Enter WORKGROUP\user1's password:
Try "help" to get a list of possible commands.
smb: \> ls
NT_STATUS_ACCESS_DENIED listing \*
smb: \>
Alles anzeigen
gencache_notrans seems to be a known bug in WSL1.
What am I missing here? Could anybody please provide their output of the commands I used above? Like smbclient //omvnas/Sharetest -U user1. What else can I check?