home *** CD-ROM | disk | FTP | other *** search
/ chilidog.highland.cc.ks.us / chilidog.highland.cc.ks.us.zip / chilidog.highland.cc.ks.us / backup / bradford.20110502.etc.tar.gz / bradford.20110502.etc.tar / etc / permissions.paranoid < prev    next >
Text File  |  2006-04-22  |  22KB  |  450 lines

  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. # See /etc/permissions for general hints on how to use this file.
  8. #
  9. # /etc/permissions.paranoid is NOT designed to be used in a single-user as
  10. # well as a multi-user installation, be it networked or not.
  11. # Derived from /etc/permissions.secure, it has _all_ sgid and suid bits
  12. # cleared - therefore, the system might be useable for non-privileged users
  13. # except for simple tasks like changing passwords and such. In addition, 
  14. # some of the configuration files are not readable for world any more.
  15. #
  16. # Feel free to use this file as a basis of a system configuration that meets
  17. # your understanding of "secure", for the case that you're a bit paranoid.
  18. # Since there is no such thing as "it works" with this configuration, please
  19. # use these settings with care. Some experience on behalf of the administrator
  20. # is needed to have a system running flawlessly when users are present.
  21. # In particular, all terminal emulators will not be able to write to utmp
  22. # and wtmp any more, which renders who(1) and finger(1) useless.
  23. #
  24. # Please always keep in mind that your system listens on network sockets
  25. # in the default configuration. Change this by disabling the services that 
  26. # you do not need or by restricting access to them using packet filters
  27. # or tcp wrappers (see hosts_access(5)) to gain a higher level of security
  28. # in your system.
  29.  
  30. #
  31. # Directories
  32. #
  33. # no lock files for emacs:
  34. /var/lib/xemacs/lock                                    root:trusted      1775
  35. # for screen's session sockets:
  36. /var/run/uscreens                                       root:trusted      1775
  37.  
  38.  
  39. #
  40. # /etc
  41. #
  42. /etc/crontab                                            root:root          600
  43. /etc/exports                                            root:root          600
  44. /etc/fstab                                              root:root          600
  45. /etc/ftpaccess                                          root:root          600
  46. /etc/ftpusers                                           root:root          600
  47. /etc/inetd.conf                                         root:root          600
  48. /etc/inittab                                            root:root          600
  49. /etc/mtab                                               root:root          600
  50. /etc/rmtab                                              root:root          600
  51. /var/lib/nfs/rmtab                                      root:root          600
  52. /etc/syslog.conf                                        root:root          600
  53.  
  54. #
  55. # suid system programs that need the suid bit to work:
  56. #
  57. /bin/su                                                 root:root         0755
  58. # disable at and cron for non-root users
  59. /usr/bin/at                                             root:trusted      0755
  60. /usr/bin/crontab                                        root:trusted      0755
  61. /usr/bin/gpasswd                                        root:shadow       0755
  62. /usr/bin/newgrp                                         root:root         0755
  63. /usr/bin/passwd                                         root:shadow       0755
  64. /usr/bin/chfn                                           root:shadow       0755
  65. /usr/bin/chage                                          root:shadow       0755
  66. /usr/bin/chsh                                           root:shadow       0755
  67. /usr/bin/expiry                                         root:shadow       0755
  68. # the default configuration of the sudo package in SuSE distribution is to
  69. # intimidate users.
  70. /usr/bin/sudo                                           root:root         0755
  71. /usr/sbin/su-wrapper                                    root:root         0755
  72. # opie password system
  73. # #66303
  74. /usr/bin/opiepasswd                                     root:root         0755
  75. /usr/bin/opiesu                                         root:root         0755
  76. # "user" entries in /etc/fstab make mount work for non-root users:
  77. /usr/bin/ncpmount                                       root:trusted      0755
  78. /usr/bin/ncpumount                                      root:trusted      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. /sbin/unix_chkpwd                                       root:shadow       0755
  92. /sbin/unix2_chkpwd                                      root:shadow       0755
  93. # qpopper
  94. /usr/sbin/popauth                                       pop:trusted       0755
  95. # from the squid package
  96. /usr/sbin/pam_auth                                      root:shadow       0755
  97.  
  98. # still to be converted to utempter
  99. /opt/gnome/lib/vte/gnome-pty-helper                     root:tty          0755
  100.  
  101. # gpg cannot pin memory into the ram using mlock(2) if not suid.
  102. # In memory pressure conditions, memory pages containing sensitive information
  103. # can be paged to disk.
  104. # the suid bit also removes gpg's complaints wrt the insecure memory.
  105. # in permissions.paranoid, we remove the setuid bit following the rationale
  106. # described near the top of the file.
  107. /usr/bin/gpg                                            root:root         0755
  108.  
  109.  
  110.  
  111. #
  112. # mixed section: most of it is disabled in this permissions.secure:
  113. #
  114. #########################################################################
  115. # rpm subsystem:
  116. /usr/src/packages/SOURCES/                              root:root          700
  117. /usr/src/packages/BUILD/                                root:root          700
  118. /usr/src/packages/RPMS/                                 root:root          700
  119. /usr/src/packages/RPMS/alpha/                           root:root          700
  120. /usr/src/packages/RPMS/alphaev56/                       root:root          700
  121. /usr/src/packages/RPMS/alphaev67/                       root:root          700
  122. /usr/src/packages/RPMS/alphaev6/                        root:root          700
  123. /usr/src/packages/RPMS/arm4l/                           root:root          700
  124. /usr/src/packages/RPMS/athlon/                          root:root          700
  125. /usr/src/packages/RPMS/i386/                            root:root          700
  126. /usr/src/packages/RPMS/i486/                            root:root          700
  127. /usr/src/packages/RPMS/i586/                            root:root          700
  128. /usr/src/packages/RPMS/i686/                            root:root          700
  129. /usr/src/packages/RPMS/ia64/                            root:root          700
  130. /usr/src/packages/RPMS/mips/                            root:root          700
  131. /usr/src/packages/RPMS/ppc/                             root:root          700
  132. /usr/src/packages/RPMS/ppc64/                           root:root          700
  133. /usr/src/packages/RPMS/powerpc/                         root:root          700
  134. /usr/src/packages/RPMS/powerpc64/                       root:root          700
  135. /usr/src/packages/RPMS/s390/                            root:root          700
  136. /usr/src/packages/RPMS/s390x/                           root:root          700
  137. /usr/src/packages/RPMS/sparc/                           root:root          700
  138. /usr/src/packages/RPMS/sparcv9/                         root:root          700
  139. /usr/src/packages/RPMS/sparc64/                         root:root          700
  140. /usr/src/packages/RPMS/x86_64/                          root:root          700
  141. /usr/src/packages/RPMS/armv4l/                          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/X11R6/bin/v4l-conf                                 root:video        0755
  150. /opt/gnome/sbin/zapping_setup_fb                        root:video        0755
  151. # vmware
  152. /usr/bin/vmware                                         root:trusted      0755
  153. /usr/bin/vmware-ping                                    root:trusted      0755
  154. # Itanium ia32 emulator
  155. /usr/lib/ia32el/suid_ia32x_loader                       root:root         0755
  156. #########################################################################
  157. # scotty:
  158. # #66211
  159. /usr/bin/ntping                                         root:trusted      0755
  160. # This is not extensively tested.
  161. /usr/bin/vlock                                          root:shadow       0755
  162. /usr/X11R6/bin/Xorg                                     root:root         0711
  163. /usr/bin/man                                            root:root         0755
  164. /usr/bin/mandb                                          root:root         0755
  165. # turned off write and wall by disabling sgid tty:
  166. /usr/bin/wall                                           root:tty          0755
  167. /usr/bin/write                                          root:tty          0755
  168. # thttpd
  169. /usr/bin/makeweb                                        root:www          0750
  170. # yaps, pager software, accesses /dev/ttyS? . Disabled sgid uucp.
  171. /usr/bin/yaps                                           root:uucp         0755
  172. # scmxx, tool for mobile phone, accesses /dev/ttyS?
  173. # #66309
  174. /usr/bin/scmxx                                          root:uucp         0755
  175. # ncpfs tool: trusted only
  176. /usr/bin/nwsfind                                        root:trusted      0750
  177. /usr/bin/ncplogin                                       root:trusted      0750
  178. /usr/bin/ncpmap                                         root:trusted      0750
  179. # lpdfilter:
  180. # checks itself that only lp and root can call it
  181. /usr/lib/lpdfilter/bin/runlpr                           root:root         0755
  182. # pcmcia:
  183. # Needs setuid to eject cards (#100120)
  184. /sbin/pccardctl                                         root:trusted      0755
  185. # pcmcia-cardinfo:
  186. # for visual pcmcia status info. Needs setuid for creating device
  187. # files. It does that before initializing X
  188. /usr/X11R6/bin/cardinfo                                 root:root         0755
  189. # gnokii nokia cellphone software
  190. # #66209
  191. /usr/sbin/mgnokiidev                                    root:uucp          755
  192. # pcp, performance co-pilot
  193. # setuid root is used to write /var/log/pcp/NOTICES
  194. # #66205
  195. /usr/lib/pcp/pmpost                                     root:trusted      0755
  196. # mailman mailing list software
  197. # #66315
  198. /usr/lib/mailman/cgi-bin/admin                          root:mailman      0755
  199. /usr/lib/mailman/cgi-bin/admindb                        root:mailman      0755
  200. /usr/lib/mailman/cgi-bin/edithtml                       root:mailman      0755
  201. /usr/lib/mailman/cgi-bin/listinfo                       root:mailman      0755
  202. /usr/lib/mailman/cgi-bin/options                        root:mailman      0755
  203. /usr/lib/mailman/cgi-bin/private                        root:mailman      0755
  204. /usr/lib/mailman/cgi-bin/roster                         root:mailman      0755
  205. /usr/lib/mailman/cgi-bin/subscribe                      root:mailman      0755
  206. /usr/lib/mailman/cgi-bin/confirm                        root:mailman      0755
  207. /usr/lib/mailman/cgi-bin/create                         root:mailman      0755
  208. /usr/lib/mailman/cgi-bin/editarch                       root:mailman      0755
  209. /usr/lib/mailman/cgi-bin/rmlist                         root:mailman      0755
  210. /usr/lib/mailman/mail/mailman                           root:mailman      0755
  211.  
  212. # libgnomesu (#75823)
  213. /opt/gnome/lib/libgnomesu/gnomesu-pam-backend           root:root         0755
  214.  
  215. # control-center2 (#104993)
  216. /opt/gnome/sbin/change-passwd                           root:root         0755
  217.  
  218. #
  219. # cups (#66305)
  220. #
  221. /usr/bin/lppasswd                                       lp:sys            0755
  222.  
  223. #
  224. # networking (need root for the privileged socket)
  225. #
  226. /bin/ping                                               root:root         0755
  227. /bin/ping6                                              root:root         0755
  228. /usr/bin/bing                                           root:trusted      0755
  229. /usr/sbin/traceroute6                                   root:root         0755
  230. # mtr is linked against ncurses.
  231. /usr/sbin/mtr                                           root:dialout      0755
  232. /usr/bin/rcp                                            root:root         0755
  233. /usr/bin/rlogin                                         root:root         0755
  234. /usr/bin/rsh                                            root:root         0755
  235.  
  236. # OpenPBS #66320
  237. /var/spool/pbs/spool                                    root:root         0755
  238. /var/spool/pbs/undelivered                              root:root         0755
  239. /opt/pbs/sbin/pbs_iff                                   root:root         0755
  240. /opt/pbs/sbin/pbs_rcp                                   root:root         0755
  241.  
  242. # heartbeat #66310
  243. # cl_status needs to be allowed to connect to the heartbeat API. If the setgid
  244. # bit is removed, one can manually add users to the haclient group instead.
  245. /usr/bin/cl_status                                      root:haclient     0555
  246.  
  247. # apache2
  248. /usr/sbin/suexec2                                       root:root         0755
  249.  
  250. # exim
  251. /usr/sbin/exim                                          root:root         0755
  252.  
  253. #
  254. # dialup networking programs
  255. #
  256. /usr/sbin/pppoe-wrapper                                 root:dialout      0750
  257. # i4l package (#100750):
  258. /sbin/isdnctrl                                          root:dialout      0750
  259. # #66111
  260. /usr/bin/vboxbeep                                       root:trusted      0755
  261.  
  262.  
  263. #
  264. # linux text console utilities
  265. #
  266. # setuid needed on the text console to set the terminal content on ctrl-o
  267. # #66112
  268. /usr/lib/mc/cons.saver                                  root:root         0755
  269.  
  270.  
  271. #
  272. # terminal emulators
  273. # This and future SuSE products have support for the utempter, a small helper
  274. # program that does the utmp/wtmp update work with the necessary rights.
  275. # The use of utempter obsoletes the need for sgid bits on terminal emulator
  276. # binaries. We mention screen here, but all other terminal emulators have
  277. # moved to /etc/permissions, with modes set to 0755.
  278.  
  279. # framebuffer terminal emulator (japanese).
  280. /usr/bin/jfbterm                                        root:tty          0755
  281.  
  282. #
  283. # kde
  284. #
  285. # arts wrapper, normally suid root:
  286. /opt/kde3/bin/artswrapper                               root:root         0755
  287. # needs setuid root when using shadow via NIS:
  288. # #66218
  289. /opt/kde3/bin/kcheckpass                                root:shadow       0755
  290. # do not allow khc_indexbuilder to write into /var/cache/susehelp/
  291. /opt/kde3/bin/khc_indexbuilder                          root:man          0755
  292. # This has a meaning... hmm...
  293. /opt/kde3/bin/kdesud                                    root:nogroup      0755
  294. # used for getting proxy settings from dhcp
  295. /opt/kde3/bin/kpac_dhcp_helper                          root:root         0755
  296. # edits /etc/smb.conf
  297. # #66312
  298. /usr/bin/fileshareset                                   root:root         0755
  299.  
  300.  
  301. #
  302. # amanda
  303. #
  304. # Well, if you are gid disk already, you don't need these amanda binaries
  305. # to get root.
  306. # Anyway, we don't keep the suid bits.
  307. /usr/sbin/amcheck                                       root:disk         0750
  308. /usr/lib/amanda/calcsize                                root:disk         0750
  309. /usr/lib/amanda/rundump                                 root:disk         0750
  310. /usr/lib/amanda/planner                                 root:disk         0750
  311. /usr/lib/amanda/runtar                                  root:disk         0750
  312. /usr/lib/amanda/dumper                                  root:disk         0750
  313. /usr/lib/amanda/killpgrp                                root:disk         0750
  314.  
  315.  
  316. #
  317. # gnats
  318. #
  319. /usr/lib/gnats/gen-index                                gnats:root        0555
  320. /usr/lib/gnats/pr-edit                                  gnats:root        0555
  321. /usr/lib/gnats/queue-pr                                 gnats:root        0555
  322.  
  323.  
  324. #
  325. # news (inn)
  326. #
  327. # the inn start script changes it's uid to news:news. Later innstart and
  328. # innfeed are called by this user. Those programs do not need to be called by
  329. # anyone else, therefore the strange permissions 4554 are required for
  330. # operation. (#67032)
  331. #
  332. /usr/lib/news/bin/rnews                                 news:uucp         0555
  333. /usr/lib/news/bin/startinnfeed                          root:news         0555
  334. /usr/lib/news/bin/inndstart                             root:news         0555
  335. /usr/lib/news/bin/inews                                 news:news         0555
  336.  
  337.  
  338. #
  339. # fax
  340. #
  341. # restrictive, only for "trusted" group users:
  342. # faxq helper:
  343. /usr/lib/mgetty+sendfax/faxq-helper                     fax:root          0711
  344. /var/spool/fax/outgoing                                 fax:trusted       1770
  345. /var/spool/fax/outgoing/locks                           fax:trusted       1770
  346. # TODO: package should set this permissions
  347. /var/spool/fax/archive                                  fax:uucp           700
  348. /var/spool/fax/bin                                      fax:uucp           755
  349. /var/spool/fax/client                                   fax:uucp           755
  350. /var/spool/fax/config                                   fax:uucp           755
  351. /var/spool/fax/dev                                      fax:uucp           755
  352. /var/spool/fax/docq                                     fax:uucp           700
  353. /var/spool/fax/doneq                                    fax:uucp           700
  354. /var/spool/fax/etc                                      fax:uucp           755
  355. /var/spool/fax/info                                     fax:uucp           755
  356. /var/spool/fax/log                                      fax:uucp           755
  357. /var/spool/fax/pollq                                    fax:uucp           700
  358. /var/spool/fax/recvq                                    fax:uucp           755
  359. /var/spool/fax/sendq                                    fax:uucp           700
  360. /var/spool/fax/status                                   fax:uucp           755
  361. /var/spool/fax/tmp                                      fax:uucp           700
  362.  
  363. #
  364. # uucp
  365. #
  366. /var/spool/uucppublic                                   root:uucp         1770
  367. /usr/bin/uucp                                           uucp:uucp         0555
  368. /usr/bin/uuname                                         uucp:uucp         0555
  369. /usr/bin/uustat                                         uucp:uucp         0555
  370. /usr/bin/uux                                            uucp:uucp         0555
  371. /usr/lib/uucp/uucico                                    uucp:uucp         0555
  372. /usr/lib/uucp/uuxqt                                     uucp:uucp         0555
  373.  
  374.  
  375. #
  376. # games of all kinds, toys
  377. #
  378.  
  379. # bsd-games
  380. /usr/games/atc                                          games:games       0755
  381. /usr/games/battlestar                                   games:games       0755
  382. /usr/games/canfield                                     games:games       0755
  383. /usr/games/cribbage                                     games:games       0755
  384. /usr/games/phantasia                                    games:games       0755
  385. /usr/games/robots                                       games:games       0755
  386. /usr/games/sail                                         games:games       0755
  387. /usr/games/snake                                        games:games       0755
  388. /usr/games/tetris-bsd                                   games:games       0755
  389.  
  390. # Maelstrom
  391. /usr/games/Maelstrom                                    games:games       0755
  392.  
  393. # pachi
  394. /usr/games/pachi                                        games:games       0755
  395. /usr/games/martian                                      games:games       0755
  396.  
  397. # nethack
  398. /usr/lib/nethack/nethack.tty                            games:games       0755
  399.  
  400. # chromium,
  401. /usr/games/chromium                                     games:games       0755
  402.  
  403. # geki2
  404. /usr/games/geki2                                        games:games       0755
  405. /usr/games/grande                                       games:games       0755
  406.  
  407. # xscrabble
  408. /usr/games/xscrab                                       games:games       0755
  409.  
  410. # trackballs
  411. /usr/games/trackballs                                   games:games       0755
  412.  
  413. # ltris
  414. /usr/games/ltris                                        games:games       0755
  415.  
  416. # xlogical
  417. /usr/games/xlogical                                     games:games       0755
  418.  
  419. # lbreakout
  420. /usr/games/lbreakout2                                   games:games       0755
  421.  
  422. # xgalaga
  423. /usr/X11R6/bin/xgalaga                                  games:games       0755
  424.  
  425. # xtetris
  426. /usr/X11R6/bin/xtetris                                  games:games       0755
  427.  
  428. # xmris
  429. /usr/X11R6/bin/xmris                                    games:games       0755
  430.  
  431. # rocksndiamonds
  432. /usr/games/rocksndiamonds                               games:games       0755
  433.  
  434. # gnome-games
  435. /opt/gnome/bin/gtali                                    games:games       0755
  436. /opt/gnome/bin/gnotski                                  games:games       0755
  437. /opt/gnome/bin/gnome-stones                             games:games       0755
  438. /opt/gnome/bin/glines                                   games:games       0755
  439. /opt/gnome/bin/gnibbles                                 games:games       0755
  440. /opt/gnome/bin/gnotravex                                games:games       0755
  441. /opt/gnome/bin/mahjongg                                 games:games       0755
  442. /opt/gnome/bin/gnometris                                games:games       0755
  443. /opt/gnome/bin/gnobots2                                 games:games       0755
  444. /opt/gnome/bin/gnomine                                  games:games       0755
  445. /opt/gnome/bin/same-gnome                               games:games       0755
  446.  
  447. # Novell nici. See bug 127545
  448. /var/opt/novell/nici/nicimud                            root:root         0755
  449.