Displaying 20 results from an estimated 1000 matches similar to: "Remove duplicate "last" log messages with UseLogin"
2001 Apr 29
2
PATCH: UseLogin fix for 2.9p1 (w/improved last-login time)
Attached is the latest version of my UseLogin patch that makes
"UseLogin true" work on Solaris and UNICOS. As usual, I have provided
configure.in changes that set the appropriate defines for Solaris, but
I have not provided the configure.in changes for UNICOS (since they
would be incomplete, and Wendy is working on this).
This version fixes a problem with the last-login time always
2001 Aug 21
0
Resend: loginrec.c patch
I'm resending this patch just in case it got lost.
The first hunk of the patch fixes a problem with the LOGIN_NEEDS_UTMPX
support in that the date was not being set in the logininfo structure
(causing wrong timestamps in the "last" log).
The second hunk just omits the USE_WTMPX code in the LOGIN_NEEDS_UTMPX
section if USE_UTMPX is defined. This prevents duplicate events in the
2001 Mar 22
0
Solaris UseLogin problem
I was having problems getting the UseLogin option to work
on Solaris.
I would recieve this error:
No utmpx entry. You must exec "login" from the lowest level "shell".
This led me to believe that Solaris login wants a utmpx entry in
order to function. I put together a patch that calls record_login
on Solaris when using the system login. I also noticed that writing
a wtmpx
2001 Jun 21
0
Output of last command is strange on Solaris 2.6/8 (OpenSSH 2.9p2)
Hi.
OS: Solaris 2.6 and 8
OpenSSH: 2.9p2
I found a bug.
Output of last command becomes strange in case of "UseLogin yes"
in sshd_config.
# Two entries are output with one time of login.
strange case:
% last
fuga pts/3 bar.foo.co.jp Thu Jun 21 12:45 - 20:02 (07:16)
fuga pts/3 bar.foo.co.jp Thu Jan 1 09:00 - 12:45 (11494+03:45)
hoge pts/2
2004 Jul 08
1
openssh 3.8.1p1 problem on SCO 5.0.7
On SCO 5.0.7 and openssh 3.8.1p1, two entries are written to /etc/wtmp
and /etc/wtmpx each time a user logs in via ssh. This can be
demonstrated using the last(C) command. Any user connected via ssh will
have two identical login and logout entries.
On SCO, login_write() in loginrec.c calls both wtmp_write_entry() and
wtmpx_write_entry() (USE_WTMP and USE_WTMPX are defined).
wtmp_write_entry()
2001 Apr 04
1
Solaris UseLogin problems
I'm using openssh 2.5.2p2 on Solaris-x86 2.6. I ran into a couple
problems when I set UseLogin to "yes":
The big one seems to have been reported before: login refuses to run
without a utmpx entry. This problem appears to have been caused by
the changes in revision 1.24 of session.c. Before this revision, the
record_login() function was always called, no matter how UseLogin was
2000 May 30
0
utmpx bug in openssh-2.1.0p2 using Solaris 8
Hi,
I've installed openssh-2.1.0p2 on a Solaris 8 host (SPARC). The sshd
corrupts utmpx/wtmpx when a client connects to this machine. Observable
error:
$ who
who: Error --- entry has ut_type of 28265
when maximum is 9
It can be repeated and is attributable to the login done by sshd. Now,
Solaris has only utmpx/wtmpx and not the old utmp/wtmp. It get's worse
as more logins take place
2007 Jan 17
0
login_get_lastlog - nss enviornment - works in shell env, doesn't work when sshd calls it.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello to every one!
Maybe this is not exactly the right place,
but I don't know where to ask, so...
I have a FreeBSD-6-STABLE machine,
setuped with custom nss lib which reads from pgsql database.
It seems to be working just fine except
that I can't login trought ssh, when trying the normal method.
When I do
$>ssh host.com tcsh
I get
2001 Jun 29
1
wtmpx problem on Solaris 8 sparcv9 (64bit) environment
Hello
When I was using OpenSSH-2.9p2 in Solaris 8 sparcv9 (64bit)
environment, I found some trouble that wtmpx has broken.
The size of utmpx structure object becomes larger than 32 bit environment
in sparcv9 environment.Therefore, instead of using utmpx structure object,
using futmpx structure object is better.
In sparcv9 environment, futmpx structure object is used instead of utmpx
structure
2001 Jan 29
1
Solaris wtmpx patch
Hi,
Solaris (tested with 2.6) needs a username in the logout record in the wtmpx
file. Currently openssh (version 2.3.0p1) leaves the username (utmpx.ut_user)
empty in logout records, which leads to conflicting results from the last
command. Example:
# last -5 siegert
siegert pts/186 stikine.ucs.sfu. Mon Jan 15 14:26 still logged in
siegert pts/105 stikine.ucs.sfu. Mon Jan 15
2002 Jul 23
2
Irix UseLogin wtmp/utmp bug
I am using the "UseLogin yes" configuration parameter to call the
/usr/bin/login program on SGI Irix, (we are using Irix version
6.5.13). I do this because the SGI login program is AFS awhere and
checks out a token for you and I do not want to compile the Kerberos
version of sshd, (it is to messy for me to support).
Everything seems to work fine accept the wtmp(x) and utmp(x) files do
2002 Jul 09
0
[Bug 348] New: infinite loop scanning wtmpx
http://bugzilla.mindrot.org/show_bug.cgi?id=348
Summary: infinite loop scanning wtmpx
Product: Portable OpenSSH
Version: -current
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: sshd
AssignedTo: openssh-unix-dev at mindrot.org
ReportedBy: rodney at
2001 Jun 06
1
One more UseLogin tweak
One other thing I noticed in the record_utmp_only() function is that
it wasn't setting the timestamp in the logininfo structure. The
following patch takes care of this:
--- old/loginrec.c Wed Jun 6 11:12:14 2001
+++ loginrec.c Wed Jun 6 11:13:42 2001
@@ -448,6 +448,8 @@
login_utmp_only(struct logininfo *li)
{
li->type = LTYPE_LOGIN;
+ /* set the timestamp */
+
2002 Aug 02
0
[Bug 378] New: sshd does not update utmp/utmpx records correctly when "UseLogin" feature on
http://bugzilla.mindrot.org/show_bug.cgi?id=378
Summary: sshd does not update utmp/utmpx
records correctly when "UseLogin" feature on
Product: Portable OpenSSH
Version: -current
Platform: MIPS
OS/Version: IRIX
Status: NEW
Severity: normal
Priority: P2
2000 Apr 21
0
OpenSSH 1.2.3 on AIX 4.3.3
Hmph. I wish I had checked the list before I wasted a half-day on this.
Yes, the problem exists under AIX (mine's 4.3.1). Here's the patch I
came up with, which may be a little more straightforward than the
original. I confirmed that it works under Solaris 2.[67] too.
Don't forget to run autoconf.
--- bsd-login.c.orig Sat Dec 25 18:21:48 1999
+++ bsd-login.c Thu Apr 20 18:26:41
2015 Jan 20
0
[ANNOUNCE] sessreg 1.1.0
sessreg is used by display managers such as xdm and gdm to record X sessions
in utmp, wtmp, and lastlog files.
This release attempts to clean up some inconsistencies around the handling
of the various files.
Long long ago, Unix systems had a utmp file to record who was currently
logged in, and a wtmp file to record login history.
Long ago, extended versions of the files & APIs for them were
2002 Oct 24
1
[SUMMARY] Problems with 'last' (when OpenSSH compiled 64-bit)
Problem:
'last' output is incorrect, /var/adm/wtmpx is corrupted. Example:
foster pts/1 Wed Dec 31 16:00 still logged in
foster pts/3 dim Thu Aug 1 14:34 still logged in
Solution: (workaround)
This turned out to be an OpenSSH problem! If OpenSSH (only tested
versions 3.4p1 and 3.5p1) is compiled 64-bit it corrupts the
/var/adm/wtmpx
2002 Jul 09
0
[Bug 347] New: wrong macro used
http://bugzilla.mindrot.org/show_bug.cgi?id=347
Summary: wrong macro used
Product: Portable OpenSSH
Version: -current
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: sshd
AssignedTo: openssh-unix-dev at mindrot.org
ReportedBy: rodney at bond.net
This
2006 Feb 04
2
OpenSSH 4.3P1: incorrect wtmpx entries
Hi,
I just installed OpenSSH 4.3p1 on our Solaris 8 machines and 'last' now
shows wtmpx entries for ssh logins like
zierke pts/4 Thu Jan 1 01:00 still logged in
zierke pts/3 Thu Jan 1 01:00 - 10:56 (13183+09:
instead of e.g.
zierke pts/3 rzdspc10.informa Sat Feb 4 10:54 - 10:54 (00:00)
zierke pts/2
2000 Sep 13
0
Solaris wtmp/wtmpx handling
It appears to be a pervasive assumption in the Portable OpenSSH code
that wtmp and wtmpx records for the end of a session do not need to
include the user name or hostname. Unfortunately Solaris appears not to
go along with that assumption; the Solaris "last" command shows all
login sessions initiated by OpenSSH as never terminating, or sometimes
terminating with the user's next