Problem with "force create mode" et. al.

Ryan Waldron rew at erebor.com
Mon May 22 04:28:39 GMT 2000


Hi, folks.  I've got a weird situation here.  I'm sure it's something
small, but, well, either I've been cursed by a witch doctor, or my
eyesight is getting too bad to find small problems.

Either way, I'm more than willing to be pummeled for asking such a
stupid question, as long as it helps me get it solved.

I'm replacing an NT file server with a Samba box (hooray!).  Running
Linux 6.1, freshly-compiled Samba 2.0.7 installation (not an RPM -
built it meself), like I do on several other boxes.

In order to try to maintain the proper permissions, I'm attempting to
use "force create mode" and "force directory mode" to make sure that
files and directories under a particular share get created with group
ownership and group write permission, as well as setgid (this latter
would not be important if I could get these directives to work) so
that other people in the group can write over those files or
directories if need be.

However, for some reason, Samba doesn't seem to recognize those
parameters.  It acts like I just made them up.  What follows are the
snippet defining that share, and the error messages I get from the log
file as well as those from running 'testparm'.  Can anyone tell me
what dumb thing I'm doing wrong here?

>From smb.conf:
---snip--snip---
[Share]
  comment = Company Shares
  path = /share
  public = yes
  writable = yes
  printable = no
  write list = @src @staff
  force create group = staff
  force create mask = 0040
  force directory mask = 2040
---snip--snip---
>From the log file:
---snip--snip---
[2000/05/21 22:28:10, 2] param/loadparm.c:do_section(2481)
  Processing section "[Share]"
[2000/05/21 22:28:10, 0] param/loadparm.c:map_parameter(1681)
  Unknown parameter encountered: "force create group"
[2000/05/21 22:28:10, 0] param/loadparm.c:lp_do_parameter(2223)
  Ignoring unknown parameter "force create group"
[2000/05/21 22:28:10, 0] param/loadparm.c:map_parameter(1681)
  Unknown parameter encountered: "force create mask"
[2000/05/21 22:28:10, 0] param/loadparm.c:lp_do_parameter(2223)
  Ignoring unknown parameter "force create mask"
[2000/05/21 22:28:10, 0] param/loadparm.c:map_parameter(1681)
  Unknown parameter encountered: "force directory mask"
[2000/05/21 22:28:10, 0] param/loadparm.c:lp_do_parameter(2223)
  Ignoring unknown parameter "force directory mask"
---snip--snip---
>From testparm:
---snip--snip---
Processing section "[Share]"
Unknown parameter encountered: "force create group"
Ignoring unknown parameter "force create group"
Unknown parameter encountered: "force create mask"
Ignoring unknown parameter "force create mask"
Unknown parameter encountered: "force directory mask"
Ignoring unknown parameter "force directory mask"
---snip--snip---

Why oh why?

--
Ryan Waldron    |||   http://www.erebor.com    |||    rew at erebor.com

"The web goes ever, ever on, down from the site where it began..."



More information about the samba mailing list