aboutsummaryrefslogtreecommitdiff
path: root/etc/mtree/BSD.root.dist
blob: f86ffade41c224ee84bb024cfe4ce4b2290a01bf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#	fs: /
#	by: bostic
#
#	%W% (Berkeley) %G%

# top-level files are owned by root.wheel
# (else too easy to get root by compromising these)

/set owner=root group=wheel mode=0755 type=file

sys	type=link size=11 link=usr/src/sys
a	type=dir
..
b	type=dir
..

dev	type=dir
	fd	type=dir
	..
..

etc	type=dir
	disklabels	type=dir
	..
# what is the following for?
/set nlink=1
	kerberosIV	type=dir
	..
	mtree	type=dir
	..
	namedb	type=dir
	..
	passwd	mode=0644
	master.passwd mode=0600
	spwd.db	mode=0600
	pwd.db	mode=0644
	group	mode=0644
	crontab	mode=0644
	dumpdates	group=operator mode=0664

	# config files, writeable by root
	/set mode=0644 type=file
	daily
	weekly
	monthly
	exports
	fstab
	hosts.equiv
	hosts.lpd
	inetd.conf
	printcap
	rc
	rc.local
	netstart	mode=0755
	remote
	security
	sendmail.cf
	sendmail.cw
	syslog.conf
	ttys

	# prototype files, not normally written by root
	/set mode=0444
	ftpusers
	shells
	gettytab
	named.boot
	hosts
	networks
	protocols
	services
	localtime	owner=bin group=bin
	man.conf	owner=bin group=bin

..

mnt	type=dir
..
root	type=dir
..
stand	type=dir
..
tmp	type=dir owner=bin group=bin mode=01777
..
usr	type=dir
..
var	type=dir
..

# binary directories:
/set owner=bin group=bin mode=0755
bin	type=dir
..
sbin	type=dir
..