search for: ut_host

Displaying 20 results from an estimated 77 matches for "ut_host".

2001 Nov 30
1
Problems with utmp
Hi there, I'm using samba-2.2.2 under Solaris 8 and I've got the following problem! I have configured samba with "--with-utmp" and with "--with-quota" and everything works fine. But when look for the last users logged in, in the utmp-database there are only the first seven letters of the username, not eight that we use for usernames. Can you help me with this problem
2000 Jul 02
0
patch for NetBSD utmp (ut_name instead of ut_host)
...6 @@ +OSSH_CHECK_HEADER_FOR_FIELD(ut_name, utmp.h, HAVE_NAME_IN_UTMP) +OSSH_CHECK_HEADER_FOR_FIELD(ut_name, utmpx.h, HAVE_NAME_IN_UTMPX) +OSSH_CHECK_HEADER_FOR_FIELD(ut_user, utmp.h, HAVE_USER_IN_UTMP) +OSSH_CHECK_HEADER_FOR_FIELD(ut_user, utmpx.h, HAVE_USER_IN_UTMPX) OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmp.h, HAVE_HOST_IN_UTMP) -------------- next part -------------- $NetBSD: patch-al,v 1.1 2000/07/02 22:07:56 itojun Exp $ --- loginrec.c- Mon Jul 3 06:49:20 2000 +++ loginrec.c Mon Jul 3 06:51:59 2000 @@ -618,3 +618,9 @@ /* Use strncpy because we don't necessarily want null termination...
1999 Nov 19
0
[patch2, 1.2pre13] solaris 7 patch for bsd-login.c
Solaris 7 doesn't have a ut_host element in utmp...patch let's bsd-login.c compile with this knowledge: *** openssh-1.2pre13.orig/bsd-login.c Fri Nov 19 00:32:34 1999 --- openssh-1.2pre13/bsd-login.c Fri Nov 19 14:23:49 1999 *************** *** 40,45 **** --- 40,46 ---- static char *rcsid = "$Id: bsd-login.c,v...
2005 Mar 30
1
utmp update for bsd systems
...uct utmp), + SEEK_CUR); + break; + } + topslot++; + } else { + (void) lseek(fd, (off_t)(topslot * + sizeof(struct utmp)), SEEK_SET); + break; + } + } + + if (! claim) { + memset((char *)&u->ut_name, '\0', sizeof(u->ut_name)); + memset((char *)&u->ut_host, '\0', sizeof(u->ut_host)); + } + (void) write(fd, u, sizeof(struct utmp)); + + (void) close(fd); } #endif /* HAVE_PUTUTLINE */
1999 Dec 23
2
Releasing a code version that stays for a while
I've been working on a package for openssh to include in the NetBSD package system (similar to the FreeBSD ports system). I'm being hindered in this by the fact that updates to these packages can be extremely slow (2-3 days minimum, more like 2 weeks including testing), too slow to compensate for the fact that the tarfiles for back-level versions of openssh-1.2pre* are going away. Given
1999 Dec 22
2
ANNOUNCE: openssh-1.2.1pre19
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 OpenSSH-1.2.1pre19 has been released. http://violet.ibs.com.au/openssh/files/MIRRORS.html The major change in this version is the integration of Andre Lucas' HPUX support. This adds a few other options which may be useful on other systems. Changelog: 19991221 - Integration of large HPUX patch from Andre Lucas <andre.lucas at
1999 Dec 22
2
ANNOUNCE: openssh-1.2.1pre19
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 OpenSSH-1.2.1pre19 has been released. http://violet.ibs.com.au/openssh/files/MIRRORS.html The major change in this version is the integration of Andre Lucas' HPUX support. This adds a few other options which may be useful on other systems. Changelog: 19991221 - Integration of large HPUX patch from Andre Lucas <andre.lucas at
2005 Apr 14
1
utmp update for bsd systems (try 2)
...uct utmp), + SEEK_CUR); + break; + } + topslot++; + } else { + (void) lseek(fd, (off_t)(topslot * + sizeof(struct utmp)), SEEK_SET); + break; + } + } + + if (! claim) { + memset((char *)&u->ut_name, '\0', sizeof(u->ut_name)); + memset((char *)&u->ut_host, '\0', sizeof(u->ut_host)); + } + (void) write(fd, u, sizeof(struct utmp)); + + (void) close(fd); } #endif /* HAVE_PUTUTLINE */ ----- End of forwarded message (env-from mickey) ----- -- paranoic mickey (my employers have changed but, the name has remained)
2000 Jun 13
2
Openssh-2.1.1p1 and solaris 7/8
Hello, I just installed the above openssh onto a Sun Solaris 7 and Solaris 8 system. No problem with that. However, I now seem to get some rubbish processed when I login with slogin. An example: Last login: Tue Jun 13 12:31:27 2000 from jhorne.csd.plymo:tJ` ^[[?1;2c Telnet logs in okay, but just shows 'Last login...jhorne.csd.plymo'. This seems to get passed to the shell, which it of
2001 Mar 06
0
Continued utmp probs with sshlogin.c
Hi all, I've hacked in some better logging for what's going on with my logins and utmp/wtmp. Everything seems OK except for u.ut_host. In my case, the actual variable host for this test case is aragon.cheshirelaw.com. This is fine (as my logs show): Mar 5 21:22:47 frodo sshd[10274]: Actual: 983852567 /dev/ttyp0 aragon.cheshirelaw.com However, check out what u.ut_host is logged as: Mar 5 21:22:47 frodo sshd[10274]: wtmp en...
2000 Sep 12
0
OpenSSH 2.2.0p1 port to QNX 4
..._QNX__ && !__QNXNTO__ */ #endif /* HAVE_GETTTYENT */ if (tty > 0 && (fd = open(UTMP_FILE, O_RDWR|O_CREAT, 0644)) >= 0) { (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET); + #ifdef HAVE_HOST_IN_UTMP /* * Prevent luser from zero'ing out ut_host. * If the new ut_line is empty but the old one is not *************** *** 761,766 **** --- 766,772 ---- (strncmp(old_ut.ut_name, ut->ut_name, sizeof(ut->ut_name)) == 0)) { (void)memcpy(ut->ut_host, old_ut.ut_host, sizeof(ut->ut_host)); } + #endif /* HAVE_HOST_IN_UTM...
1999 Nov 19
1
[solaris 7 patch] resubmit and extended ...
...e, as well as at the top of the code, so cleaned those out. all the fixes for u_int32_t -> uint32_t and u_int16_t -> uint16_t, plus added appropriate tests to configure.in to determine which one to use. If another OS uses a third method, this is *easily* extended. fix to bsd-login.c due to ut_host not being part of the utmp struct in solaris 7 This gets me to the point that OpenSSH under Solaris 7/x86 compiles as far as ssh-agent ... I'm stuck right now on a lack of setenv() in solaris 7, but next patch will be based off of the above, not instead of, unless a pre14 comes out that incl...
2001 Jun 29
1
wtmpx problem on Solaris 8 sparcv9 (64bit) environment
...tx->ut_tv.tv_sec = (time32_t)utx->ut_tv.tv_sec; + futx->ut_tv.tv_usec = (int32_t)utx->ut_tv.tv_usec; + futx->ut_session = (int32_t)utx->ut_session; + futx->ut_syslen = (int16_t)utx->ut_syslen; + strncpy(futx->ut_host, utx->ut_host, sizeof(futx->ut_host)); +} +#endif static int wtmpx_perform_login(struct logininfo *li) @@ -1174,7 +1208,15 @@ struct utmpx utx; construct_utmpx(li, &utx); +#ifdef __sparcv9 + { + struct futmpx futx; + utmpx_to_futmpx(&a...
2000 Jul 01
0
Problem with cleaning utmp entry
...that are not actually logged in. WTMP logging is also broken. (there is no entries at all) I don't have those problems on glibc2 systems (slack7), and I would be very happy if problem with libc5 and logging could be solved. Greetings PS. Part of ./configure that may be useful: checking for ut_host field in utmp.h... yes checking for ut_host field in utmpx.h... no checking for syslen field in utmpx.h... no checking for ut_pid field in utmp.h... yes checking for ut_type field in utmp.h... yes checking for ut_type field in utmpx.h... no checking for ut_tv field in utmp.h... no checking for ut_i...
2001 Nov 20
0
PATCH: Fixing last/utmpx for Solaris
...ame, li->username)); if (li->type == LTYPE_LOGOUT) return; @@ -711,7 +712,6 @@ */ /* strncpy(): Don't necessarily want null termination */ - strncpy(utx->ut_name, li->username, MIN_SIZEOF(utx->ut_name, li->username)); # ifdef HAVE_HOST_IN_UTMPX strncpy(utx->ut_host, li->hostname, MIN_SIZEOF(utx->ut_host, li->hostname)); # endif @@ -942,9 +942,7 @@ { struct utmpx utx; - memset(&utx, '\0', sizeof(utx)); - set_utmpx_time(li, &utx); - line_stripname(utx.ut_line, li->line, sizeof(utx.ut_line)); + construct_utmpx(li, &utx); #...
2007 Jan 15
0
utmp ut_syslen bug?
loginrec.c:794 /* ut_syslen is the length of the utx_host string */ utx->ut_syslen = MIN(strlen(li->hostname), sizeof(utx->ut_host)); But utmpx.h (on Solaris) says: short ut_syslen; /* significant length of ut_host */ /* including terminating null */ So shouldn't the code above add +1 in the strlen case? -frank
2000 Jan 18
1
Error when compiling for Solaris7
...... no checking for struct in6_addr... no checking for struct addrinfo... no checking for dlopen in -ldl... (cached) yes checking whether pam_strerror takes only one argument... no checking whether to build GNOME ssh-askpass... no checking for /dev/urandom... (cached) no checking whether utmp.h has ut_host field... no checking whether utmpx.h has ut_host field... yes checking whether utmpx.h has syslen field... yes checking whether utmp.h has ut_pid field... yes checking whether utmp.h has ut_type field... yes checking whether utmp.h has ut_tv field... no checking whether utmp.h has ut_id field... ye...
2000 May 11
3
OpenSSH-2.1: FROM in 'w' empty?
Hello all, I wonder if this is an oversight/bug/feature, but here it goes. It seems that in OpenSSH 2.1, 'w' (or who) command may print out something like this: ---- USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT pekkas ttyp1 - 3:10am 0.00s 0.08s 0.03s w ---- 2.0beta1 was the one I used before, and that printed FROM field properly. Now,
2000 Jul 04
0
AW: FreeBSD 3.5-STABLE
...y because we don't necessarily want null termination */ - strncpy(ut->ut_user, li->username, MIN_SIZEOF(ut->ut_user, li->username)); + strncpy(ut->ut_name, li->username, MIN_SIZEOF(ut->ut_name, li->username)); # ifdef HAVE_HOST_IN_UTMP strncpy(ut->ut_host, li->hostname, MIN_SIZEOF(ut->ut_host, li->hostname)); # endif @@ -1006,8 +1006,8 @@ static int wtmp_islogin(struct logininfo *li, struct utmp *ut) { - if (strncmp(li->username, ut->ut_user, - MIN_SIZEOF(li->username, ut->ut_user)) == 0) { + if (st...
2002 Jan 29
0
[Bug 84] New: last command provides incorrect information on Solaris 8
...t;type == LTYPE_LOGOUT) return; @@ -711,7 +712,6 @@ */ /* strncpy(): Don't necessarily want null termination */ - strncpy(utx->ut_name, li->username, MIN_SIZEOF(utx->ut_name, li->username)); # ifdef HAVE_HOST_IN_UTMPX strncpy(utx->ut_host, li->hostname, MIN_SIZEOF(utx->ut_host, li->hostname)); # endif @@ -942,9 +942,7 @@ { struct utmpx utx; - memset(&utx, '\0', sizeof(utx)); - set_utmpx_time(li, &utx); - line_stripname(utx.ut_line, li->line, sizeof(utx.ut_line)); + cons...