Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.06 KB | None | 0 0
  1. # login.conf - login class capabilities database.
  2. #
  3. # Remember to rebuild the database after each change to this file:
  4. #
  5. # cap_mkdb /etc/login.conf
  6. #
  7. # This file controls resource limits, accounting limits and
  8. # default user environment settings.
  9. #
  10. # $FreeBSD: releng/11.1/etc/login.conf 296723 2016-03-12 14:54:34Z kib $
  11. #
  12.  
  13. # Default settings effectively disable resource limits, see the
  14. # examples below for a starting point to enable them.
  15.  
  16. # defaults
  17. # These settings are used by login(1) by default for classless users
  18. # Note that entries like "cputime" set both "cputime-cur" and "cputime-max"
  19. #
  20. # Note that since a colon ':' is used to separate capability entries,
  21. # a \c escape sequence must be used to embed a literal colon in the
  22. # value or name of a capability (see the ``CGETNUM AND CGETSTR SYNTAX
  23. # AND SEMANTICS'' section of getcap(3) for more escape sequences).
  24.  
  25. default:\
  26. :passwd_format=sha512:\
  27. :copyright=/etc/COPYRIGHT:\
  28. :welcome=/etc/motd:\
  29. :setenv=MAIL=/var/mail/$,BLOCKSIZE=K:\
  30. :path=/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin ~/bin:\
  31. :nologin=/var/run/nologin:\
  32. :cputime=unlimited:\
  33. :datasize=unlimited:\
  34. :stacksize=unlimited:\
  35. :memorylocked=64K:\
  36. :memoryuse=unlimited:\
  37. :filesize=unlimited:\
  38. :coredumpsize=unlimited:\
  39. :openfiles=unlimited:\
  40. :maxproc=unlimited:\
  41. :sbsize=unlimited:\
  42. :vmemoryuse=unlimited:\
  43. :swapuse=unlimited:\
  44. :pseudoterminals=unlimited:\
  45. :kqueues=unlimited:\
  46. :umtxp=unlimited:\
  47. :priority=0:\
  48. :ignoretime@:\
  49. :umask=022:
  50.  
  51.  
  52. #
  53. # A collection of common class names - forward them all to 'default'
  54. # (login would normally do this anyway, but having a class name
  55. # here suppresses the diagnostic)
  56. #
  57. standard:\
  58. :tc=default:
  59. xuser:\
  60. :tc=default:
  61. staff:\
  62. :tc=default:
  63. daemon:\
  64. :memorylocked=128M:\
  65. :tc=default:
  66. news:\
  67. :tc=default:
  68. dialer:\
  69. :tc=default:
  70.  
  71. #
  72. # Root can always login
  73. #
  74. # N.B. login_getpwclass(3) will use this entry for the root account,
  75. # in preference to 'default'.
  76. root:\
  77. :ignorenologin:\
  78. :memorylocked=unlimited:\
  79. :tc=default:
  80.  
  81. #
  82. # Russian Users Accounts. Setup proper environment variables.
  83. #
  84. russian|Russian Users Accounts:\
  85. :charset=UTF-8:\
  86. :lang=ru_RU.UTF-8:\
  87. :tc=default:
  88.  
  89.  
  90. ######################################################################
  91. ######################################################################
  92. ##
  93. ## Example entries
  94. ##
  95. ######################################################################
  96. ######################################################################
  97.  
  98. ## Example defaults
  99. ## These settings are used by login(1) by default for classless users
  100. ## Note that entries like "cputime" set both "cputime-cur" and "cputime-max"
  101. #
  102. #default:\
  103. # :cputime=infinity:\
  104. # :datasize-cur=22M:\
  105. # :stacksize-cur=8M:\
  106. # :memorylocked-cur=10M:\
  107. # :memoryuse-cur=30M:\
  108. # :filesize=infinity:\
  109. # :coredumpsize=infinity:\
  110. # :maxproc-cur=64:\
  111. # :openfiles-cur=64:\
  112. # :priority=0:\
  113. # :requirehome@:\
  114. # :umask=022:\
  115. # :tc=auth-defaults:
  116. #
  117. #
  118.  
  119. default:\
  120. [...]
  121. :charset=UTF-8:\
  122. :lang=en_US.UTF-8:\
  123. :umask=022:
  124. ## standard - standard user defaults
  125. ##
  126. #standard:\
  127. # :copyright=/etc/COPYRIGHT:\
  128. # :welcome=/etc/motd:\
  129. # :setenv=MAIL=/var/mail/$,BLOCKSIZE=K:\
  130. # :path=~/bin /bin /usr/bin /usr/local/bin:\
  131. # :manpath=/usr/share/man /usr/local/man:\
  132. # :nologin=/var/run/nologin:\
  133. # :cputime=1h30m:\
  134. # :datasize=8M:\
  135. # :vmemoryuse=100M:\
  136. # :stacksize=2M:\
  137. # :memorylocked=4M:\
  138. # :memoryuse=8M:\
  139. # :filesize=8M:\
  140. # :coredumpsize=8M:\
  141. # :openfiles=24:\
  142. # :maxproc=32:\
  143. # :priority=0:\
  144. # :requirehome:\
  145. # :passwordtime=90d:\
  146. # :umask=002:\
  147. # :ignoretime@:\
  148. # :tc=default:
  149. #
  150. #
  151. ##
  152. ## users of X (needs more resources!)
  153. ##
  154. #xuser:\
  155. # :manpath=/usr/share/man /usr/local/man:\
  156. # :cputime=4h:\
  157. # :datasize=12M:\
  158. # :vmemoryuse=infinity:\
  159. # :stacksize=4M:\
  160. # :filesize=8M:\
  161. # :memoryuse=16M:\
  162. # :openfiles=32:\
  163. # :maxproc=48:\
  164. # :tc=standard:
  165. #
  166. #
  167. ##
  168. ## Staff users - few restrictions and allow login anytime
  169. ##
  170. #staff:\
  171. # :ignorenologin:\
  172. # :ignoretime:\
  173. # :requirehome@:\
  174. # :accounted@:\
  175. # :path=~/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin:\
  176. # :umask=022:\
  177. # :tc=standard:
  178. #
  179. #
  180. ##
  181. ## root - fallback for root logins
  182. ##
  183. #root:\
  184. # :path=~/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin:\
  185. # :cputime=infinity:\
  186. # :datasize=infinity:\
  187. # :stacksize=infinity:\
  188. # :memorylocked=infinity:\
  189. # :memoryuse=infinity:\
  190. # :filesize=infinity:\
  191. # :coredumpsize=infinity:\
  192. # :openfiles=infinity:\
  193. # :maxproc=infinity:\
  194. # :memoryuse-cur=32M:\
  195. # :maxproc-cur=64:\
  196. # :openfiles-cur=1024:\
  197. # :priority=0:\
  198. # :requirehome@:\
  199. # :umask=022:\
  200. # :tc=auth-root-defaults:
  201. #
  202. #
  203. ##
  204. ## Settings used by /etc/rc
  205. ##
  206. #daemon:\
  207. # :coredumpsize@:\
  208. # :coredumpsize-cur=0:\
  209. # :datasize=infinity:\
  210. # :datasize-cur@:\
  211. # :maxproc=512:\
  212. # :maxproc-cur@:\
  213. # :memoryuse-cur=64M:\
  214. # :memorylocked-cur=64M:\
  215. # :openfiles=1024:\
  216. # :openfiles-cur@:\
  217. # :stacksize=16M:\
  218. # :stacksize-cur@:\
  219. # :tc=default:
  220. #
  221. #
  222. ##
  223. ## Settings used by news subsystem
  224. ##
  225. #news:\
  226. # :path=/usr/local/news/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin:\
  227. # :cputime=infinity:\
  228. # :filesize=128M:\
  229. # :datasize-cur=64M:\
  230. # :stacksize-cur=32M:\
  231. # :coredumpsize-cur=0:\
  232. # :maxmemorysize-cur=128M:\
  233. # :memorylocked=32M:\
  234. # :maxproc=128:\
  235. # :openfiles=256:\
  236. # :tc=default:
  237. #
  238. #
  239. ##
  240. ## The dialer class should be used for a dialup PPP account
  241. ## Welcome messages/news suppressed
  242. ##
  243. #dialer:\
  244. # :hushlogin:\
  245. # :requirehome@:\
  246. # :cputime=unlimited:\
  247. # :filesize=2M:\
  248. # :datasize=2M:\
  249. # :stacksize=4M:\
  250. # :coredumpsize=0:\
  251. # :memoryuse=4M:\
  252. # :memorylocked=1M:\
  253. # :maxproc=16:\
  254. # :openfiles=32:\
  255. # :tc=standard:
  256. #
  257. #
  258. ##
  259. ## Site full-time 24/7 PPP connection
  260. ## - no time accounting, restricted to access via dialin lines
  261. ##
  262. #site:\
  263. # :ignoretime:\
  264. # :passwordtime@:\
  265. # :refreshtime@:\
  266. # :refreshperiod@:\
  267. # :sessionlimit@:\
  268. # :autodelete@:\
  269. # :expireperiod@:\
  270. # :graceexpire@:\
  271. # :gracetime@:\
  272. # :warnexpire@:\
  273. # :warnpassword@:\
  274. # :idletime@:\
  275. # :sessiontime@:\
  276. # :daytime@:\
  277. # :weektime@:\
  278. # :monthtime@:\
  279. # :warntime@:\
  280. # :accounted@:\
  281. # :tc=dialer:\
  282. # :tc=staff:
  283. #
  284. #
  285. ##
  286. ## Example standard accounting entries for subscriber levels
  287. ##
  288. #
  289. #subscriber|Subscribers:\
  290. # :accounted:\
  291. # :refreshtime=180d:\
  292. # :refreshperiod@:\
  293. # :sessionlimit@:\
  294. # :autodelete=30d:\
  295. # :expireperiod=180d:\
  296. # :graceexpire=7d:\
  297. # :gracetime=10m:\
  298. # :warnexpire=7d:\
  299. # :warnpassword=7d:\
  300. # :idletime=30m:\
  301. # :sessiontime=4h:\
  302. # :daytime=6h:\
  303. # :weektime=40h:\
  304. # :monthtime=120h:\
  305. # :warntime=4h:\
  306. # :tc=standard:
  307. #
  308. #
  309. ##
  310. ## Subscriber accounts. These accounts have their login times
  311. ## accounted and have access limits applied.
  312. ##
  313. #subppp|PPP Subscriber Accounts:\
  314. # :tc=dialer:\
  315. # :tc=subscriber:
  316. #
  317. #
  318. #subshell|Shell Subscriber Accounts:\
  319. # :tc=subscriber:
  320. #
  321. ##
  322. ## If you want some of the accounts to use traditional UNIX DES based
  323. ## password hashes.
  324. ##
  325. #des_users:\
  326. # :passwd_format=des:\
  327. # :tc=default:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement