Date: Wed, 29 Mar 2000 23:38:58 +0100 From: Ben Smithurst <ben@scientia.demon.co.uk> To: Bhishan Hemrajani <bhishan@cytosine.dhs.org> Cc: freebsd-questions@freebsd.org Subject: Re: logged in with ssh or telnet? Message-ID: <20000329233858.C50487@strontium.scientia.demon.co.uk> In-Reply-To: <200003292115.NAA39166@cytosine.dhs.org> References: <200003292115.NAA39166@cytosine.dhs.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Bhishan Hemrajani wrote: > How can I tell if a user is logged in via ssh or telnet? Try looking at the parent pid of their login shell (PPID in 'ps -j' output). See if it's telnetd, sshd, or something else. -- Ben Smithurst / ben@scientia.demon.co.uk / PGP: 0x99392F7D To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000329233858.C50487>