solved: Noob needs samba help

Issues related to applications and software problems
Post Reply
bristr
Posts: 32
Joined: 2014/05/22 19:07:03

solved: Noob needs samba help

Post by bristr » 2015/02/24 19:03:12

Hello all,
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:
\\192.168.1.5\training is not accessible. You might not have permission to use this network resource... etc.
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.
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
Last edited by bristr on 2015/02/24 21:57:42, edited 1 time in total.

lightman47
Posts: 1522
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: Noob needs samba help

Post by lightman47 » 2015/02/24 20:00:26

Wondering if SELINUX needs to be set to allow access ... don't actually know how myself, but if you "setenforce = 0" only for testing this and it works, then that is your issue. Then you can 'setenfoce = 1' and research the fix. Also, is firewall set to allow Samba (smb & nmb)?

(Just thinking)

bristr
Posts: 32
Joined: 2014/05/22 19:07:03

Re: Noob needs samba help

Post by bristr » 2015/02/24 20:29:14

SELinux is completely disabled. There's another share on the same server that's completely open and doesn't have any problems.

*EDIT:
Nevermind, I just had to restart my computer (not the server).
For some reason it was remembering an old setting on the server.
It works now

Post Reply