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-cifsm=131715894203568w=2 regards, dan carpenter -- To unsubscribe from this list go to the following URL and read the

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 Dan Carpenter
On Sat, Sep 24, 2011 at 05:04:50PM +0900, TAKAHASHI Motonobu wrote: From: Dan Carpenter dan.carpen...@oracle.com 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

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

2011-09-25 Thread TAKAHASHI Motonobu
From: Dan Carpenter dan.carpen...@oracle.com 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 dan.carpen...@oracle.com Date: Fri, 23 Sep 2011 09:38:56 +0300 I've mounted my cifs partition with a username and

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

2011-09-24 Thread TAKAHASHI Motonobu
From: Dan Carpenter dan.carpen...@oracle.com 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

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

2011-09-23 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