Displaying 20 results from an estimated 26 matches for "lastlog_fil".
Did you mean:
lastlog_file
2014 May 22
0
[PATCH] openssh - loginrec.c - Non-atomic file operations.
....c
@@ -163,6 +163,7 @@
#include <string.h>
#include <time.h>
#include <unistd.h>
+#include <dirent.h>
#include "xmalloc.h"
#include "key.h"
@@ -1476,41 +1477,65 @@ lastlog_openseek(struct logininfo *li, int *fd, int filemode)
off_t offset;
char lastlog_file[1024];
struct stat st;
-
- if (stat(LASTLOG_FILE, &st) != 0) {
- logit("%s: Couldn't stat %s: %s", __func__,
- LASTLOG_FILE, strerror(errno));
- return (0);
- }
- if (S_ISDIR(st.st_mode)) {
- snprintf(lastlog_file, sizeof(lastlog_file), "%s/%s",
- LASTLOG...
2000 Aug 01
2
[2.1.1p4] utmp patch for SunOS 4.1.x
...default paths back in */
! #if !defined(UTMP_FILE) && defined(_PATH_UTMP)
! # define UTMP_FILE _PATH_UTMP
#endif
! #if !defined(WTMP_FILE) && defined(_PATH_WTMP)
! # define WTMP_FILE _PATH_WTMP
#endif
/* pick up the user's location for lastlog if given */
! #if !defined(LASTLOG_FILE) && defined(_PATH_LASTLOG)
! # define LASTLOG_FILE _PATH_LASTLOG
! #endif
! #if !defined(LASTLOG_FILE) && defined(CONF_LASTLOG_FILE)
! # define LASTLOG_FILE CONF_LASTLOG_FILE
#endif
--- 329,361 ----
#endif
/* FIXME: put default paths back in */
! #ifndef UTMP_FILE...
2000 Jul 26
2
[2.1.1p4] utmp related patches plus unresolved bugs description
...d(_PATH_WTMP)
-# define WTMP_FILE _PATH_WTMP
+#ifndef WTMP_FILE
+# ifdef _PATH_WTMP
+# define WTMP_FILE _PATH_WTMP
+# else
+# ifdef CONF_WTMP_FILE
+# define WTMP_FILE CONF_WTMP_FILE
+# endif
+# endif
#endif
/* pick up the user's location for lastlog if given */
-#if !defined(LASTLOG_FILE) && defined(_PATH_LASTLOG)
-# define LASTLOG_FILE _PATH_LASTLOG
-#endif
-#if !defined(LASTLOG_FILE) && defined(CONF_LASTLOG_FILE)
-# define LASTLOG_FILE CONF_LASTLOG_FILE
+#ifndef LASTLOG_FILE
+# ifdef _PATH_LASTLOG
+# define LASTLOG_FILE _PATH_LASTLOG
+# else
+# ifdef CO...
2000 Aug 03
1
lastlog_get_entry error on IRIX
...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 in the syslog.
-jf
2002 Feb 12
0
[Bug 110] New: bogus error messages in lastlog_get_entry()
...t, 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);
- log("lastlog_get_entry: Error reading from %s: %s",
- LASTLOG_FILE, strerror(errno));
+ if (r == -1)
+ log("lastlog_get_entry: Error reading from %s: %s",
+ LASTLOG_FILE, strerror(errno));
+ else
+ log("lastlog_get_entry: Error reading from %s: read %d bytes, expected %d",
+ LASTLOG_FILE, r, sizeof(last));
return 0;
}...
2003 Apr 08
1
[Bug 539] open() requires 3 arguments when using O_CREAT
...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 on the end of the stack. I've verified tha...
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.
...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. Improper checking of the return value from
atomicio causes the following call to be made:
log("lastlog_get_entry: Error reading from %s: %s",LASTLOG_FILE, strerror(errno));
This is incorrect as we are getting an EOF and errno will not be set with any
value of use.
To recreate the problem:
1) Add user to the box with a uid higher then the highest uid that has logged
into the box.
2) On the first login to the box with the new user, login through s...
2001 Feb 15
0
Configure suggestion
I just downloaded and build 2.3.0p1 on BSD/OS 4.0.1 and 4.1 with no
problems. Good job, guys! I did notice that although configure looks
for both LASTLOG_FILE and _PATH_LASTLOG, it only looks for UTMP_FILE and
WTMP_FILE. BSD/OS doesn't define those, but it does define _PATH_UTMP
and _PATH_WTMP (in <utmp.h>, same as _PATH_LASTLOG), so you may want to
have configure check for them, too. (It's not a problem since BSD/OS
keeps them in one of...
2010 Sep 13
5
[Bug 1817] New: lastlog is not recorded with the big uid
...astlog file
*/
1602 offset = (off_t) ((long)li->uid * sizeof(struct
lastlog));
1603
1604 if (lseek(*fd, offset, SEEK_SET) != offset) {
1605 logit("%s: %s->lseek(): %s", __func__,
1606 lastlog_file, strerror(errno));
1607 return (0);
1608 }
When uid is 2147483648, offset is 18446743446644326400 at line 1602.
uid = 2147483648 (0x80000000)
(long)uid = 18446744071562067968 (0xFFFFFFFF80000000)
As a result, offset becomes so big value, lseek...
2001 Oct 20
8
Recent openssl is required for OPENSSL_free [Re: Please test snapshots for 3.0 release] (fwd)
No response yet, so resending.
--
Pekka Savola "Tell me of difficulties surmounted,
Netcore Oy not those you stumble over and fall"
Systems. Networks. Security. -- Robert Jordan: A Crown of Swords
---------- Forwarded message ----------
Date: Fri, 12 Oct 2001 09:44:54 +0300 (EEST)
From: Pekka Savola <pekkas at netcore.fi>
To: Damien Miller
2000 Jul 08
1
sshd Pam problem for Redhat 6.2
...es
checking if libc defines __progname... yes
checking for rsh... /usr/kerberos/bin/rsh
checking for xauth... /usr/bin/X11/xauth
checking for /dev/ptc... no
checking for /dev/urandom... yes
checking if we need to convert IPv4 in IPv6-mapped addresses... yes
(default)
checking if your system defines LASTLOG_FILE... no
checking if your system defines _PATH_LASTLOG... yes
checking if your system defines UTMP_FILE... yes
checking if your system defines WTMP_FILE... yes
checking if your system defines UTMPX_FILE... no
checking if your system defines WTMPX_FILE... no
updating cache ./config.cache
creating ./co...
2000 Jun 14
1
OpenSSH 2.1.1p1 on SCO Unixware 7.1.0
...df... /sbin/df
checking for vmstat... no
checking for uptime... /usr/bin/uptime
checking for ipcs... /usr/bin/ipcs
checking for tail... /usr/bin/tail
checking for ls... (cached) /usr/bin/ls
checking if we need to convert IPv4 in IPv6-mapped addresses... no (default)
checking if your system defines LASTLOG_FILE... no
checking if your system defines _PATH_LASTLOG... no
UX:test (./configure): ERROR: Argument expected
2000 Jul 03
0
FreeBSD 3.5-STABLE
...g if libc defines __progname... yes
checking for rsh... /usr/bin/rsh
checking for xauth... no
checking for /dev/ptmx... no
checking for /dev/ptc... no
checking for /dev/urandom... yes
checking if we need to convert IPv4 in IPv6-mapped addresses... no (default)
checking if your system defines LASTLOG_FILE... no
checking if your system defines _PATH_LASTLOG... yes
checking if your system defines UTMP_FILE... no
checking if your system defines WTMP_FILE... no
checking if your system defines UTMPX_FILE... no
checking if your system defines WTMPX_FILE... no
updating cache ./config.cache
creating...
2001 Oct 26
2
problems building on solaris 2.6
...r/bin/nroff
checking if the systems has expire shadow information... yes
Adding /usr/local/openssh-3.0p1/bin to USER_PATH so scp will work
checking if we need to convert IPv4 in IPv6-mapped addresses... no (default)
checking whether to install ssh as suid root... yes
checking if your system defines LASTLOG_FILE... no
checking if your system defines _PATH_LASTLOG... no
checking if your system defines UTMP_FILE... yes
checking if your system defines WTMP_FILE... yes
checking if your system defines UTMPX_FILE... yes
checking if your system defines WTMPX_FILE... yes
configure: creating ./config.status
config...
2001 May 15
0
openssh 2.9p1 on Solaris 2.6 with AFS
...s
checking for tail... /usr/opt/bin/tail
checking for nroff... /usr/bin/nroff
checking if the systems has expire shadow information... yes
checking if we need to convert IPv4 in IPv6-mapped addresses... no
(default)
checking whether to install ssh as suid root... yes
checking if your system defines LASTLOG_FILE... no
checking if your system defines _PATH_LASTLOG... no
checking if your system defines UTMP_FILE... yes
checking if your system defines WTMP_FILE... yes
checking if your system defines UTMPX_FILE... yes
checking if your system defines WTMPX_FILE... yes
checking for Cygwin environment... no
chec...
2001 Jul 16
0
No subject
...r/local/ssl/include -L/usr/local/ssl/lib conftest.c -lz -lsecurity -ldb -lm -laud -lutil -lcrypto 1>&5
configure:8137: checking if we need to convert IPv4 in IPv6-mapped addresses
configure:8189: checking whether to install ssh as suid root
configure:8338: checking if your system defines LASTLOG_FILE
configure:8356: cc -c -g -I/usr/local/ssl/include conftest.c 1>&5
cc: Error: configure, line 8352: In the initializer for lastlog, "LASTLOG_FILE" is not declared. (undeclared)
char *lastlog = LASTLOG_FILE;
-----------------^
configure: failed program was:
#line 8340 "confi...
2000 Aug 26
0
New chroot patch, for 2.1.1p4
...0: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
IPV4_IN6_HACK_MSG="no"
# Check whether --with-4in6 or --without-4in6 was given.
if test "${with_4in6+set}" = set; then
@@ -5949,9 +5969,9 @@
echo $ac_n "checking if your system defines LASTLOG_FILE""... $ac_c" 1>&6
-echo "configure:5953: checking if your system defines LASTLOG_FILE" >&5
+echo "configure:5973: checking if your system defines LASTLOG_FILE" >&5
cat > conftest.$ac_ext <<EOF
-#line 5955 "configure"
+#line...
2000 Oct 04
0
2.2.0p1 chroot patch
...5: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
IPV4_IN6_HACK_MSG="no"
# Check whether --with-4in6 or --without-4in6 was given.
if test "${with_4in6+set}" = set; then
@@ -6174,9 +6194,9 @@
echo $ac_n "checking if your system defines LASTLOG_FILE""... $ac_c" 1>&6
-echo "configure:6178: checking if your system defines LASTLOG_FILE" >&5
+echo "configure:6198: checking if your system defines LASTLOG_FILE" >&5
cat > conftest.$ac_ext <<EOF
-#line 6180 "configure"
+#line...
2001 Apr 10
2
Compiling openssh 2.5.p1 on unixware 7.0.1
...for ipcs... (cached) /usr/bin/ipcs
checking for tail... (cached) /usr/bin/tail
checking if the systems has expire shadow information... yes
checking if we need to convert IPv4 in IPv6-mapped addresses... no (default)
checking whether to install ssh as suid root... no
checking if your system defines LASTLOG_FILE... no
checking if your system defines _PATH_LASTLOG... no
checking if your system defines UTMP_FILE... yes
checking if your system defines WTMP_FILE... yes
checking if your system defines UTMPX_FILE... yes
checking if your system defines WTMPX_FILE... yes
checking for Cygwin environment... (cached...
2001 Jul 11
0
Solaris 2.6: Undefined symbol seed_rng
...nroff... /usr/bin/nroff
checking if the systems has expire shadow information... yes
Adding /home/eedalf/bin to USER_PATH so scp will work
checking if we need to convert IPv4 in IPv6-mapped addresses... no (default)
checking whether to install ssh as suid root... no
checking if your system defines LASTLOG_FILE... no
checking if your system defines _PATH_LASTLOG... no
checking if your system defines UTMP_FILE... yes
checking if your system defines WTMP_FILE... yes
checking if your system defines UTMPX_FILE... yes
checking if your system defines WTMPX_FILE... yes
checking for Cygwin environment... no
chec...