Access.conf: Difference between revisions

From Leo's Notes
This page was last edited on 1 September 2019, at 06:21.
Created page with " <code>/etc/security/access.conf</code> is a file that restricts who can log in on a particular machine. == Syntax == # Comments are defined with '#' # There are 3 fields: #..."
 
m Text replacement - "Category:Linux{{Navbox Linux}}" to "{{Navbox Linux}}Category:Linux"
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:


<code>/etc/security/access.conf</code> is a file that restricts who can log in on a particular machine.
{{code|/etc/security/access.conf}} is a file that restricts who can log in on a particular machine.


== Syntax ==
== 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 {{code|EXCEPT}} keyword 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


# Comments are defined with '#'
{{highlight|lang=text|code=
# There are 3 fields:
# 1. Permission is defined with either a '+' (allow) or a '-' (deny)
# 2. You may define 'users', '(groups)', or 'ALL'
# 3. You may define the TTY. Use 'ALL' for all TTY's. LOCAL for local only. Set an IP to restrict by IP
+ : 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
- : ALL : ALL
- : ALL : ALL
}}


[[Category:Linux]]
 
 
{{Navbox Linux}}[[Category:Linux]]

Latest revision as of 06:21, 1 September 2019

/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.

  1. Permission is defined with either a '+' (allow) or a '-' (deny)
  2. Scope as one or more of: 'users', '(groups)', or 'ALL'. Use the EXCEPT keyword to negate.
  3. 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