Re: Sshd and utmp
Hi,
I believe that the behavior of ssh not adding a utmp entry is correct.
>From what I recall, doing an rsh didn't add a utmp entry either. This
seems to make sense since ssh technically doesn't do a login if you run a
remote command over a secure channel. If you wish to login, use the
slogin command (which is really just symbolic link to ssh) or ssh without
a command to run. Using slogin or ssh without a command to run causes a
real login to occur hence causing the user to appear in utmp.
For example, doing a:
ssh -l user host command
doesn't add a utmp entry because a command is being run, not a login.
Doing a:
xterm -e ssh -l user host
does add a utmp entry since this no command is being run which causes a
login to occur. Also, as I said above, a:
ssh -l user host
or
slogin -l user host
adds a utmp entry upon login, too.
utmp's work fine for me on my Debian, RedHat, Digital Unix, Solaris and
SunOS systems. :)
-Ossama
______________________________________________________________________
Ossama Othman <othman@astrosun.tn.cornell.edu>
--- PGP Keys ---
Public: http://astrosun.tn.cornell.edu/staff/othman/OO_PUBLIC.asc
REVOKED: http://astrosun.tn.cornell.edu/staff/othman/OO_REVOKED.asc
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: