change path to gnome-pty-helper (bnc#690202)
[opensuse:permissions.git] / permissions.paranoid
1 # /etc/permissions.paranoid
2 #
3 # Copyright (c) 2001 SuSE GmbH Nuernberg, Germany.  All rights reserved.
4 #
5 # Author: Roman Drahtmueller <draht@suse.de>, 2001
6 #
7
8 # See /etc/permissions for general hints on how to use this file.
9 #
10 # /etc/permissions.paranoid is NOT designed to be used in a single-user as
11 # well as a multi-user installation, be it networked or not.
12 # Derived from /etc/permissions.secure, it has _all_ sgid and suid bits
13 # cleared - therefore, the system might be useable for non-privileged users
14 # except for simple tasks like changing passwords and such. In addition, 
15 # some of the configuration files are not readable for world any more.
16 #
17 # Feel free to use this file as a basis of a system configuration that meets
18 # your understanding of "secure", for the case that you're a bit paranoid.
19 # Since there is no such thing as "it works" with this configuration, please
20 # use these settings with care. Some experience on behalf of the administrator
21 # is needed to have a system running flawlessly when users are present.
22 # In particular, all terminal emulators will not be able to write to utmp
23 # and wtmp any more, which renders who(1) and finger(1) useless.
24 #
25 # Please always keep in mind that your system listens on network sockets
26 # in the default configuration. Change this by disabling the services that 
27 # you do not need or by restricting access to them using packet filters
28 # or tcp wrappers (see hosts_access(5)) to gain a higher level of security
29 # in your system.
30
31 #
32 # Directories
33 #
34 # no lock files for emacs:
35 /var/lib/xemacs/lock/                                   root:trusted      1775
36 # for screen's session sockets:
37 /var/run/uscreens/                                      root:trusted      1775
38
39
40 #
41 # /etc
42 #
43 /etc/crontab                                            root:root          600
44 /etc/exports                                            root:root          600
45 /etc/fstab                                              root:root          600
46 /etc/ftpaccess                                          root:root          600
47 /etc/ftpusers                                           root:root          600
48 /etc/rmtab                                              root:root          600
49 /var/lib/nfs/rmtab                                      root:root          600
50 /etc/syslog.conf                                        root:root          600
51
52 #
53 # suid system programs that need the suid bit to work:
54 #
55 /bin/su                                                 root:root         0755
56 # disable at and cron for non-root users
57 /usr/bin/at                                             root:trusted      0755
58 /usr/bin/crontab                                        root:trusted      0755
59 /usr/bin/gpasswd                                        root:shadow       0755
60 /usr/bin/newgrp                                         root:root         0755
61 /usr/bin/passwd                                         root:shadow       0755
62 /usr/bin/chfn                                           root:shadow       0755
63 /usr/bin/chage                                          root:shadow       0755
64 /usr/bin/chsh                                           root:shadow       0755
65 /usr/bin/expiry                                         root:shadow       0755
66 # the default configuration of the sudo package in SuSE distribution is to
67 # intimidate users.
68 /usr/bin/sudo                                           root:root         0755
69 /usr/sbin/su-wrapper                                    root:root         0755
70 # opie password system
71 # #66303
72 /usr/bin/opiepasswd                                     root:root         0755
73 /usr/bin/opiesu                                         root:root         0755
74 # "user" entries in /etc/fstab make mount work for non-root users:
75 /usr/bin/ncpmount                                       root:trusted      0755
76 /usr/bin/ncpumount                                      root:trusted      0755
77 # #331020
78 /sbin/mount.nfs                                         root:root         0755
79 # mount/umount have had their problems already:
80 /bin/mount                                              root:root         0755
81 /bin/umount                                             root:root         0755
82 /bin/eject                                              root:audio        0755
83 #
84 # #133657
85 /usr/bin/fusermount                                     root:trusted      0755
86 # #66203
87 /usr/lib/majordomo/wrapper                              root:daemon       0755
88 # glibc backwards compatibility
89 /usr/lib/pt_chown                                       root:root         0755
90 /usr/lib64/pt_chown                                     root:root         0755
91 # needs setuid root when using shadow via NIS:
92 # #216816
93 /sbin/unix_chkpwd                                       root:shadow       0755
94 /sbin/unix2_chkpwd                                      root:shadow       0755
95 # qpopper
96 /usr/sbin/popauth                                       pop:trusted       0755
97 # from the squid package
98 /usr/sbin/pam_auth                                      root:shadow       0755
99
100 # still to be converted to utempter
101 /usr/lib/gnome-pty-helper                               root:utmp         0755
102
103 #
104 # mixed section: most of it is disabled in this permissions.secure:
105 #
106 #########################################################################
107 # rpm subsystem:
108 /usr/src/packages/SOURCES/                              root:root          700
109 /usr/src/packages/BUILD/                                root:root          700
110 /usr/src/packages/BUILDROOT/                            root:root          700
111 /usr/src/packages/RPMS/                                 root:root          700
112 /usr/src/packages/RPMS/alpha/                           root:root          700
113 /usr/src/packages/RPMS/alphaev56/                       root:root          700
114 /usr/src/packages/RPMS/alphaev67/                       root:root          700
115 /usr/src/packages/RPMS/alphaev6/                        root:root          700
116 /usr/src/packages/RPMS/arm4l/                           root:root          700
117 /usr/src/packages/RPMS/athlon/                          root:root          700
118 /usr/src/packages/RPMS/i386/                            root:root          700
119 /usr/src/packages/RPMS/i486/                            root:root          700
120 /usr/src/packages/RPMS/i586/                            root:root          700
121 /usr/src/packages/RPMS/i686/                            root:root          700
122 /usr/src/packages/RPMS/ia64/                            root:root          700
123 /usr/src/packages/RPMS/mips/                            root:root          700
124 /usr/src/packages/RPMS/ppc/                             root:root          700
125 /usr/src/packages/RPMS/ppc64/                           root:root          700
126 /usr/src/packages/RPMS/powerpc/                         root:root          700
127 /usr/src/packages/RPMS/powerpc64/                       root:root          700
128 /usr/src/packages/RPMS/s390/                            root:root          700
129 /usr/src/packages/RPMS/s390x/                           root:root          700
130 /usr/src/packages/RPMS/sparc/                           root:root          700
131 /usr/src/packages/RPMS/sparcv9/                         root:root          700
132 /usr/src/packages/RPMS/sparc64/                         root:root          700
133 /usr/src/packages/RPMS/x86_64/                          root:root          700
134 /usr/src/packages/RPMS/armv4l/                          root:root          700
135 /usr/src/packages/RPMS/armv5tel/                        root:root          700
136 /usr/src/packages/RPMS/armv5tevl/                       root:root          700
137 /usr/src/packages/RPMS/armv5tejl/                       root:root          700
138 /usr/src/packages/RPMS/armv5tejvl/                      root:root          700
139 /usr/src/packages/RPMS/armv6l/                          root:root          700
140 /usr/src/packages/RPMS/armv6vl/                         root:root          700
141 /usr/src/packages/RPMS/armv7l/                          root:root          700
142 /usr/src/packages/RPMS/hppa/                            root:root          700
143 /usr/src/packages/RPMS/hppa2.0/                         root:root          700
144 /usr/src/packages/RPMS/noarch/                          root:root          700
145 /usr/src/packages/SPECS/                                root:root          700
146 /usr/src/packages/SRPMS/                                root:root          700
147 #########################################################################
148 # video
149 /usr/bin/v4l-conf                                       root:video        0755
150 # Itanium ia32 emulator
151 /usr/lib/ia32el/suid_ia32x_loader                       root:root         0755
152 #########################################################################
153 # scotty:
154 # #66211
155 /usr/bin/ntping                                         root:trusted      0755
156
157 # turned off write and wall by disabling sgid tty:
158 /usr/bin/wall                                           root:tty          0755
159 /usr/bin/write                                          root:tty          0755
160 # thttpd
161 /usr/bin/makeweb                                        root:www          0750
162 # yaps, pager software, accesses /dev/ttyS? . Disabled sgid uucp.
163 /usr/bin/yaps                                           root:uucp         0755
164 # ncpfs tool: trusted only
165 /usr/bin/nwsfind                                        root:trusted      0750
166 /usr/bin/ncplogin                                       root:trusted      0750
167 /usr/bin/ncpmap                                         root:trusted      0750
168 # lpdfilter:
169 # checks itself that only lp and root can call it
170 /usr/lib/lpdfilter/bin/runlpr                           root:root         0755
171 # pcmcia:
172 # Needs setuid to eject cards (#100120)
173 /sbin/pccardctl                                         root:trusted      0755
174 # gnokii nokia cellphone software
175 # #66209
176 /usr/sbin/mgnokiidev                                    root:uucp          755
177 # pcp, performance co-pilot
178 # setuid root is used to write /var/log/pcp/NOTICES
179 # #66205
180 /usr/lib/pcp/pmpost                                     root:trusted      0755
181 # mailman mailing list software
182 # #66315
183 /usr/lib/mailman/cgi-bin/admin                          root:mailman      0755
184 /usr/lib/mailman/cgi-bin/admindb                        root:mailman      0755
185 /usr/lib/mailman/cgi-bin/edithtml                       root:mailman      0755
186 /usr/lib/mailman/cgi-bin/listinfo                       root:mailman      0755
187 /usr/lib/mailman/cgi-bin/options                        root:mailman      0755
188 /usr/lib/mailman/cgi-bin/private                        root:mailman      0755
189 /usr/lib/mailman/cgi-bin/roster                         root:mailman      0755
190 /usr/lib/mailman/cgi-bin/subscribe                      root:mailman      0755
191 /usr/lib/mailman/cgi-bin/confirm                        root:mailman      0755
192 /usr/lib/mailman/cgi-bin/create                         root:mailman      0755
193 /usr/lib/mailman/cgi-bin/editarch                       root:mailman      0755
194 /usr/lib/mailman/cgi-bin/rmlist                         root:mailman      0755
195 /usr/lib/mailman/mail/mailman                           root:mailman      0755
196
197 # libgnomesu (#75823, #175616)
198 /usr/lib/libgnomesu/gnomesu-pam-backend                 root:root         0755
199
200 # control-center2 (#104993)
201 /usr/sbin/change-passwd                                 root:root         0755
202
203 #
204 # smb printing with kerberos authentication (#177114)
205 #
206 /usr/bin/get_printing_ticket                            root:lp           0755
207
208 #
209 # networking (need root for the privileged socket)
210 #
211 /bin/ping                                               root:root         0755
212 /bin/ping6                                              root:root         0755
213 # mtr is linked against ncurses.
214 /usr/sbin/mtr                                           root:dialout      0755
215 /usr/bin/rcp                                            root:root         0755
216 /usr/bin/rlogin                                         root:root         0755
217 /usr/bin/rsh                                            root:root         0755
218
219 # heartbeat #66310
220 # cl_status needs to be allowed to connect to the heartbeat API. If the setgid
221 # bit is removed, one can manually add users to the haclient group instead.
222 /usr/bin/cl_status                                      root:haclient     0555
223
224 # exim
225 /usr/sbin/exim                                          root:root         0755
226
227 #
228 # dialup networking programs
229 #
230 /usr/sbin/pppoe-wrapper                                 root:dialout      0750
231 # i4l package (#100750):
232 /sbin/isdnctrl                                          root:dialout      0750
233 # #66111
234 /usr/bin/vboxbeep                                       root:trusted      0755
235
236
237 #
238 # linux text console utilities
239 #
240 # setuid needed on the text console to set the terminal content on ctrl-o
241 # #66112
242 /usr/lib/mc/cons.saver                                  root:root         0755
243
244
245 #
246 # terminal emulators
247 # This and future SuSE products have support for the utempter, a small helper
248 # program that does the utmp/wtmp update work with the necessary rights.
249 # The use of utempter obsoletes the need for sgid bits on terminal emulator
250 # binaries. We mention screen here, but all other terminal emulators have
251 # moved to /etc/permissions, with modes set to 0755.
252
253 # framebuffer terminal emulator (japanese).
254 /usr/bin/jfbterm                                        root:tty          0755
255
256 #
257 # kde
258 #
259 # arts wrapper, normally suid root:
260 /opt/kde3/bin/artswrapper                               root:root         0755
261 # needs setuid root when using shadow via NIS:
262 # #66218
263 /opt/kde3/bin/kcheckpass                                root:shadow       0755
264 /usr/lib/kde4/libexec/kcheckpass                        root:shadow       0755
265 /usr/lib64/kde4/libexec/kcheckpass                      root:shadow       0755
266 # This has a meaning... hmm...
267 /opt/kde3/bin/kdesud                                    root:nogroup      0755
268 /usr/lib/kde4/libexec/kdesud                            root:nogroup      0755
269 /usr/lib64/kde4/libexec/kdesud                          root:nogroup      0755
270 # used for getting proxy settings from dhcp
271 /opt/kde3/bin/kpac_dhcp_helper                          root:root         0755
272 # used to distract the oom killer
273 # #203535
274 /opt/kde3/bin/start_kdeinit                             root:root         0755
275 # bnc#523833
276 /usr/lib/kde4/libexec/start_kdeinit                     root:root         0755
277 /usr/lib64/kde4/libexec/start_kdeinit                   root:root         0755
278 # edits /etc/smb.conf
279 # #66312
280 /usr/bin/fileshareset                                   root:root         0755
281
282
283 #
284 # amanda
285 #
286 /usr/sbin/amcheck                                       root:amanda       0750
287 /usr/lib/amanda/calcsize                                root:amanda       0750
288 /usr/lib/amanda/rundump                                 root:amanda       0750
289 /usr/lib/amanda/planner                                 root:amanda       0750
290 /usr/lib/amanda/runtar                                  root:amanda       0750
291 /usr/lib/amanda/dumper                                  root:amanda       0750
292 /usr/lib/amanda/killpgrp                                root:amanda       0750
293
294
295 #
296 # gnats
297 #
298 /usr/lib/gnats/gen-index                                gnats:root        0555
299 /usr/lib/gnats/pr-edit                                  gnats:root        0555
300 /usr/lib/gnats/queue-pr                                 gnats:root        0555
301
302
303 #
304 # news (inn)
305 #
306 # the inn start script changes it's uid to news:news. Later innbind
307 # is called by this user. Those programs do not need to be called by
308 # anyone else, therefore the strange permissions 4554 are required
309 # for operation. (#67032, #594393)
310 #
311 /usr/lib/news/bin/rnews                                 news:uucp         0555
312 /usr/lib/news/bin/inews                                 news:news         0555
313 /usr/lib/news/bin/innbind                               root:news         0555
314
315 #
316 # sendfax
317 #
318 # restrictive, only for "trusted" group users:
319 /usr/lib/mgetty+sendfax/faxq-helper                     fax:root          0755
320 /var/spool/fax/outgoing/                                fax:trusted       0755
321 /var/spool/fax/outgoing/locks                           fax:trusted       0755
322
323 #
324 # uucp
325 #
326 /var/spool/uucppublic/                                  root:uucp         1770
327 /usr/bin/uucp                                           uucp:uucp         0555
328 /usr/bin/uuname                                         uucp:uucp         0555
329 /usr/bin/uustat                                         uucp:uucp         0555
330 /usr/bin/uux                                            uucp:uucp         0555
331 /usr/lib/uucp/uucico                                    uucp:uucp         0555
332 /usr/lib/uucp/uuxqt                                     uucp:uucp         0555
333
334
335 #
336 # games of all kinds, toys
337 #
338
339 # bsd-games
340 /usr/games/atc                                          games:games       0755
341 /usr/games/battlestar                                   games:games       0755
342 /usr/games/canfield                                     games:games       0755
343 /usr/games/cribbage                                     games:games       0755
344 /usr/games/phantasia                                    games:games       0755
345 /usr/games/robots                                       games:games       0755
346 /usr/games/sail                                         games:games       0755
347 /usr/games/snake                                        games:games       0755
348 /usr/games/tetris-bsd                                   games:games       0755
349
350 # Maelstrom
351 /usr/games/Maelstrom                                    games:games       0755
352
353 # pachi
354 /usr/games/pachi                                        games:games       0755
355 /usr/games/martian                                      games:games       0755
356
357 # nethack
358 /usr/lib/nethack/nethack.tty                            games:games       0755
359
360 # chromium,
361 /usr/games/chromium                                     games:games       0755
362
363 # xscrabble
364 /usr/games/xscrab                                       games:games       0755
365
366 # trackballs
367 /usr/games/trackballs                                   games:games       0755
368
369 # ltris
370 /usr/games/ltris                                        games:games       0755
371
372 # xlogical
373 /usr/games/xlogical                                     games:games       0755
374
375 # lbreakout
376 /usr/games/lbreakout2                                   games:games       0755
377
378 # xgalaga
379 /usr/bin/xgalaga                                        games:games       0755
380
381 # rocksndiamonds
382 /usr/games/rocksndiamonds                               games:games       0755
383
384 # gnome-games
385 /usr/bin/glines                                         games:games       0755
386 /usr/bin/gnibbles                                       games:games       0755
387 /usr/bin/gnobots2                                       games:games       0755
388 /usr/bin/gnometris                                      games:games       0755
389 /usr/bin/gnomine                                        games:games       0755
390 /usr/bin/gnotravex                                      games:games       0755
391 /usr/bin/gnotski                                        games:games       0755
392 /usr/bin/gtali                                          games:games       0755
393 /usr/bin/mahjongg                                       games:games       0755
394 /usr/bin/same-gnome                                     games:games       0755
395
396 # zypp (#385207)
397 /usr/sbin/zypp-refresh-wrapper                          root:root         0755
398
399 # PolicyKit (#295341)
400 /usr/lib/PolicyKit/polkit-set-default-helper            root:polkituser   0755
401 /usr/lib/PolicyKit/polkit-read-auth-helper              root:polkituser   0755
402 /usr/lib/PolicyKit/polkit-revoke-helper                 root:polkituser   0755
403 /usr/lib/PolicyKit/polkit-explicit-grant-helper         root:polkituser   0755
404 /usr/lib/PolicyKit/polkit-grant-helper                  root:polkituser   0755
405 /usr/lib/PolicyKit/polkit-grant-helper-pam              root:polkituser   0755
406
407 # polkit new (bnc#523377)
408 /usr/lib/polkit-1/polkit-agent-helper-1                 root:root         0755
409 /usr/bin/pkexec                                         root:root         0755
410
411 # dbus-1 (#333361)
412 /lib/dbus-1/dbus-daemon-launch-helper                   root:messagebus   0750
413 /lib64/dbus-1/dbus-daemon-launch-helper                 root:messagebus   0750
414
415 # policycoreutils (#440596)
416 /usr/bin/newrole                                        root:root         0755
417
418 # VirtualBox (#429725)
419 /usr/lib/virtualbox/VirtualBox                          root:vboxusers    0755
420 /usr/lib/virtualbox/VirtualBox3                         root:vboxusers    0755
421 /usr/lib/virtualbox/VBoxBFE                             root:vboxusers    0755
422 /usr/lib/virtualbox/VBoxHeadless                        root:vboxusers    0755
423 /usr/lib/virtualbox/VBoxSDL                             root:vboxusers    0755
424 # (bnc#533550)
425 /usr/lib/virtualbox/VBoxNetAdpCtl                       root:vboxusers    0755
426 # bnc#669055
427 /usr/lib/virtualbox/VBoxNetDHCP                         root:vboxusers    0755
428
429 # open-vm-tools (bnc#474285)
430 /usr/bin/vmware-user-suid-wrapper                       root:root         0755
431
432 # lockdev (bnc#588325)
433 /usr/sbin/lockdev                                       root:lock         0755
434
435 # hawk (bnc#665045)
436 /usr/sbin/hawk_chkpwd                                   root:haclient     0755
437 /usr/sbin/hawk_invoke                                   root:haclient     0755