Date: Fri, 27 Dec 1996 14:44:13 -0500 (EST) From: Skip Watson <ciaran@aldhfn.aldhfn.org> To: joerg@freefall.freebsd.org Cc: freebsd-bugs@freefall.freebsd.org Subject: Re: bin/2092 Message-ID: <Pine.BSD.3.91.961227143619.698B-100000@aldhfn.aldhfn.org> In-Reply-To: <Pine.BSD.3.91.961227142827.679A-100000@aldhfn.aldhfn.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSD.3.91.961227143619.698B-100000>