Displaying 14 results from an estimated 14 matches for "lastlog_openseek".
2017 Jan 30
2
No subject
...cal/etc/moduli
does not exist, using fixed modulus
Jan 30 17:22:18 Linux auth.err sshd[5229]: error: Could not get shadow
information for customuser
Jan 30 17:22:18 Linux auth.info sshd[5229]: Accepted none for customuser
from 10.220.82.17 port 41645 ssh2
Jan 30 17:22:18 Linux auth.info sshd[5230]: lastlog_openseek: Couldn't stat
/var/log/lastlog: No such file or directory
Jan 30 17:22:18 Linux auth.info sshd[5230]: lastlog_openseek: Couldn't stat
/var/log/lastlog: No such file or directory
client logs:
ssh customuser at 10.220.167.184
Username: admin
Permission denied, please try again.
Permissio...
2000 Aug 03
1
lastlog_get_entry error on IRIX
Precedence: bulk
Hi,
I'm getting the error:
sshd[71835]: lastlog_get_entry: Error reading from /var/adm/lastlog: Error 0
from openssh 2.1.1p4 on IRIX (6.5.8m). Looks like there's some confusion
about /var/adm/lastlog being a directory and not a file on IRIX.
./configure says:
checking for lastlog... no
checking if your system defines LASTLOG_FILE... no
but I still gets the error
2014 May 22
0
[PATCH] openssh - loginrec.c - Non-atomic file operations.
Hi all.
I rewrited lastlog_openseek function. Now is little more atomic when
file operations on lastlog file happens.
For more details why separate stat and open isn't so safe please take a
look at: http://www.akkadia.org/drepper/defprogramming.pdf
Have nice day
Robin Hack
-------------- next part --------------
diff --git a/l...
2003 Feb 11
0
[Bug 492] New: Spurious error message from loginrec when attempting to login in with the highest uid for the first time.
...ion: 3.5p1
Platform: ix86
OS/Version: BSDI
Status: NEW
Severity: trivial
Priority: P2
Component: sshd
AssignedTo: openssh-unix-dev at mindrot.org
ReportedBy: anissen at securecomputing.com
In loginrec.c:lastlog_get_entry a lastlog_openseek is executed to open the
LASTLOG and seek to the proper offset in the file. When a user logs in for the
first time, if someone with a higher uid has not yet logged in, the lseek that
is performed will seek beyond the end of the file. When an attempt is made to
read the file a EOF is returned. Im...
2017 Jan 30
2
sshd custom shell script for specifc user
...xist, using fixed modulus
> Jan 30 17:22:18 Linux auth.err sshd[5229]: error: Could not get shadow
> information for customuser
> Jan 30 17:22:18 Linux auth.info sshd[5229]: Accepted none for customuser
> from 10.220.82.17 port 41645 ssh2
> Jan 30 17:22:18 Linux auth.info sshd[5230]: lastlog_openseek: Couldn't
> stat /var/log/lastlog: No such file or directory
> Jan 30 17:22:18 Linux auth.info sshd[5230]: lastlog_openseek: Couldn't
> stat /var/log/lastlog: No such file or directory
>
>
> client logs:
>
> ssh customuser at 10.220.167.184
> Username: admin
>...
2002 Feb 12
0
[Bug 110] New: bogus error messages in lastlog_get_entry()
...rN openssh-3.0.2p1.old/loginrec.c openssh-3.0.2p1/loginrec.c
--- openssh-3.0.2p1.old/loginrec.c Tue Oct 30 03:50:40 2001
+++ openssh-3.0.2p1/loginrec.c Tue Feb 12 23:16:43 2002
@@ -1486,15 +1486,23 @@
lastlog_get_entry(struct logininfo *li)
{
struct lastlog last;
- int fd;
+ int fd, r;
if (!lastlog_openseek(li, &fd, O_RDONLY))
return 0;
- if (atomicio(read, fd, &last, sizeof(last)) != sizeof(last)) {
+ r = atomicio(read, fd, &last, sizeof(last));
+ if (r == 0) {
+ /* no recorded login */
+ memset(&last, '\0', sizeof(last));
+ } else if (r != sizeof(last)) {
close(fd);...
2003 Apr 08
1
[Bug 539] open() requires 3 arguments when using O_CREAT
...oduct: Portable OpenSSH
Version: 3.6p1
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P2
Component: sshd
AssignedTo: openssh-unix-dev at mindrot.org
ReportedBy: matth at eecs.berkeley.edu
In lastlog_openseek() in loginrec.c, the call to open(lastlog_file, filemode)
should have a third parameter to specify the permissions if the file is
created (0644?). If the log file does not exist, it will be created since
O_CREAT was passed to open, but the permissions will be set to whatever
garbage value is o...
2005 Apr 27
1
openssh-3.6.1p2 server did not accept user connection.
...n
(OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090701f ) which came
with the distribution. The debug out is given below.
Thanks
-logu
The debug output:
Apr 27 09:34:02 jasmine sshd[3176]: debug1: session_input_channel_req:
session 0 req pty-req
Apr 27 09:34:02 jasmine sshd[3176]: debug1: lastlog_openseek: Couldn't open
/var/log/lastlog: Permission denied
Apr 27 09:34:02 jasmine sshd[3176]: debug1: Allocating pty.
Apr 27 09:34:02 jasmine sshd[3174]: debug1: session_new: init
Apr 27 09:34:02 jasmine sshd[3174]: debug1: session_new: session 0
Apr 27 09:34:03 jasmine sshd[3176]: debug1: session_pty...
2001 Sep 26
2
openssh-2.9.9p2 session.c fails on Solaris 7,8 w/ SunPro C
FYI--
session.c fails from openSSH 2.9.9p2 with SunPro C compiler on Solaris 7,
8. The function do_pre_login had to be moved to before its use in
do_exec_pty (a predeclaration would work).
It does appear to work correctly, given the above fix. Still having the
largefile problem (argh), so if anyone can help with /that/ ...
--
Austin David -- Sr. Systems Architect
Wink Communications
2010 Sep 13
5
[Bug 1817] New: lastlog is not recorded with the big uid
...Component: sshd
AssignedTo: unassigned-bugs at mindrot.org
ReportedBy: jchadima at redhat.com
Description of problem:
lastlog is not recorded with the big uid (>2147483647).
1569 /* open the file (using filemode) and seek to the login entry
*/
1570 static int
1571 lastlog_openseek(struct logininfo *li, int *fd, int filemode)
1572 {
...
1600 if (type == LL_FILE) {
1601 /* find this uid's offset in the lastlog file
*/
1602 offset = (off_t) ((long)li->uid * sizeof(struct
lastlog));
1603
1604...
2017 Feb 20
2
second ssh connection for the first ssh request
...ndow 0 rmax 32768
debug3: Wrote 448 bytes for a total of 1981
debug2: channel_input_status_confirm: type 99 id 0
debug2: PTY allocation request accepted on channel 0
debug2: channel 0: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0
lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory
lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory
debug1: permanently_set_uid: 1100/0
Environment:
USER=cliuser
LOGNAME=cliuser
HOME=/home/cliuser
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin...
2003 Jan 21
3
X11 forwarding problem -- openssh-3.5p1 -- redhat 8.0 -- linux 2.4.18
...pen: channel 0
debug1: session_open: session 0: link with channel 0
debug1: server_input_channel_open: confirm session
debug1: server_input_channel_req: channel 0 request pty-req reply 0
debug1: session_by_channel: session 0 channel 0
debug1: session_input_channel_req: session 0 req pty-req
debug1: lastlog_openseek: Couldn't open /var/log/lastlog: Permission
denied
debug1: Allocating pty.
debug3: mm_request_send entering: type 25
debug3: monitor_read: checking request 25
debug3: mm_answer_pty entering
debug1: session_new: init
debug1: session_new: session 0
debug3: mm_request_send entering: type 26
debug3...
2003 Apr 17
0
pam_mkhomedir and priv separation
...pen: channel 0
debug1: session_open: session 0: link with channel 0
debug1: server_input_channel_open: confirm session
debug1: server_input_channel_req: channel 0 request pty-req reply 0
debug1: session_by_channel: session 0 channel 0
debug1: session_input_channel_req: session 0 req pty-req
debug1: lastlog_openseek: Couldn't open /var/log/lastlog: Permission denied
debug1: Allocating pty.
debug3: mm_request_send entering: type 25
debug3: monitor_read: checking request 25
debug3: mm_answer_pty entering
debug1: session_new: init
debug1: session_new: session 0
debug3: mm_request_send entering: type 26
debug3...
2013 Mar 12
14
vpmu=1 and running 'perf top' within a PVHVM guest eventually hangs dom0 and hypervisor has stuck vCPUS. Romley-EP (model=45, stepping=2)
...i does not exist, using fixed modulus
Mar 12 16:28:45 tst032 sshd[5908]: reverse mapping checking getaddrinfo for ns.build.dumpdata.com [192.168.102.1] failed - POSSI^GMar 12 16:28:47 tst032 sshd[5908]: Accepted password for root from 192.168.102.1 port 55657 ssh2
Mar 12 16:28:47 tst032 sshd[5910]: lastlog_openseek: Couldn''t stat /var/log/lastlog: No such file or directory
iscsiadm: connection to discovery address 192.168.101.2 failed
iscsiadm: connection login retries (reopen_max 5) exceeded
iscsiadm: Could not perform SendTargets discovery.
iscsiadm: No records found!
[ 149.134951] Broke affinity...