[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ssh chroot: auth.log: weid hostnames



Hello List,

I have set up two chroot/jail environments for ssh.
I noticed some oddities in the messages print in auth.log after the chroot:

--------------------------------------------------------------------------------------------------------------------------------------------
Apr 29 20:05:41 HHHH sshd[5660]: Changed root directory to "/var/chroot/ZZZZ/"
Apr 29 20:05:41 /lib/x86_64-linux-gnu/libnss_compat.so.2 sshd[5660]: Starting session: shell on pts/4 for aptuser from xx.xx.xx.xx port yyyy
Apr 29 20:06:59 /lib/x86_64-linux-gnu/libnss_compat.so.2 sshd[5660]: Starting session: command for aptuser from xx.xx.xx.xx port yyyy
--------------------------------------------------------------------------------------------------------------------------------------------

Namely, after the directory change, the hostname prints ``/lib/x86_64-linux-gnu/libnss_compat.so.2''.
On my second jail, no hostname is printed. My jails are similar but on different boxes (VPS in two different centers).
They are also minimal. Whatever, I guess that this behaviour is not wanted, but I cannot say whether it is a bug or
an issue caused by the minal set.

Any idea ?

Thanks,
Jerome


Reply to: