search for: user_process

Displaying 14 results from an estimated 14 matches for "user_process".

2002 Aug 02
0
[Bug 378] New: sshd does not update utmp/utmpx records correctly when "UseLogin" feature on
...fine EMPTY 0 #define RUN_LVL 1 #define BOOT_TIME 2 #define OLD_TIME 3 #define NEW_TIME 4 #define INIT_PROCESS 5 /* Process spawned by "init" */ #define LOGIN_PROCESS 6 /* A "getty" process waiting for login */ #define USER_PROCESS 7 /* A user process */ #define DEAD_PROCESS 8 #define ACCOUNTING 9 sshd is supposed to put the records, both utmp and utmpx, into the USER_PROCESS state. In the case where you do not use the "UseLogin yes", only one login/passwd is issued, it works properly, i.e....
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
2000 May 12
0
SunOS 4.x port
...if /* defined(HAVE_GETPWANAM) && !defined(DISABLE_SHADOW) */ if (pw_password[0] != '\0') salt = pw_password; --- bsd-login.c.DIST Mon May 1 06:53:53 2000 +++ bsd-login.c Fri May 5 12:30:48 2000 @@ -60,6 +60,7 @@ #include <stdio.h> #include <string.h> +#ifdef USER_PROCESS /* * find first matching slot in utmp, or "-1" for none * @@ -93,6 +94,13 @@ endutent(); return(-1); } +#else +int find_tty_slot( utp ) +struct utmp * utp; +{ + return(ttyslot()); +} +#endif #if defined(HAVE_UTMPX_H) && defined(USE_UTMPX) void @@ -127,13 +135,16 @@...
2009 Mar 12
0
More on close_cnum(1284)
...amba/source/lib/tallocmsg.c:register_msg_pool_usage(105) Registered MSG_REQ_POOL_USAGE I've got the highest information content selected for the logging, but I see no reason for the server to restart. I check the system log at the same time and see: Mar 12 09:13:01 newyork sshd[23806]: USER_PROCESS: 23821 ttys000 Mar 12 09:13:33 newyork servermgrd[47]: servermgr_sharing: Failed to remove the Spotlight store at /Volumes/EncodeDisk6 (error: -1) Mar 12 09:13:33 newyork /sbin/nfsd[50]: Too many groups for root Mar 12 09:13:34: --- last message repeated 6 times --- Mar 12 09:13:34 newyork com.ap...
2000 Jul 04
0
AW: FreeBSD 3.5-STABLE
...strncmp(li->username, ut->ut_user, - MIN_SIZEOF(li->username, ut->ut_user)) == 0) { + if (strncmp(li->username, ut->ut_name, + MIN_SIZEOF(li->username, ut->ut_name)) == 0) { # ifdef HAVE_TYPE_IN_UTMP if (ut->ut_type & USER_PROCESS) return 1; @@ -1161,7 +1161,7 @@ static int wtmpx_islogin(struct logininfo *li, struct utmpx *utx) { - if ( strncmp(li->username, utx->ut_user, + if ( strncmp(li->username, utx->ut_name, MIN_SIZEOF(li->username, utx->ut_user))...
2000 Mar 20
2
samba-2.0.7pre2 compilation on SunOS 4.1.4 with --with-utmp
...function it appears in.) smbd/connection.c:401: structure has no member named `ut_exit' smbd/connection.c:402: structure has no member named `ut_exit' smbd/connection.c: In function `utmp_claim': smbd/connection.c:435: structure has no member named `ut_type' smbd/connection.c:435: `USER_PROCESS' undeclared (first use in this function) *** Error code 1 make: Fatal error: Command failed for target `smbd/connection.o' >
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
2010 Jan 13
1
[Patch] Make OpenSSH work with FreeBSD's utmpx implementation
...as opposed to utmp which is used right now. Unfortunately wtmpx and lastlog handling isn't standardized at all, which is why we took the liberty to integrate all these databases into a compact API, where setutxdb() can be used to switch to a different database and getutxuser() to search for a USER_PROCESS matching a certain user. In addition, we don't define UTMPX_FILE, because we don't want to allow applications to interact with the database files directly. This definition seems to be required by OpenSSH, even though it is not used in a sensible way. The attached patch makes OpenSSH from...
2009 Dec 25
2
[openssh-portable] utmpx and ut_name
...*li, struct utmpx *utx) { - if (strncmp(li->username, utx->ut_name, - MIN_SIZEOF(li->username, utx->ut_name)) == 0 ) { + if (strncmp(li->username, utx->ut_user, + MIN_SIZEOF(li->username, utx->ut_user)) == 0 ) { # ifdef HAVE_TYPE_IN_UTMPX if (utx->ut_type == USER_PROCESS) return (1); %%% It changes all uses of ut_name on utmpx structures to ut_user. Any chance this can go into CVS? Merry christmas, -- Ed Schouten <ed at 80386.nl> WWW: http://80386.nl/ [1] http://www.opengroup.org/onlinepubs/9699919799/basedefs/utmpx.h.html -------------- next part -...
1999 Dec 27
1
More patches to fix NetBSD compiling
..., sizeof(u)); strncpy(u.ut_line, ttyname + 5, sizeof(u.ut_line)); +#if defined(HAVE_PID_IN_UTMP) u.ut_pid = (pid_t)pid; +#endif /* HAVE_PID_IN_UTMP */ u.ut_time = time(NULL); strncpy(u.ut_name, user, sizeof(u.ut_name)); +#if defined(HAVE_TYPE_IN_UTMP) u.ut_type = (uid == -1)?DEAD_PROCESS:USER_PROCESS; +#endif /* HAVE_TYPE_IN_UTMP */ #if defined(HAVE_HOST_IN_UTMP) strncpy(u.ut_host, host, sizeof(u.ut_host)); #endif
2001 Feb 08
0
openssh2.3.0p1 and /etc/limits
...amp; ml_orig == *endptr) /* no chars read */ + return 0; + + if (limit == 0) /* maximum 0 logins ? */ { + syslog(LOG_WARNING, "No logins allowed for `%s'\n", name); + return LOGIN_ERROR_LOGIN; + } + + setutent(); + count = 0; + while ((ut = getutent())) { +// if (ut->ut_type != USER_PROCESS) +// continue; + if (ut->ut_user[0] == '\0') + continue; + if (strncmp(name, ut->ut_user, sizeof(ut->ut_user)) != 0) + continue; + if (++count > limit) + break; + } + endutent(); + /* + * This is called after setutmp(), so the number of logins counted + * includes t...
2000 Jan 27
1
Long awaited round 1 of NeXT patches.
...23,9 +23,6 @@ #if defined(HAVE_UTMPX_H) && defined(USE_UTMPX) # include <utmpx.h> #endif -#ifdef HAVE_UTMP_H -# include <utmp.h> -#endif #include "ssh.h" #ifdef HAVE_UTIL_H @@ -108,8 +105,10 @@ return 0; } +#ifdef HAVE_TYPE_IN_UTMP if ( wt.ut_type == USER_PROCESS) { - if ( !strncmp(logname, wt.ut_user, 8) ) { +#endif /* HAVE_TYPE_IN_UTMP */ + if ( !strncmp(logname, UTMP_NAME, 8) ) { t = (unsigned long) wt.ut_time; #ifdef HAVE_HOST_IN_UTMP if (bufsize > sizeof(wt.ut_host) + 1) @@ -120,7 +119,9 @@ buf[0] = 0; #endif /* HAVE_HOST_IN_UTM...
2000 May 17
4
Openssh-2.1.0p1 test release
This to announce a test release of 2.1.0p1 before making it widely available. This release includes many fixes to problems reported over the last week. In particular: - spurious error and coredumps caused by the inbuilt entropy gathering - RSAref detection - Compilation fixes for Solaris and others It also contains (completely untested) support for compiling without RSA support. This may be