search for: ut_pid

Displaying 20 results from an estimated 55 matches for "ut_pid".

Did you mean: put_pid
1999 Dec 27
1
More patches to fix NetBSD compiling
...ough they may also help some other UNIXes as well). Thanks, David --- configure.in.orig Mon Dec 27 09:09:05 1999 +++ configure.in Mon Dec 27 09:13:39 1999 @@ -264,6 +264,16 @@ [AC_DEFINE(HAVE_SYSLEN_IN_UTMPX) AC_MSG_RESULT(yes); ], [AC_MSG_RESULT(no)] ) +AC_MSG_CHECKING([whether utmp.h has ut_pid field]) +AC_EGREP_HEADER(ut_pid, utmp.h, + [AC_DEFINE(HAVE_PID_IN_UTMP) AC_MSG_RESULT(yes); ], + [AC_MSG_RESULT(no)] +) +AC_MSG_CHECKING([whether utmp.h has ut_type field]) +AC_EGREP_HEADER(ut_type, utmp.h, + [AC_DEFINE(HAVE_TYPE_IN_UTMP) AC_MSG_RESULT(yes); ], + [AC_MSG_RESULT(no)] +) dnl L...
2005 May 22
2
Killing ssshd seassions
...ist to ask my question. I'm writting some application(on Linux) wich relys on sshd, so I thought there is nothing wrong in posting my mail here. The aplication i'm writting should, at some point, kill the user from his terminal line. To achieve this I read the users utmp entry and kill the ut_pid in it.. It works fine if the user is not loged trought ssh. If the user has a sshd seassion, killing the ut_pid doesnt work though. I've done some workaround and got to this point : ps -aux root 26621 0.0 0.3 5940 1644 ? S 21:33 0:00 sshd: janez [priv] <- the pid in utmp janez 2356 0.0...
2000 Mar 20
2
samba-2.0.7pre2 compilation on SunOS 4.1.4 with --with-utmp
...ter ./configure --with-utmp the compilation fails... Andrew ... smbd/connection.c: In function `utmp_fill': smbd/connection.c:328: structure has no member named `ut_user' smbd/connection.c:329: structure has no member named `ut_id' smbd/connection.c:332: structure has no member named `ut_pid' smbd/connection.c: In function `utmp_yield': smbd/connection.c:400: structure has no member named `ut_type' smbd/connection.c:400: `DEAD_PROCESS' undeclared (first use in this function) smbd/connection.c:400: (Each undeclared identifier is reported only once smbd/connection.c:400:...
2001 Jun 29
1
wtmpx problem on Solaris 8 sparcv9 (64bit) environment
...x_to_futmpx(struct utmpx *utx, struct futmpx *futx) +{ + strncpy(futx->ut_user, utx->ut_user, sizeof(futx->ut_user)); + strncpy(futx->ut_id, utx->ut_id, sizeof(futx->ut_id)); + strncpy(futx->ut_line, utx->ut_line, sizeof(futx->ut_line)); + futx->ut_pid = (pid32_t)utx->ut_pid; + futx->ut_type = (int16_t)utx->ut_type; + futx->ut_exit.e_termination = (int16_t)utx->ut_exit.e_termination; + futx->ut_exit.e_exit = (int16_t)utx->ut_exit.e_exit; + futx->ut_tv.tv_sec...
2000 Jul 01
0
Problem with cleaning utmp entry
...ibc2 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_id field in utmp.h... yes checking for ut_addr field in utmp.h... yes checking for ut_addr field in utmpx.h... no checking for ut_a...
2001 Nov 20
0
PATCH: Fixing last/utmpx for Solaris
...tems Programmer/Analyst The MITRE Corporation -------------- next part -------------- --- loginrec.c~ Mon Oct 29 21:50:40 2001 +++ loginrec.c Mon Nov 19 12:08:34 2001 @@ -701,6 +701,7 @@ line_stripname(utx->ut_line, li->line, sizeof(utx->ut_line)); set_utmpx_time(li, utx); utx->ut_pid = li->pid; + strncpy(utx->ut_name, li->username, MIN_SIZEOF(utx->ut_name, 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(...
2000 Jan 18
1
Error when compiling for Solaris7
...ror 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... yes checking whether utmp.h has ut_addr field... no checking whether utmpx.h has ut_addr field... no checking whether utmp.h has ut_addr_v6 field......
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
2002 Jan 29
0
[Bug 84] New: last command provides incorrect information on Solaris 8
...ate November, in case this comes up as a duplicate of a known issue. --- loginrec.c~ Mon Oct 29 21:50:40 2001 +++ loginrec.c Tue Jan 29 10:56:59 2002 @@ -701,6 +701,7 @@ line_stripname(utx->ut_line, li->line, sizeof(utx->ut_line)); set_utmpx_time(li, utx); utx->ut_pid = li->pid; + strncpy(utx->ut_name, li->username, MIN_SIZEOF(utx->ut_name, li->username)); if (li->type == LTYPE_LOGOUT) return; @@ -711,7 +712,6 @@ */ /* strncpy(): Don't necessarily want null termination */ - strncpy(ut...
2009 Dec 25
2
[openssh-portable] utmpx and ut_name
...ust #define ut_name to ut_user to keep things happy, but I'd rather not put this obfuscation in any new implementation. I've noticed OpenSSH also uses ut_name, even when using utmpx. I've come up with the following patch: %%% --- loginrec.c +++ loginrec.c @@ -758,8 +758,8 @@ utx->ut_pid = li->pid; /* strncpy(): Don't necessarily want null termination */ - strncpy(utx->ut_name, li->username, - MIN_SIZEOF(utx->ut_name, li->username)); + strncpy(utx->ut_user, li->username, + MIN_SIZEOF(utx->ut_user, li->username)); if (li->type == LTY...
2001 Nov 15
1
Patch for "last" providing incorrect information on Solaris 8
...Programmer/Analyst The MITRE Corporation -------------- next part -------------- --- loginrec.c.orig Thu Nov 15 09:35:02 2001 +++ loginrec.c Thu Nov 15 09:38:01 2001 @@ -701,6 +701,7 @@ line_stripname(utx->ut_line, li->line, sizeof(utx->ut_line)); set_utmpx_time(li, utx); utx->ut_pid = li->pid; + strncpy(utx->ut_name, li->username, MIN_SIZEOF(utx->ut_name, 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(...
2001 Jan 29
1
Solaris wtmpx patch
...name); login_logout(li); login_free_entry(li); } diff -u -r openssh-2.3.0p1.orig/loginrec.c openssh-2.3.0p1/loginrec.c --- openssh-2.3.0p1.orig/loginrec.c Sat Sep 30 03:34:44 2000 +++ openssh-2.3.0p1/loginrec.c Tue Jan 23 18:24:25 2001 @@ -674,6 +674,9 @@ set_utmpx_time(li, utx); utx->ut_pid = li->pid; + /* strncpy(): Don't necessarily want null termination */ + strncpy(utx->ut_name, li->username, MIN_SIZEOF(utx->ut_name, li->username)); + if (li->type == LTYPE_LOGOUT) return; @@ -682,8 +685,6 @@ * for logouts. */ - /* strncpy(): Don't necess...
2000 Jun 14
1
OpenSSH 2.1.1p1 on SCO Unixware 7.1.0
...checking for struct sockaddr_storage... no checking for struct sockaddr_in6... yes checking for struct in6_addr... yes checking for struct addrinfo... yes checking for ut_host field in utmp.h... no checking for ut_host field in utmpx.h... yes checking for syslen field in utmpx.h... yes 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... yes checking for ut_tv field in utmp.h... no checking for ut_id field in utmp.h... yes checking for ut_addr field in utmp.h... no checking for ut_addr field in utmpx.h... no checking for ut_a...
2000 Jul 03
0
FreeBSD 3.5-STABLE
...cking for struct sockaddr_storage... no checking for struct sockaddr_in6... no checking for struct in6_addr... no checking for struct addrinfo... no 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... no checking for ut_type field in utmp.h... no checking for ut_type field in utmpx.h... no checking for ut_tv field in utmp.h... no checking for ut_id field in utmp.h... no checking for ut_id field in utmpx.h... no checking for ut_addr field in utmp.h... no checking for ut_...
1999 Dec 24
5
ANNOUNCE: openssh-1.2.1pre20
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 openssh-1.2.1pre20 has been released at: http://violet.ibs.com.au/openssh/files/ This release integrates more of Andre Lucas' portability patch, Ben Taylor's utmpx patch and some cleanups and bugfixes of my own. The auth-passwd failures should be fixed, as should lastlog support on NetBSD. Since Andre Lucas' patch included platform
1999 Dec 24
5
ANNOUNCE: openssh-1.2.1pre20
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 openssh-1.2.1pre20 has been released at: http://violet.ibs.com.au/openssh/files/ This release integrates more of Andre Lucas' portability patch, Ben Taylor's utmpx patch and some cleanups and bugfixes of my own. The auth-passwd failures should be fixed, as should lastlog support on NetBSD. Since Andre Lucas' patch included platform
2000 May 26
4
openssh-2.1.0p2 ans Solaris 8
I have some troubles with subj and proper utmpx/wtmpx functionality. After successfull ssh connect to Solaris 8 box, I run #w 11:59am up 13:45, 1 user, load average: 0.00, 0.01, 0.02 User tty login@ idle JCPU PCPU what root console 11:43am 9 bash # Record about my pts/1 login is absent. Next command I run from Solaris 8 console
2002 Dec 25
1
Trouble installing samba
...gt; checking for ut_name in utmp... yes > checking for ut_user in utmp... yes > checking for ut_id in utmp... yes > checking for ut_host in utmp... yes > checking for ut_time in utmp... yes > checking for ut_tv in utmp... yes > checking for ut_type in utmp... yes > checking for ut_pid in utmp... yes > checking for ut_exit in utmp... yes > checking for ut_addr in utmp... yes > checking for ut_syslen in utmpx... no > checking for Linux kernel oplocks... no > checking for kernel change notify support... no > checking for kernel share modes... no > checking for...
2001 Oct 26
2
problems building on solaris 2.6
...rage... no checking for struct sockaddr_in6... no checking for struct in6_addr... no checking for struct addrinfo... no checking for struct timeval... yes checking for ut_host field in utmp.h... no checking for ut_host field in utmpx.h... yes checking for syslen field in utmpx.h... yes 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... yes checking for ut_tv field in utmp.h... no checking for ut_id field in utmp.h... yes checking for ut_id field in utmpx.h... yes checking for ut_addr field in utmp.h... no checking for ut_ad...
2001 Nov 07
1
Configuring 2.2.2 (or 2.0.7) on Digital Unix 4.0f fails - "No locking"
...wtmpx... no checking for getutmpx... no checking for ut_name in utmp... yes checking for ut_user in utmp... yes checking for ut_id in utmp... yes checking for ut_host in utmp... yes checking for ut_time in utmp... yes checking for ut_tv in utmp... no checking for ut_type in utmp... yes checking for ut_pid in utmp... yes checking for ut_exit in utmp... yes checking for ut_addr in utmp... no checking whether pututline returns pointer... yes checking for ut_syslen in utmpx... no checking for Linux kernel oplocks... no checking for kernel change notify support... no checking for kernel share modes... ye...