View previous topic :: View next topic |
Author |
Message |
mFoobar n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Sep 2004 Posts: 3
|
Posted: Mon Sep 20, 2004 8:42 pm Post subject: Samba - Can't open files |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
synfin0 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Sep 2004 Posts: 12
|
Posted: Mon Sep 20, 2004 10:43 pm Post subject: smbpasswd? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
mFoobar n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Sep 2004 Posts: 3
|
Posted: Mon Sep 20, 2004 11:21 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
mFoobar n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Sep 2004 Posts: 3
|
Posted: Tue Sep 21, 2004 5:26 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|