PDA

View Full Version : FC6 Samba write Access denied from windows


ddan
2006-11-28, 01:27 AM CST
Greetings,

I used the Gnone Server Samba screen to setup Samba. I tried to use my home directory but was unable to login. So I created a new directory /samba and can now login. I can create files on Linux and read them in Windows. However I can not modify files from Windows on Linux. Windows gives me an "Access is denied" error.

Here is my smb.conf file.
[global]
workgroup = monico
server string = Samba Server
log file = /var/log/samba/%m.log
max log size = 50
domain master = Yes
dns proxy = No
cups options = raw
username map = /etc/samba/smbusers
; security = user
; encrypt passwords = yes
; guest ok = no
; guest account = nobody

[homes]
comment = Home Directories
writeable = yes
browseable = No

[printers]
comment = All Printers
path = /usr/spool/samba
printable = Yes
browseable = No

[dan]
path = /samba
writeable = yes
browseable = yes
comment = Samba Share
guest ok = yes
[dan@T3304 samba]$

Here is my smbusers file:
[dan@T3304 samba]$ cat smbusers
# Unix_name = SMB_name1 SMB_name2 ...
root = administrator admin
nobody = guest pcguest smbguest

Here are the file permissions on the Linux side:
[dan@T3304 samba]$ ll /samba
total 28
-rwxrwxrwx 1 dan users 0 Nov 27 23:48 New Text Document (2).txt
-rwxrwxrwx 1 dan users 75 Nov 27 22:42 New Text Document.txt
-rwxrwxrwx 1 dan users 0 Nov 27 22:40 New Text Document.txt~
-rwxrwxrwx 1 dan users 70 Nov 27 22:36 test.file.txt
-rwxrwxrwx 1 dan users 0 Nov 27 22:44 TMP5.tmp
[dan@T3304 samba]$

Any Suggestions?

Regards,
Dan

jim
2006-11-28, 02:43 AM CST
Do we have SELinux enabled?

System Administration Security Level & Firewall

on the firewall tab is Samba a "trusted" service?
on the SELinux tab Expand Samba anything checked there?

ddan
2006-11-28, 03:00 AM CST
Hi Jim,
Samba is checked in the Firewall.

In SELinux I have the following checked.
Disable SELinux protection for nmdb deamon
Disable SELinux protection for smbd daemon
Disable SELinux protection for winbind daemon

I wasn't sure how to restart SELinux. I restarted iptables and mcstrans

Regards,
Dan

jim
2006-11-28, 03:06 AM CST
were they checked before or did you check them now if the latter reboot and try again.

Paul_Vandenberg
2006-11-28, 03:25 AM CST
Check to make sure that the Linux permissions are opened up so that the Windows user can write. It is not enough to specify to Samba to allow write access, you need to specify the Linux permissions too. Just a thought.

Paul

ddan
2006-11-28, 03:37 AM CST
Hi Jim,

The Firewall was already checked. I checked the SELinux buttons at your suggestion and restarted iptables and mcstrans. I guess I didn't restart the right service, because after I rebooted everything is working.

Many thanks Jim.

Regards,
Dan