Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
samba: windows clients can't read/write to 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
poirchr
n00b
n00b


Joined: 20 Mar 2004
Posts: 18
Location: Canada

PostPosted: Tue Sep 14, 2004 9:22 pm    Post subject: samba: windows clients can't read/write to files Reply with quote

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


Joined: 26 Jul 2003
Posts: 337
Location: London

PostPosted: Tue Sep 14, 2004 9:54 pm    Post subject: Reply with quote

why have you commented out read only = no ?
_________________
Code:
#include "forums.h"
     int main() {while (bollox) postcount++;}
Back to top
View user's profile Send private message
poirchr
n00b
n00b


Joined: 20 Mar 2004
Posts: 18
Location: Canada

PostPosted: Wed Sep 15, 2004 12:58 am    Post subject: Reply with quote

that was just testing out different parameters. I get the same error whether it is commented or not.
Back to top
View user's profile Send private message
Child of Wonder
n00b
n00b


Joined: 15 Sep 2004
Posts: 1

PostPosted: Wed Sep 15, 2004 2:43 am    Post subject: Reply with quote

I'm having this same problem. Still a Linux/Gentoo noob so I'm struggling to figure this out. Help would be greatly appreciated. :)
Back to top
View user's profile Send private message
frantux
n00b
n00b


Joined: 03 Jun 2004
Posts: 15

PostPosted: Wed Sep 15, 2004 10:06 am    Post subject: Reply with quote

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


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Wed Sep 15, 2004 12:31 pm    Post subject: Reply with quote

these are opposites
public = yes
guest ok = no
Back to top
View user's profile Send private message
poirchr
n00b
n00b


Joined: 20 Mar 2004
Posts: 18
Location: Canada

PostPosted: Wed Sep 15, 2004 2:15 pm    Post subject: Reply with quote

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


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Wed Sep 15, 2004 2:21 pm    Post subject: Reply with quote

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


Joined: 26 Jul 2003
Posts: 337
Location: London

PostPosted: Thu Sep 16, 2004 12:10 am    Post subject: Reply with quote

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


Joined: 16 Sep 2004
Posts: 3
Location: Racine, WI

PostPosted: Thu Sep 16, 2004 2:46 am    Post subject: Reply with quote

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
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