Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some enhancements #48

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

strebitz
Copy link

This pull request ships some enhancements:

  • Add a variable for destination of the verbose SFTP log
  • Add an ability to set user login shell and directory skeleton globally
  • Conditionally disable configuring SSHd
  • Remove additional auth.log when enabling logging - reduces log redundancy.

The additional auth.log which is configured when setting
sftp_enable_logging = true simply duplicates these syslog facilities:
auth,authpriv.* and write the messages to the file
/var/log/sftp/auth.log

This duplicates the logs in multiple files and the later one is not
managed by logrotate.

Closes #1
This is particularly required, if another role is used to configure SSH
on the system.

Closes #4
Allows to set the SFTP user login shell and directory skeleton globally
instead of only per user. The user settings overwrite the global ones.

Closes #3
Pass the destination (file or syslog target / host) for the verbose SFTP
logs as a variable.

The current hard-coded setting -/var/log/sftp/verbose.log remains as
default for the variable.

Closes #2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant