From owner-freebsd-bugs Fri Dec 27 11:52:35 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA05327 for bugs-outgoing; Fri, 27 Dec 1996 11:52:35 -0800 (PST) Received: from aldhfn.aldhfn.org (root@aldhfn.aldhfn.org [198.17.116.1]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id LAA05319; Fri, 27 Dec 1996 11:52:19 -0800 (PST) Received: (from ciaran@localhost) by aldhfn.aldhfn.org (8.8.3/8.6.11.1) id OAA00860; Fri, 27 Dec 1996 14:44:14 -0500 (EST) Date: Fri, 27 Dec 1996 14:44:13 -0500 (EST) From: Skip Watson To: joerg@freefall.freebsd.org cc: freebsd-bugs@freefall.freebsd.org Subject: Re: bin/2092 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Synopsis: rlogind not using passwords > > State-Changed-From-To: open-feedback > State-Changed-By: joerg > State-Changed-When: Sun Dec 22 15:10:13 MET 1996 > State-Changed-Why: > The behaviour described in this PR cannot be seen on any other FreeBSD system > around. Please make sure that your sysstem has not been hacked. I just finished updating to 2.1.6 and the problem is still there. I have not wiped the disk to do a complete new install. The business can't have the machines down for that long. I've tried it with and without tcp_wrappers. It's strange because it has always acted this way, even back with 1.* versions. > Try adding some debugging syslog() lines to rlogind, to make sure > what's happening. REplace the function do_rlogin() in > /usr/src/libexec/rlogind/rlogind.c with: > > int > do_rlogin(dest) > struct sockaddr_in *dest; > { > int rv; > > getstr(rusername, sizeof(rusername), "remuser too long"); > getstr(lusername, sizeof(lusername), "locuser too long"); > getstr(term+ENVSIZE, sizeof(term)-ENVSIZE, "Terminal type too long"); > > pwd = getpwnam(lusername); > if (pwd == NULL) > return (-1); > /* XXX why don't we syslog() failure? */ > rv = (iruserok(dest->sin_addr.s_addr, pwd->pw_uid == 0, > rusername, lusername)); > syslog(LOG_DEBUG, > "do_rlogin(): from %s, ruser %s, luser %s, iruserok(): %d", > inet_ntoa(dest->sin_addr.s_addr), rusername, > lusername, rv); > return (rv); > } I applied that and typed make and got the following: rlogind.c: In function 'do_rlogin'; rlogind.c:588 incompatible type for argument 1 of 'inet_ntoa' rlogind.c: At top level: rlogind.c:608 parse error before 'return' rlogind.c:617 parse error before '{' rlogind.c:625 parse error before '++' Skip -- Auldhaefen Online Services automated info: info@aldhfn.org 330 745-9380 voice questions: support@aldhfn.org 330 753-8791 bbs/fax person: ciaran@aldhfn.org 330 745-7624 data WWW: http://www.ald.net