Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba - Can't open files
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
mFoobar
n00b
n00b


Joined: 20 Sep 2004
Posts: 3

PostPosted: Mon Sep 20, 2004 8:42 pm    Post subject: Samba - Can't open files Reply with quote

I today set up Samba on my firs linux box because I want to copy most of my data stored on it to my other linux box, and also want to share my files on LANs...
I got it working, I even can browse the shared directory and create new files, etc...I just can't open the files on Windows XP/Linux client...It always gives me 'Permission Denied'.

I mount it via:
mount -t smbfs -o username=SAMBA,password=MYPW //Tux/public /mnt/samba

My /etc/samba/smb.conf:

[global]
workgroup = ARBEITSGRUPPE
browseable = yes
server string = Mra Tux Samba Server %v
log file = /var/log/samba/log.%m
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = lo eth0 eth1
bind interfaces only = yes
hosts allow = 127.0.0.1 192.168.0.0/24 192.168.123.0/24
hosts deny = 0.0.0.0/0
security = share
guest account = samba
guest ok = yes
vfs object = vscan-clamav
vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
[public]
comment = incoming
browseable = yes
public = yes
create mode = 0766
guest ok = yes
writable = yes
read only = no
path = /home/samba/public

Would be great if somebody could help me with this, I really need to get this done...

mFoobar
Back to top
View user's profile Send private message
synfin0
n00b
n00b


Joined: 20 Sep 2004
Posts: 12

PostPosted: Mon Sep 20, 2004 10:43 pm    Post subject: smbpasswd? Reply with quote

You might try
Code:
 smbpasswd -a USERNAME
then enter a passwd. The username should exist on the local system and have adequate permissions on the share in question. Then use the user/pass that you just added/created to mount the share.
Back to top
View user's profile Send private message
mFoobar
n00b
n00b


Joined: 20 Sep 2004
Posts: 3

PostPosted: Mon Sep 20, 2004 11:21 pm    Post subject: Reply with quote

Did smbpasswd before (just retried it), I also did a chown for samba on /home/samba and /home/samba/, permissions also seem to be set up right (at least i think so)...
Back to top
View user's profile Send private message
mFoobar
n00b
n00b


Joined: 20 Sep 2004
Posts: 3

PostPosted: Tue Sep 21, 2004 5:26 pm    Post subject: Reply with quote

Bump ... Just checked permissions...when su-ing to samba user I'm able to open those files, but I still can only List Directories/Write new files via my other pc over samba, but not read them...
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