Permissions on private directory.

Andrew Bartlett abartlet at
Mon Apr 9 11:51:23 GMT 2001

I was doing some work attempting to fixup the RPM spec files, and I was
wondering what the correct permissions for privatedir are?  (ie
/etc/samba/private for an rpm install).

The below patch sets them to 700 in the main Makefile, and this is what
they are set to in the spec file.  Is this correct?  The reason I ask is
that 'MACHINE.SID' is created in this directory with world readable
permissions.  Do I break things making the dir mode 700?

Andrew Bartlett
Andrew Bartlett
abartlet at
-------------- next part --------------
Index: source/
RCS file: /cvsroot/samba/source/,v
retrieving revision
diff -u -d -r1.227.2.33
--- source/	2001/03/23 20:43:59
+++ source/	2001/04/09 10:33:55
@@ -606,7 +607,8 @@
 	$(SHELL) $(srcdir)/install-sh -d -m $(INSTALLPERMS) \
+	$(SHELL) $(srcdir)/install-sh -d -m 700 $(PRIVATEDIR)
 installservers: all installdirs

More information about the samba-technical mailing list