View previous topic :: View next topic |
Author |
Message |
zarnce n00b
Joined: 04 Jan 2005 Posts: 28 Location: Chicago
|
Posted: Fri Oct 27, 2006 3:28 am Post subject: Samba directory/file access [Solved] |
|
|
I have attempted to setup samba on a home network (Gentoo <-> windows XP). I am using user access. I can see the files in the directory for the logged in user (have tried with different users). The problem is when I try and access the files I get 'access denied'. I can copy files from my desktop to the server and delete files from the server. I am unable to open file or copy them from the samba server. Any help would be greatly appreciated.
Zarnce
smb.conf
Code: |
[global]
workgroup = ZARNCE
netbios name = fileserver
server string = Samba Server %v
# We are going to use cups, so we are going to put it in here ;-)
printcap name = cups
printing = cups
load printers = yes
# We want a log file and we do not want it to get bigger than 50kb.
log file = /var/log/samba/log.%m
max log size = 50
# We are going to set some options for our interfaces...
socket options = TCP_NODELAY IPTOS_LOWDELAY
interfaces = lo eth0
bind interfaces only = yes
hosts deny = ALL
hosts allow = 127.0.0.1 192.168.0. 192.168.2.
security = USER
encrypt passwords = yes
# For Samba 3.x. This enables ClamAV on access scanning.
vfs object = vscan-clamav
vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
# Now we setup our print drivers information!
[print$]
comment = Printer Drivers
path = /etc/samba/printer # this path holds the driver structure
guest ok = yes
browseable = no
read only = yes
write list = root
[printers]
comment = All Printers
browseable = no
printable = yes
writable = no
public = yes
guest ok = yes
path = /var/spool/samba
printer admin = root
[public]
comment = Public Files
browseable = yes
public = yes
create mode = 0766
guest ok = yes
read only = no
force group = users
path = /home/samba/public
[homes]
comment = Home Directory for %S
browseable = no
writable = yes
create mask = 0700
directory mask = 0700
valid users = %S
invalid users = root
|
Last edited by zarnce on Mon Oct 30, 2006 3:47 pm; edited 1 time in total |
|
Back to top |
|
|
Kosmas Apprentice
Joined: 14 Sep 2006 Posts: 280 Location: Greece
|
Posted: Fri Oct 27, 2006 7:35 am Post subject: |
|
|
The problem resides at the files/directories permissions.
Check what permissions the files have in the linux box and you will see that the user from samba is not able to read or write those files.
I assume that the clam module works correctly as you can write and read files. |
|
Back to top |
|
|
zarnce n00b
Joined: 04 Jan 2005 Posts: 28 Location: Chicago
|
Posted: Sat Oct 28, 2006 3:27 pm Post subject: |
|
|
I guess I don't understand. When a user opens a samba share shouldn't they have the permissions as if they logged in their shell account? |
|
Back to top |
|
|
Kosmas Apprentice
Joined: 14 Sep 2006 Posts: 280 Location: Greece
|
Posted: Mon Oct 30, 2006 8:06 am Post subject: |
|
|
One suggestion is to check the log files and try to find what is wrong at the file access. One possible reason is that the antivirus software is not working correctly.
Check the logs for errors and post again. |
|
Back to top |
|
|
zarnce n00b
Joined: 04 Jan 2005 Posts: 28 Location: Chicago
|
Posted: Mon Oct 30, 2006 3:47 pm Post subject: |
|
|
Thanks for the help. I figured it out on Sunday. It was the antivirus was not working. For clamav the default does not point to the correct sock. |
|
Back to top |
|
|
|