home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / etc / mtree / BSD.root.dist next >
Encoding:
Text File  |  1991-05-21  |  1.2 KB  |  96 lines

  1. #    fs: /
  2. #    by: bostic
  3. #
  4. #    %W% (Berkeley) %G%
  5.  
  6. # top-level files are owned by root.wheel
  7. # (else too easy to get root by compromising these)
  8.  
  9. /set owner=root group=wheel mode=0755 type=file
  10.  
  11. sys    type=link size=11 link=usr/src/sys
  12. a    type=dir
  13. ..
  14. b    type=dir
  15. ..
  16.  
  17. dev    type=dir
  18.     fd    type=dir
  19.     ..
  20. ..
  21.  
  22. etc    type=dir
  23.     disklabels    type=dir
  24.     ..
  25. # what is the following for?
  26. /set nlink=1
  27.     kerberosIV    type=dir
  28.     ..
  29.     mtree    type=dir
  30.     ..
  31.     namedb    type=dir
  32.     ..
  33.     passwd    mode=0644
  34.     master.passwd mode=0600
  35.     spwd.db    mode=0600
  36.     pwd.db    mode=0644
  37.     group    mode=0644
  38.     crontab    mode=0644
  39.     dumpdates    group=operator mode=0664
  40.  
  41.     # config files, writeable by root
  42.     /set mode=0644 type=file
  43.     daily
  44.     weekly
  45.     monthly
  46.     exports
  47.     fstab
  48.     hosts.equiv
  49.     hosts.lpd
  50.     inetd.conf
  51.     printcap
  52.     rc
  53.     rc.local
  54.     netstart    mode=0755
  55.     remote
  56.     security
  57.     sendmail.cf
  58.     sendmail.cw
  59.     syslog.conf
  60.     ttys
  61.  
  62.     # prototype files, not normally written by root
  63.     /set mode=0444
  64.     ftpusers
  65.     shells
  66.     gettytab
  67.     named.boot
  68.     hosts
  69.     networks
  70.     protocols
  71.     services
  72.     localtime    owner=bin group=bin
  73.     man.conf    owner=bin group=bin
  74.  
  75. ..
  76.  
  77. mnt    type=dir
  78. ..
  79. root    type=dir
  80. ..
  81. stand    type=dir
  82. ..
  83. tmp    type=dir owner=bin group=bin mode=01777
  84. ..
  85. usr    type=dir
  86. ..
  87. var    type=dir
  88. ..
  89.  
  90. # binary directories:
  91. /set owner=bin group=bin mode=0755
  92. bin    type=dir
  93. ..
  94. sbin    type=dir
  95. ..
  96.