From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078609810360.tru64-unix-managers.marc@archive.invalid> From: aiv () tornado ! yars ! free ! net (Igor V ! Alekseev) Date: Thu, 13 Mar 1997 14:39:57 +0000 To: tru64-unix-managers Subject: SUMMARY: correct permissions of mail system X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078609810360 Hi, My original question was: >Could anyone please tell me what the correct permissions for various parts >of the mail system should be. For the executables, spool and incoming mail >areas? > The solution: /usr/sbin: -r-sr-sr-x 4 root bin sendmail -r-sr-sr-x 4 root bin newaliases -r-sr-sr-x 4 root bin mailq -r-sr-sr-x 4 root bin smtpd /usr/spool: drwxrwxrwt 2 root mail mail drwxr-xr-x 2 root system mqueue /usr/spool/mail: -rw------- 1 user1 mail user1 -rw------- 1 user2 mail user2 -rw------- 1 user3 mail user3 /usr/adm/sendmail (=/var/adm/sendmail): -rw-r--r-- 1 root system aliases -rw-r--r-- 1 root system aliases.db -rw-r--r-- 1 root system aliases.dir -rw-r--r-- 1 root system aliases.pag -r--r--r-- 1 root bin sendmail.cf -rw-r--r-- 1 root system sendmail.m4 -rw-r--r-- 1 root bin sendmail.st Besides for mail system as standard system software subset (as well as for other subsets) there's a file /usr/.smdb./SUBSET.inv which is as its name implies an inventory where ownership and access restrictions may be found. Many thanks to the following people for providing solutions: Alan Rollow alan@nabeth.cxo.dec.com Gernot Salzer salzer@logic.tuwien.ac.at Marie-Claude Vialatte mc.vialatte@custsv.univ-bpclermont.fr Copies of received suggestions: >From Alan Rollow: > For each file of interest, look in the inventory files for that > file's entry. The permission and ownership are included in > the entry. If you can't figure out which field is which, the > guide describing how to build software kits will have it. It > is in the book which also describes other supporting software > development things, but I don't remember the book title. > > The inventory files are in /usr/.smdb./*.inv. >From Marie-Claude Vialatte: > for DU-3.2c > > -rwsr-xr-x 4 root bin 212992 Jul 25 1995 /usr/sbin/sendmail > drwxrwxrwt 2 root mail 9728 Mar 12 17:51 /var/spool/mail/ > -rw------- 1 mcv mail 2879 Mar 12 17:49 /var/spool/mail/mcv > > _______________________________________________________________________ > Marie-Claude Vialatte | Telephone : +33 4 73 40 77 08 > C.U.S.T. - Clermont-Ferrand | Fax : +33 4 73 40 75 10 > 63177 AUBIERE Cedex | Email : mc.vialatte@custsv.univ-bpclermont.fr > FRANCE | WWW : http://custsv.univ-bpclermont.fr >From Gernot Salzer: > These are the permissions on my system (DU 4.0, sendmail 8.8.3): > > /usr/sbin: > -r-sr-sr-x 4 root bin sendmail > -r-sr-sr-x 4 root bin newaliases > -r-sr-sr-x 4 root bin mailq > -r-sr-sr-x 4 root bin smtpd > The four programs above are one and the same binary, hard-linked to each > other. > > /usr/spool: > drwxrwxrwt 2 root mail mail > drwxr-xr-x 2 root system mqueue > > /usr/spool/mail: > -rw------- 1 user1 mail user1 > -rw------- 1 user2 mail user2 > -rw------- 1 user3 mail user3 > > /usr/adm/sendmail (=/var/adm/sendmail): > -rw-r--r-- 1 root system aliases > -rw-r--r-- 1 root system aliases.db > -rw-r--r-- 1 root system aliases.dir > -rw-r--r-- 1 root system aliases.pag > -r--r--r-- 1 root bin sendmail.cf > -rw-r--r-- 1 root system sendmail.m4 > -rw-r--r-- 1 root bin sendmail.st > > Gernot