login.access revision 1519
11519Sguido# Login access control table.
21519Sguido# 
31519Sguido# When someone logs in, the table is scanned for the first entry that
41519Sguido# matches the (user, host) combination, or, in case of non-networked
51519Sguido# logins, the first entry that matches the (user, tty) combination.  The
61519Sguido# permissions field of that table entry determines whether the login will 
71519Sguido# be accepted or refused.
81519Sguido# 
91519Sguido# Format of the login access control table is three fields separated by a
101519Sguido# ":" character:
111519Sguido# 
121519Sguido# 	permission : users : origins
131519Sguido# 
141519Sguido# The first field should be a "+" (access granted) or "-" (access denied)
151519Sguido# character. The second field should be a list of one or more login names,
161519Sguido# group names, or ALL (always matches).  The third field should be a list
171519Sguido# of one or more tty names (for non-networked logins), host names, domain
181519Sguido# names (begin with "."), host addresses, internet network numbers (end
191519Sguido# with "."), ALL (always matches) or LOCAL (matches any string that does
201519Sguido# not contain a "." character). If you run NIS you can use @netgroupname
211519Sguido# in host or user patterns.
221519Sguido#
231519Sguido# The EXCEPT operator makes it possible to write very compact rules.
241519Sguido#
251519Sguido# The group file is searched only when a name does not match that of the
261519Sguido# logged-in user. Only groups are matched in which users are explicitly
271519Sguido# listed: the program does not look at a user's primary group id value.
281519Sguido#
291519Sguido##############################################################################
301519Sguido# 
311519Sguido# Disallow console logins to all but a few accounts.
321519Sguido#
331519Sguido#-:ALL EXCEPT wheel shutdown sync:console
341519Sguido#
351519Sguido# Disallow non-local logins to privileged accounts (group wheel).
361519Sguido#
371519Sguido#-:wheel:ALL EXCEPT LOCAL .win.tue.nl
381519Sguido#
391519Sguido# Some accounts are not allowed to login from anywhere:
401519Sguido#
411519Sguido#-:wsbscaro wsbsecr wsbspac wsbsym wscosor wstaiwde:ALL
421519Sguido#
431519Sguido# All other accounts are allowed to login from anywhere.
441519Sguido#
45