[Samba] Stopping new directory creation ?

Matt Perkins mperkins at lbmc.com
Wed Mar 24 16:28:14 GMT 2004

These commands should give you the results you are looking for. The
first command sets a domain group on your toplevel folder (probably
Domain Admins) that will be allowed to create folders. The second
command disallows folder creation by everyone else. The folders under
<topleveldir> should be set to 777. You will need to remove force group
from your share definition.

chgrp "DOMAIN\Change Group"  <topleveldir>
chmod 775 <topleveldir> 

-----Original Message-----
From: samba-bounces+mperkins=lbmc.com at lists.samba.org
[mailto:samba-bounces+mperkins=lbmc.com at lists.samba.org] On Behalf Of
Mike Stewart
Sent: Wednesday, March 24, 2004 10:01 AM
To: Samba
Subject: [Samba] Stopping new directory creation ?

Hi, I've been looking for a way to stop users creating new
sub-directories under a top level (shared) directory - which will need
to contain 3 readymade directories and/or to stop users placing files
outside the 3 readymade directories.

Is this at all possible ?

Got a really basic system - Slackware 8.0 and Samba 2.2.8a running
purely as a fileserver for Win2k clients.



smb.conf is >

 workgroup = Server
netbios name = OurGroup
 netbios aliases = Test_Server
 server string = Samba Server
 encrypt passwords = Yes
 ssl CA certDir = /etc/ssl/certs
 log file = /var/log/samba.%m
 max log size = 50
 load printers = No
 disable spoolss = Yes
 show add printer wizard = No
 dns proxy = No
 wins server =
 hosts allow = 172.16.15. 172.16.50. 172.16.63. 172.16.86. 172.16.158.
172.16.171. 172.16.172. 127.  veto files = /*.mp3/

 comment = Admin Files on *Central Server"
 path = /home/csshared
 write list = @csadmin
 force group = +csadmin
 read only = No
 inherit permissions = Yes

Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.622 / Virus Database: 400 - Release Date: 13/03/2004
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

More information about the samba mailing list