Permissions on private directory.

Andrew Bartlett abartlet at pcug.org.au
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 pcug.org.au
-------------- next part --------------
Index: source/Makefile.in
===================================================================
RCS file: /cvsroot/samba/source/Makefile.in,v
retrieving revision 1.227.2.33
diff -u -d -r1.227.2.33 Makefile.in
--- source/Makefile.in	2001/03/23 20:43:59	1.227.2.33
+++ source/Makefile.in	2001/04/09 10:33:55
@@ -606,7 +607,8 @@
 
 installdirs:
 	$(SHELL) $(srcdir)/install-sh -d -m $(INSTALLPERMS) \
-	$(BASEDIR) $(SBINDIR) $(BINDIR) $(LIBDIR) $(VARDIR) $(CODEPAGEDIR)
+	$(BASEDIR) $(SBINDIR) $(BINDIR) $(LIBDIR) $(VARDIR)
+	$(SHELL) $(srcdir)/install-sh -d -m 700 $(PRIVATEDIR)
 
 installservers: all installdirs
 	@$(SHELL) $(srcdir)/script/installbin.sh $(INSTALLPERMS) $(BASEDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(SPROGS)


More information about the samba-technical mailing list