Use lastlog in sshrc

This commit is contained in:
Victor LABORIE 2019-01-08 11:11:47 +01:00 committed by Patrick Marchand
parent 43abccd6a4
commit f535b77f93
1 changed files with 1 additions and 3 deletions

4
tpl/sshrc Normal file → Executable file
View File

@ -1,5 +1,3 @@
#!/bin/sh
# lastlog -S isn't available in login package on Debian Jessie (need Debian Stretch or superior)
#/usr/bin/lastlog -Su root
/usr/bin/touch /var/log/lastlog
/usr/bin/lastlog -Su root