Samba Share - Access Denied

General support questions
Post Reply
MrCrow_
Posts: 4
Joined: 2014/09/28 20:23:48

Samba Share - Access Denied

Post by MrCrow_ » 2017/05/08 16:37:03

I know this message looks long but please keep reading! :D It's only long because I think I've done all my homework.

I've been battling this for a few days and my google skills have been completely exhausted. I'm hoping someone here can help.

COMMANDS ISSUED
useradd matt
passwd matt
smbpasswd -a matt
smbpasswd -e matt
groupadd sheavershare
usermod -a -G sheavershare matt
chmod matt:sheavershare 0770 /bulk/sheaver
chown matt:sheavershare /bulk/sheaver
semanage fcontext -a -t samba_share_t '/bulk/sheaver(/.*)?'
restorecon -R /bulk/sheaver
chcon -t samba_share_t /bulk/sheaver
service smb restart

IN MY SMB.CONF
[sheaver]
comment = Matt's share
path = /bulk/sheaver
valid users = @sheavershare
public = no
writable = yes
browseable = yes
printable = no
write list = @sheavershare

WHAT I GET
Image

WHAT IVE DONE
  • I've turned off the firewall and SELINUX. Same result.
  • I have one working share with the username "brian" so I know samba is working.
  • When i assign "brian" in to the "sheavershare" group, he can connect properly. I just cant get MATT to connect without access denied.
  • When I do the two SMBPASSWD commands (-a and -e) I get the following message returned: (Does this have something to do with it?) Forcing Primary Group to 'Domain Users' for matt
Thanks so much if you can help!
Brian

MrCrow_
Posts: 4
Joined: 2014/09/28 20:23:48

Re: Samba Share - Access Denied

Post by MrCrow_ » 2017/05/16 05:17:44

Any thoughts on this one?

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: Samba Share - Access Denied

Post by tunk » 2017/05/16 13:22:14

I don't know much about samba, but from what you describe, the two users somehow are different.
Have you looked at /etc/passwd and /etc/group to see if everything is ok?

poky
Posts: 108
Joined: 2013/03/27 12:18:03

Re: Samba Share - Access Denied

Post by poky » 2017/05/24 16:25:36

Username MATT or matt or Matt?

Post Reply