I am trying to set up netbios aliases in Samba on Ubuntu 12.04 LTS (2:3.6.3-2ubuntu2).
My primary share (not on the aliases) work fine. The shares on the aliases can be listed but fail when connecting with the following error:
param/loadparm.c:9114(process_usershare_file) process_usershare_file: stat of /var/lib/samba/usershares/usersx failed. No such file or directory
I get a "permission denied" if I create the above file.
When I connect with
smbclient -U% //serverh/users I get:
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
My samba config
smb.conf and related alias configs
smb-%L.conf have no mention of anything usershare related, and I understand that usershares are disabled when the settings are the default, so why it is the only thing mentioned in the log is a mystery.
Here is sample of one of the (many, many) variants of the config I have tried:
[global] netbios name = ServerC netbios aliases = ServerO ServerH workgroup = CC server string = %h server (Samba, Ubuntu) interfaces = 192.168.0/24 10.10.10.0/24 eth0 log file = /var/log/samba/log.%m max log size = 4000 syslog = 0 map to guest = Bad user create mask = 0775 directory mask = 0775 security = user encrypt passwords = true guest account = nobody usershare allow guests = yes wins support = yes local master = yes preferred master = yes os level = 65 include = /etc/samba/smb-%L.conf [netlogon] comment = Network Logon Service path = /var/lib/samba/netlogon guest ok = yes read only = yes
The non-working config:
[global] workgroup = CC netbios name = ServerH map to guest = Bad User guest ok = Yes create mask = 0775 directory mask = 0775 security = user [users] comment = "Server H Users" path = /var/local/samba/serverh/users nt acl support = No guest ok = yes force group = sambashare
The config for the working alias:
[global] workgroup = CC netbios name = ServerO map to guest = Bad User guest ok = Yes create mask = 0775 directory mask = 0775 security = user [data] comment = "Server C Data" path = /var/local/samba/serverc/data read only = no nt acl support = No guest ok = yes force group = sambashare
I found a number of suggestions on what may be the issue, but none have availed. The
serverh/users directory exists and I have run
chmod 775 -R serverh and
chown nobody:sambashare serverh on it. Same permissions as the Server C. I am not using selinux but I ran
echo 0 > /selinux/enforce. When I put the
users share into the
smb-serverc.conf file I have no problem accessing it.
Samba is acting as if the directory did not exist, but it clearly does (since it works in the
serverc config), and as if usershares were enabled (but they are not mentioned in the config), and in any case the shares cannot be accessed although the config follows what appears to be the simplest case for netbios aliases.
I'm at a loss and any assistance would be most appreciated.