Access.conf: Difference between revisions
From Leo's Notes
This page was last edited on 24 February 2017, at 04:30.
No edit summary |
m Text replacement - "{{hltext | code =" to "{{highlight|lang=terminal|code=" |
||
| Line 8: | Line 8: | ||
# Source as one or more of: The TTY, 'ALL' for all TTY's. LOCAL for local only, an IP address to restrict by IP | # Source as one or more of: The TTY, 'ALL' for all TTY's. LOCAL for local only, an IP address to restrict by IP | ||
{{ | {{highlight|lang=terminal|code= | ||
+ : root : cron crond :0 tty1 tty2 tty3 tty4 tty5 tty6 | + : root : cron crond :0 tty1 tty2 tty3 tty4 tty5 tty6 | ||
+ : (staff) (sys) (utils) (wheel) (visagg) EXCEPT dispatch ftp semipost trouble : ALL | + : (staff) (sys) (utils) (wheel) (visagg) EXCEPT dispatch ftp semipost trouble : ALL | ||
Revision as of 04:30, 24 February 2017
/etc/security/access.conf is a file that restricts who can log in on a particular machine.
Syntax
Comments starts with the '#' character at the beginning of each line. Each line contains 3 fields, separated by a colon.
- Permission is defined with either a '+' (allow) or a '-' (deny)
- Scope as one or more of: 'users', '(groups)', or 'ALL'. Use the
EXCEPTkeyword to negate. - Source as one or more of: The TTY, 'ALL' for all TTY's. LOCAL for local only, an IP address to restrict by IP
+ : root : cron crond :0 tty1 tty2 tty3 tty4 tty5 tty6
+ : (staff) (sys) (utils) (wheel) (visagg) EXCEPT dispatch ftp semipost trouble : ALL
- : ALL : ALL