search for: syslogin_perform_logout

Displaying 15 results from an estimated 15 matches for "syslogin_perform_logout".

2004 Apr 28
1
[Bug 855] doesn't properly log logout event in utmp entry when pts bigger than 999
...ortable OpenSSH Version: 3.8p1 Platform: All OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: sshd AssignedTo: openssh-bugs at mindrot.org ReportedBy: arekm at pld-linux.org The problem is: syslogin_perform_logout() uses char line[8]; so tty name can have max 7 characters which is not common on recent linux 2.6.5 (and higher) systems which do not use first free pts number (see http://testing.lkml.org/slashdot.php? mid=465538 if you are really interested). Due to that there are bad entries in utmp left lik...
2007 Sep 06
1
openssh 4.6p1 closing connection with strange packet length
server is running openssh 4.6p1 on linux x86 (32bit) client is running openssh 4.6p1 on linux x86_64 (64bit) Just connecting from the client to the server and running "top" long enough results in: Disconnecting: Bad packet length 3690378913. This seems like a 32/64 bit problem to me. -- Andreas Steinmetz SPAMmers use robotrap at domdv.de
2006 Apr 20
0
[Bug 1183] sshd fails to update utmp
...ild1 sshd[16397]: Invalid user master from 82.165.184.132 Apr 20 00:14:12 wild1 sshd[16402]: Did not receive identification string from 82.165.184.132 After the "Did not receive identification" line, my logins stop updating utmp, and I get errors like: Apr 20 10:11:04 wild1 sshd[17729]: syslogin_perform_logout: logout() returned an error. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
2007 May 18
2
[Bug 1183] sshd fails to update utmp
...dded ---------------------------------------------------------------------------- CC| |djm at mindrot.org --- Comment #1 from Damien Miller <djm at mindrot.org> 2007-05-18 17:53:29 --- This might be a glibc/libutil bug - the error message "syslogin_perform_logout: logout() returned an error" indicates that the libutil logout() call failed. Unfortunately this API provides nothing much in error reporting. Can you strace a sshd that is failing and post the results? You might need to specify strace options to get it to follow fork() calls. -- Configure...
2000 Jul 17
2
sshd -i problem under 2.1.1p4 as well
...mand not found -bash: ?]r90: command not found -bash: marshall4: command not found Connection to orpheus.qimr.edu.au closed. log: Jul 17 11:55:44 orpheus PAM_pwdb[14041]: (sshd) session opened for user davidD by (uid=0) Jul 17 11:55:45 orpheus sshd[14041]: syslogin_perform_logout: logout() returned an error The junk includes names of hosts on our local network who engage in ftp or telnet with my machine. There is no problem when sshd is run as a demon on another port. Cheers, David Duffy. | David Duffy....
2000 Jul 17
1
logout() returned an error
...enerating 1152 bit RSA Key. Jul 17 11:10:40 nec sshd[7975]: RSA key generation complete. Jul 17 11:10:40 nec sshd[7975]: Accepted password for user1 from 192.168.0.1 port 1023 Jul 17 11:10:43 nec PAM_pwdb[7975]: (sshd) session opened for user user1 by (uid=0) Jul 17 11:10:43 nec sshd[7975]: syslogin_perform_logout: logout() returned an error Jul 17 11:10:53 nec PAM_pwdb[7975]: (sshd) session closed for user1. Jul 17 11:10:53 nec xinetd[7877]: EXIT: ssh pid=7975 duration = 13 (sec) any hints on this? As I tried to connect from the openssh-client to the ssh-(1.2.27)-server, then everything seems to work...
2003 Jan 03
0
[patch] chroot support for openssh-3.5p1
...g on this for a month or two and have been running it sucessfully for about the same amount of time. This patch assumes: The ~username/chome directory exists with owner uid=root,gid=root [the directory name is configurable via sshd_config]. A proper jail has been setup underneath. Unfortunately, syslogin_perform_logout is broken, as I'm not sure how to handle this [securely] as after the chroot, the file is no longer accessible. This patch does work with privilege separation. This patch requires a binary for scp/sftp-server to be in the proper locations in each jail as well. You can chrootAll with excepti...
2009 Jun 07
1
Fw: howto use chroot + sshd
...<- chroot /users succeeded Jun 6 21:05:40 node1 sshd[5397]: pam_unix(sshd:session): session closed for user terry Jun 6 21:05:40 node1 sshd[5399]: pam_env(sshd:setcred): Unable to open config file: /etc/security/pam_env.conf: No such file or directory Jun 6 21:05:40 node1 sshd[5397]: syslogin_perform_logout: logout() returned an error Jun 6 21:05:40 node1 sshd[5397]: fatal: openpty returns device for which ttyname fails. <- but why can not get one tty shell ? Jun 6 21:05:40 node1 sshd[5397]: error: chown 0 0 failed: No such file or directory Jun 6 21:05:40 node1 sshd[5397]: error:...
2000 Aug 09
3
Problems compiling openssh-2.1.1p2 on FreeBSD 4.0-RELEASE
...no member named `ut_user' loginrec.c:619: structure has no member named `ut_user' loginrec.c:619: structure has no member named `ut_user' loginrec.c: In function `syslogin_perform_login': loginrec.c:1256: warning: implicit declaration of function `login' loginrec.c: In function `syslogin_perform_logout': loginrec.c:1269: warning: implicit declaration of function `logout' loginrec.c:1273: warning: implicit declaration of function `logwtmp' *** Error code 1 Stop in /usr/local/src/openssh-2.1.1p2. Is there something I have forgotten to install, or configure? I just ran the 'configu...
2000 Dec 27
2
implicit declaration warnings
...ction `__b64_pton' auth-rhosts.c: In function `check_rhosts_file': auth-rhosts.c:110: warning: implicit declaration of function `innetgr' loginrec.c: In function `syslogin_perform_login': loginrec.c:1282: warning: implicit declaration of function `login' loginrec.c: In function `syslogin_perform_logout': loginrec.c:1295: warning: implicit declaration of function `logout' loginrec.c:1299: warning: implicit declaration of function `logwtmp' --- In config.h, there are: #define HAVE___B64_NTOP 1 #define HAVE_LIBUTIL_LOGIN 1 #define HAVE_INNETGR 1 Attached patch removes the warnings abou...
2000 Sep 06
0
2.1.1p4: sessions automatically closed, if sshd is run from inetd
...generation complete. Sep 6 16:08:29 evelyn sshd[9571]: Connection from 127.0.0.1 port 1157 Sep 6 16:08:29 evelyn sshd[9571]: Accepted rsa for a_user from 127.0.0.1 port 1157 Sep 6 16:08:29 evelyn PAM_pwdb[9571]: (sshd) session opened for user a_user by (uid=0) Sep 6 16:08:30 evelyn sshd[9571]: syslogin_perform_logout: logout() returned an error Sep 6 16:08:30 evelyn sshd[9571]: Closing connection to 127.0.0.1 Sep 6 16:08:30 evelyn PAM_pwdb[9571]: (sshd) session closed for user a_user
2014 Jun 22
0
openssh connection hangs upon shell exit
...gprocmask(SIG_SETMASK, [TERM CHLD], NULL, 8) = 0 write(3, "\323m\346\231\252\2024\235\272,<@\325\220$q\231\356\321\37\34\272\ndj\377\332\311:?j\360", 32) = 32 select(9, [3 4], [], NULL, NULLExiting on signal 2 debug1: do_cleanup debug1: session_pty_cleanup: session 0 release /dev/pts/0 syslogin_perform_logout: logout() returned an error The read error on fd 8 is probably Ok since I suspect it is the pipe to the shell, which terminated so an error here is probably normal (BTW, this shell is busybox). -- Avis de confidentialit? Les informations contenues dans le pr?sent message et dans toute pi?ce...
2004 Apr 08
3
patch for "gone - no logout" output from last(1)
...- just using UT_LINESIZE for the length of the array if it is defined. -John -- John P. Eisenmenger jpe at eisenmenger.org *** openssh-3.7.1p2/loginrec.c.orig Sun Jul 6 01:20:46 2003 --- openssh-3.7.1p2/loginrec.c Wed Apr 7 19:35:43 2004 *************** *** 1349,1355 **** --- 1349,1359 ---- syslogin_perform_logout(struct logininfo *li) { # ifdef HAVE_LOGOUT + # ifdef UT_LINESIZE + char line[UT_LINESIZE]; + # else char line[8]; + # endif (void)line_stripname(line, li->line, sizeof(line));
2000 Jul 15
0
openssh-2.1.1p3 - problem with -i option
...), stderr 0 bytes. Jul 15 14:06:09 somehost sshd[27621]: debug: Command exited with status 0. Jul 15 14:06:09 somehost sshd[27621]: debug: Received exit confirmation. Jul 15 14:06:09 somehost sshd[27621]: debug: session_pty_cleanup: session 0 release /dev/pts/8 Jul 15 14:06:09 somehost sshd[27621]: syslogin_perform_logout: logout() returned an error Jul 15 14:06:09 somehost sshd[27621]: Closing connection to some.ip.address Jul 15 14:06:09 somehost PAM_pwdb[27621]: (sshd) session closed for user dummy I'm not on the list, so if any more information is needed please contact me directly via email. Thanks for loo...
2000 Jul 03
0
FreeBSD 3.5-STABLE
...mber named `ut_user' loginrec.c:619: structure has no member named `ut_user' loginrec.c:619: structure has no member named `ut_user' loginrec.c: In function `syslogin_perform_login': loginrec.c:1256: warning: implicit declaration of function `login' loginrec.c: In function `syslogin_perform_logout': loginrec.c:1269: warning: implicit declaration of function `logout' loginrec.c:1273: warning: implicit declaration of function `logwtmp' *** Error code 1 Stop. creating cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking w...