lastlog doesn't support "-S" on Debian 8 #28

Closed
opened 2019-08-29 13:23:20 +02:00 by jlecour · 2 comments
Owner
ssh -q -o 'ConnectTimeout 30' node0.backup2.evolix.net -p 2634 -t exit
/usr/bin/lastlog: invalid option -- 'S'
Usage: lastlog [options]

Options:
  -b, --before DAYS             print only lastlog records older than DAYS
  -h, --help                    display this help message and exit
  -R, --root CHROOT_DIR         directory to chroot into
  -t, --time DAYS               print only lastlog records more recent than DAYS
  -u, --user LOGIN              print lastlog record of the specified LOGIN

This command is from src/branch/master/tpl/sshrc :

#!/bin/sh

/usr/bin/lastlog -Su root
``` ssh -q -o 'ConnectTimeout 30' node0.backup2.evolix.net -p 2634 -t exit /usr/bin/lastlog: invalid option -- 'S' Usage: lastlog [options] Options: -b, --before DAYS print only lastlog records older than DAYS -h, --help display this help message and exit -R, --root CHROOT_DIR directory to chroot into -t, --time DAYS print only lastlog records more recent than DAYS -u, --user LOGIN print lastlog record of the specified LOGIN ``` This command is from `src/branch/master/tpl/sshrc` : ``` #!/bin/sh /usr/bin/lastlog -Su root ```
Author
Owner

Here is an excerpt from the Debian 9 man :

       -S, --set
           Set lastlog record of a user to the current time.
           This option can be used only together with -u
           (--user)).
Here is an excerpt from the Debian 9 man : ``` -S, --set Set lastlog record of a user to the current time. This option can be used only together with -u (--user)). ```

Debian Jessie support has been dropped in version 2.0.0.

For temporary fix it, edit /backup/jails/XXX/etc/ssh/sshrc and replace lastlog command:

#!/bin/sh

#/usr/bin/lastlog -Su root
touch /var/log/lastlog

For permanent fix upgrade to Debian Stretch or do not upgrade bkctld to 2.0.0.

Debian Jessie support has been dropped in version 2.0.0. For temporary fix it, edit **/backup/jails/XXX/etc/ssh/sshrc** and replace lastlog command: ``` #!/bin/sh #/usr/bin/lastlog -Su root touch /var/log/lastlog ``` For permanent fix upgrade to Debian Stretch or do not upgrade bkctld to 2.0.0.
Ghost closed this issue 2020-02-26 16:06:55 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: evolix/evobackup#28
No description provided.