Re: [Samba] Anyone can create empty files (v 3.5.11)

2011-10-04 Thread Dan Carpenter
Just a follow up incase someone else runs into this problem. It turns out this was a bug in the cifs driver. I submitted a patch to fix this. http://marc.info/?l=linux-cifs&m=131715894203568&w=2 regards, dan carpenter -- To unsubscribe from this list go to the following URL and read the instru

Re: [Samba] Anyone can create empty files (v 3.5.11)

2011-09-26 Thread Dan Carpenter
I've found a solution which is to just chmod o-rwx the dictory so the testuser doesn't have permission to open any files. That way it can't open them with O_CREAT by mistake. I'm still new at Samba but it seems to me like what happens is that: 1) I type "touch asdf" as testuser on the client. 2)

Re: [Samba] Anyone can create empty files (v 3.5.11)

2011-09-25 Thread TAKAHASHI Motonobu
From: Dan Carpenter Date: Sun, 25 Sep 2011 20:29:24 +0300 > On Sat, Sep 24, 2011 at 05:04:50PM +0900, TAKAHASHI Motonobu wrote: > > From: Dan Carpenter > > Date: Fri, 23 Sep 2011 09:38:56 +0300 > > > > > I've mounted my cifs partition with a username and password and to > > > test whether I ha

Re: [Samba] Anyone can create empty files (v 3.5.11)

2011-09-25 Thread Dan Carpenter
On Sat, Sep 24, 2011 at 05:04:50PM +0900, TAKAHASHI Motonobu wrote: > From: Dan Carpenter > Date: Fri, 23 Sep 2011 09:38:56 +0300 > > > I've mounted my cifs partition with a username and password and to > > test whether I had my permissions right, I did: > > > > $ sudo su testuser > > $ touch as

Re: [Samba] Anyone can create empty files (v 3.5.11)

2011-09-24 Thread TAKAHASHI Motonobu
From: Dan Carpenter Date: Fri, 23 Sep 2011 09:38:56 +0300 > I've mounted my cifs partition with a username and password and to > test whether I had my permissions right, I did: > > $ sudo su testuser > $ touch asdf > touch: cannot touch `asdf': Permission denied > $ > > It says permission denie

[Samba] Anyone can create empty files (v 3.5.11)

2011-09-22 Thread Dan Carpenter
I've mounted my cifs partition with a username and password and to test whether I had my permissions right, I did: $ sudo su testuser $ touch asdf touch: cannot touch `asdf': Permission denied $ It says permission denied, but the `asdf' file is still created. I can't write any data to it, but I