sshd verbose loggin on sftpd

by Denis Valdenaire aka Joe Linux   Last Updated June 13, 2019 09:00 AM

I need a specific PAM configuration for my sftpd service, so i copied the sshd executable and renamed it sftpd.

Then i set up a specific configuration in /etc/pam.d/sftpd to authenticate the users against LDAP, while the regular users are authenticated as usual.

Everything is fine, but the problem is, the "new" sftpd daemon, configured and launched as a systemd service on RedHat EL 7.4, don't trace actions (opendir, chdir, and so on).

The configuration is the same as the regular sshd, in particular this line :

Subsystem       sftp    internal-sftp -l VERBOSE

But nothing comes in auth.log.

Is there some curious side effect i should be aware of if the sshd daemon runs under a different name ?

Thanks in advance for any help

Tags : ssh logging sftp


Related Questions


Updated August 03, 2015 16:00 PM

Updated February 06, 2017 14:00 PM

Updated July 15, 2015 17:00 PM

Updated March 26, 2017 09:00 AM

Updated February 28, 2019 11:00 AM