*BSD News Article 52324


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!fu-berlin.de!zrz.TU-Berlin.DE!cs.tu-berlin.de!fauern!news.tu-chemnitz.de!irz401!uriah.heep!not-for-mail
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Bad crypt?
Date: 3 Oct 1995 15:59:13 +0100
Organization: Private FreeBSD site, Dresden.
Lines: 18
Message-ID: <44rj41$c76@uriah.heep.sax.de>
References: <kchan-0110951556250001@adagio.kcc.hawaii.edu>
NNTP-Posting-Host: uriah.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Kenwrick Chan <kchan@leahi.kcc.hawaii.edu> wrote:

>I'm trying to compile MOO-1.7.8p4 and I finally got it to compile.  It
>seems to work fine, but I the password function does not seem to work
>correctly.  I can set a password fine, but it's useless cause it doesn't
>recognize it once I set it.  I had to use "LIBRARIES = -lm -lcrypt" to
>compile.

I dunno what the hell MOO is, but only a process with euid == 0 can
actually get passwords in FreeBSD.  So you have to make your MOO aware
of being setuid root.  (Don't simply turn on the suid bit.  Unless the
program is already designed to be suid-aware, you're most likely going
to open security holes!)
-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)