I need to create a private share on a CentOS server. My method worked perfectly on my old Fedora server but this one keeps throwing an error.
After I enter a username and password (whether correct or not) it says:
I created a user and group both called training. I converted them to a samba user and group respectively. The folder on the server itself has full 777 permissions. I have Samba 4 installed.\\192.168.1.5\training is not accessible. You might not have permission to use this network resource... etc.
My samba file:
# Global parameters
[global]
follow symlinks = yes
log file = /var/log/samba/%m.log
map to guest = bad user
name resolve order = hosts,lmhosts,bcast
ldap ssl = no
idmap gid = 16777216-33554431
smb ports = 139
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
null passwords = yes
domain master = yes
usershare allow guests = yes
winbind trusted domains only = yes
encrypt passwords = yes
winbind use default domain = yes
wins support = true
dns proxy = No
netbios name = Vulcan
cups options = raw
netbios aliases = Vulcan
server string = server
idmap uid = 16777216-33554431
logon script = %U.bat
workgroup = WORKGROUP
os level = 20
add user script = /usr/sbin/useradd -m %u
printcap name = /etc/printcap
security = share
add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody %u
max log size = 50
delete user script = /usr/sbin/userdel -r %u
; guest account = nobody
; guest ok = yes
; domain logons = no
; local master = yes
[training]
path = /storage/shares/training
comment = Div5
valid users = training
user = training
write list = training
browseable = Yes