Saturday, August 27, 2011

Why did I encounter error message "Access Denied Error Code : 0x8007005" during accessing samba share from windows machine?

Incident : 

  • Received error message "Access Denied  Error Code : 0x8007005" during accessing samba share from windows machine

■ OS Environment : Linux[RHEL, Centos], Windows
■ Application: samba
■ Existing Configuration :

Samba server (smb) has on linux box ie rhel 6.1. It has following configuration :

$ cat /etc/samba/smb.conf

[Global]
workgroup = IMSDOWNLOADS
server string = IMS Downloads
hosts allow = 10.*
log file = /var/log/samba/%m.log
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

[u1]
comment = u1
path = /u1
browseable = yes
writable = yes
public = yes
read only = no

[log]
comment = log
path = /log
browseable = yes
writable = yes
public = yes
read only = no

■ Resolution :

$ chcon -R -t samba_share_t /u1
$ chcon -R -t samba_share_t /log
$ chmod +x /u1
$ chmod +x /log

No comments:

Post a Comment