Skip to content

Add /etc/local/access.conf symlink #313

Merged
merged 1 commit into from
Mar 31, 2023
Merged

Conversation

donald
Copy link
Collaborator

@donald donald commented Mar 30, 2023

Currently, /etc/security/access.conf is a wild file (not installed by a
package) and has no function (just a copy of
/etc/security/access.conf.sample) with comments only.

/etc/security/access.conf is used by pam_access which is configured for
sshd and most other pam services.

Create a symlink from /etc/security/access.conf to
/etc/local/access.conf, so that we can install a host specific access
file. This is going to be used to restrict access to certain machines to
trusted users. Such a file could, for example, look like this:

+ : ALL : LOCAL
+ : root (admin) : ALL
- : ALL : ALL

to allow remote access to root user and the admin group only.

If the target file doesn't exists, which should be the default case,
pam_access doesn't block the authentication.

mariux64/mariux64-issues#59

Currently, /etc/security/access.conf is a wild file (not installed by a
package) and has no function (just a copy of
/etc/security/access.conf.sample) with comments only.

/etc/security/access.conf is used by pam_access which is configured for
sshd and most other pam services.

Create a symlink from /etc/security/access.conf to
/etc/local/access.conf, so that we can install a host specific access
file. This is going to be used to restrict access to certain machines to
trusted users. Such a file could, for example, look like this:

    + : ALL : LOCAL
    + : root (admin) : ALL
    - : ALL : ALL

to allow remote access to root user and the admin group only.

If the target file doesn't exists, which should be the default case,
pam_access doesn't block the authentication.
@donald donald merged commit bb0708c into master Mar 31, 2023
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant