Return to BSD News archive
Newsgroups: comp.unix.bsd Path: sserve!manuel!munnari.oz.au!sgiblab!rtech!ingres!tomm From: tomm@Ingres.COM (Tom Markson) Subject: Re: xlock won't recognize password Message-ID: <1992Sep30.232439.2262@pony.Ingres.COM> Organization: Ingres, Alameda CA 94501 References: <1992Sep29.222158.13275@mel.dit.csiro.au> Date: 30 Sep 92 23:24:39 GMT Lines: 20 tim@kimba.catt.citri.edu.au (Tim Liddelow) writes: > Hi all. I compiled up a X11R5 raw version of xlock from the X contrib > directory at one of the X mirror sites here. The problem is that it compiled > up pretty well fine, but it won't recognize my password. Now could this be > anything to do with crypt() I added to the standard C library ? Or can't > it handle the shadow password entries (surely that would be built in to > the system calls.) I made this work under BSDI. The first thing is that xlock must be setuid root or it won't be able to get the password information. Second, I think I had to change it so that it did a getpwuid instead of whatever it did. THis is a side effect of making it setuid. It would always want root's password instead of the users. Play around with it a bit. One thing I never got to work correctly was color under xlock. No matter how hard I fiddled, I could not get color to work - the locks were always in black and white. Did anyone get this to work? Tom Tom Markson Unix Systems email: tomm@ingres.com