[Samba] Stopping new directory creation ?

Mike Stewart mike at powys-training.co.uk
Thu Mar 25 09:00:20 GMT 2004


Thanks Matt.  It would seem that if I set the Linux group permissions on the
top-level directory to RX it has the desired effect.  I'll run it for a
while to make sure and if it fails I'll try your method - I'm fairly new to
Samba and don't understand "Domains"... as far as I can see I'm not using
one !?  Am I missing something ?

TVM

Mike


----- Original Message ----- 
From: "Matt Perkins" <mperkins at lbmc.com>
To: "Mike Stewart" <mike at powys-training.co.uk>; "Samba"
<samba at lists.samba.org>
Sent: Wednesday, March 24, 2004 4:28 PM
Subject: RE: [Samba] Stopping new directory creation ?


Mike,
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.

Thanks

Mike

smb.conf is >

[global]
 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 = 172.16.1.50
 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/

[CS_Shared]
 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
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba





---
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: 14/03/2004




More information about the samba mailing list