Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba directory/file access [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
zarnce
n00b
n00b


Joined: 04 Jan 2005
Posts: 28
Location: Chicago

PostPosted: Fri Oct 27, 2006 3:28 am    Post subject: Samba directory/file access [Solved] Reply with quote

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
View user's profile Send private message
Kosmas
Apprentice
Apprentice


Joined: 14 Sep 2006
Posts: 280
Location: Greece

PostPosted: Fri Oct 27, 2006 7:35 am    Post subject: Reply with quote

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
View user's profile Send private message
zarnce
n00b
n00b


Joined: 04 Jan 2005
Posts: 28
Location: Chicago

PostPosted: Sat Oct 28, 2006 3:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Kosmas
Apprentice
Apprentice


Joined: 14 Sep 2006
Posts: 280
Location: Greece

PostPosted: Mon Oct 30, 2006 8:06 am    Post subject: Reply with quote

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
View user's profile Send private message
zarnce
n00b
n00b


Joined: 04 Jan 2005
Posts: 28
Location: Chicago

PostPosted: Mon Oct 30, 2006 3:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum