View previous topic :: View next topic |
Author |
Message |
poirchr n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Final Fantasy/Final_Fantasy_7_-_Sephiroth2.jpg)
Joined: 20 Mar 2004 Posts: 18 Location: Canada
|
Posted: Tue Sep 14, 2004 9:22 pm Post subject: samba: windows clients can't read/write to files |
|
|
I am running samba 3.0.6-r4 on my linux box, and I have 4 windows (2000/XP) computers on my network. The windows computers can browse files, create new ones and copy files over to linux; but they cannot read/write the files (even chmod 777 ones), and I have no idea why.
Here are the relevant parts of my smb.conf:
Code: |
[global]
workgroup = MSHOME
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
server string = chris
printcap name = cups
load printers = yes
printing = cups
log file = /var/log/samba/log.%m
max log size = 50
log level = 2
hosts allow = 127.0.0.1 192.168.0.0/24
hosts deny = 0.0.0.0/0
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/private/smbpasswd
vfs object = vscan-clamav
vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
interfaces = lo eth0
bind interfaces only = yes
dns proxy = no
[data]
comment = Chris Data
path = /mnt/data
valid users = chris
public = yes
guest ok = no
browseable = yes
writable = yes
#read only = no
create mode = 0766
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nyteryda Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/108212215440ddd4430735c.jpg)
Joined: 26 Jul 2003 Posts: 337 Location: London
|
Posted: Tue Sep 14, 2004 9:54 pm Post subject: |
|
|
why have you commented out read only = no ? _________________
Code: | #include "forums.h"
int main() {while (bollox) postcount++;}
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
poirchr n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Final Fantasy/Final_Fantasy_7_-_Sephiroth2.jpg)
Joined: 20 Mar 2004 Posts: 18 Location: Canada
|
Posted: Wed Sep 15, 2004 12:58 am Post subject: |
|
|
that was just testing out different parameters. I get the same error whether it is commented or not. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Child of Wonder n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 15 Sep 2004 Posts: 1
|
Posted: Wed Sep 15, 2004 2:43 am Post subject: |
|
|
I'm having this same problem. Still a Linux/Gentoo noob so I'm struggling to figure this out. Help would be greatly appreciated. ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
frantux n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 03 Jun 2004 Posts: 15
|
Posted: Wed Sep 15, 2004 10:06 am Post subject: |
|
|
are you guys sure that the user permissions on the directories you're trying to write to allow the user you login as to write there? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nobspangle Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/210249061640b0c1d626f5b.gif)
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Wed Sep 15, 2004 12:31 pm Post subject: |
|
|
these are opposites
public = yes
guest ok = no |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
poirchr n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Final Fantasy/Final_Fantasy_7_-_Sephiroth2.jpg)
Joined: 20 Mar 2004 Posts: 18 Location: Canada
|
Posted: Wed Sep 15, 2004 2:15 pm Post subject: |
|
|
commenting out one, none or both of these statements still doesn't get rid of the error.
Tried updating to samba 3.0.7, but still no luck.
... and frantux, read the WHOLE post before making your stupid comments:
Quote: |
but they cannot read/write the files (even chmod 777 ones)
|
chmod 777 means full user permissions to read/write |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nobspangle Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/210249061640b0c1d626f5b.gif)
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Wed Sep 15, 2004 2:21 pm Post subject: |
|
|
I would check the upstream permissions. I'm always running into that trap.
For example
I might have a file in a directory and the permissions are rwx for everyone, and the permissions on the directory they are in are also rwx for everyone. However the directory that they lie in is owned by root:root and is only writeable to the owner.
also try turning off your AV |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nyteryda Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/108212215440ddd4430735c.jpg)
Joined: 26 Jul 2003 Posts: 337 Location: London
|
Posted: Thu Sep 16, 2004 12:10 am Post subject: |
|
|
I know it kinda goes against the grain of unix and text file configs, but you could try swat it makes configuring samba really easy... (and if you are worried about running a extra service just stop when you are configured) _________________
Code: | #include "forums.h"
int main() {while (bollox) postcount++;}
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
stackTrace n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 16 Sep 2004 Posts: 3 Location: Racine, WI
|
Posted: Thu Sep 16, 2004 2:46 am Post subject: |
|
|
Here's a snippet from my smb.conf. I just finished setting this server up today and had some permissions problems of my own. Users could drop files in, but after that, they could do nothing with them. I'd check what nobspangle was talking about and check the permissions on everything.
Code: |
[quickbooks]
path = /netfiles/quickbooks
read only = No
inherit permissions = Yes
inherit acls = Yes
valid users = +smbbooks, +smbvip
|
The directory is assigned to nobody:smbbooks and is chmod 770. My problem was that I hadn't done a chmod 770 -R so the files were still using the old permissions. Did that and now they're fully accessible to anyone in the valid groups. Not sure if that's your problem, but it's worth a shot. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|