Date: Fri, 28 May 1999 16:21:22 -0700 (PDT) From: Doug White <dwhite@resnet.uoregon.edu> To: Gustavo Lozano Ibarra <glozano@academ02.maz.itesm.mx> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: checking a password when I am not root Message-ID: <Pine.BSF.4.03.9905281621000.11808-100000@resnet.uoregon.edu> In-Reply-To: <374EEF69.CE964CEC@academ02.maz.itesm.mx>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 28 May 1999, Gustavo Lozano Ibarra wrote: > I am doing a function in C to check if the password of a user is > correct.. I use a getpwnam and then compare if the returned crypted > password is the same as the one in the db... I make this program and > then use a chmod +s, so if any user run it, it will run as root.. but I > want to make this function a library for tcl.. but when I use the > library it not run as root, so I can't see the encrypted password in the > database... is there another way to check for the password?...... Make the tcl script suid root too? You can always drop privileges once you have your password check. Doug White Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve http://gladstone.uoregon.edu/~dwhite | www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.03.9905281621000.11808-100000>