linux-l: Passwort abstellen

Ole Streicher ole at ifh.de
Di Apr 4 12:29:46 CEST 2000


Hallo Mathias!

>>>>> "MB" == Mathias Born <mborn at faphida.in-berlin.de> writes:
>> > abstellen kann, daß ich beim Login gar nicht mehr danach gefragt
MB> Ja, aber wenn ich das mache (übrigens in /etc/passwd), dann wird
MB> beim login immer noch ein Passwort verlangt, das ursprüngliche
MB> geht dann allerdings nicht mehr...

Hast Du zufaellig eine RedHat-Distribution?
Dort ist die Antwort: geht nicht so ohne weiteres. In der dort
enthaltenen pwdb ist eine extra-Abfrage auf ein leeres Passwort
drin; in diesem Fall wird das login verweigert. 

Als abhilfe musst Du pwdb neu kompilieren. Wenn Du Halloween 3
(RedHat 6) hast, kann ich Dir ein modifiziertes pwdb-0.58-3a.i386.rpm
schicken, ansonsten musst Du es selbst bauen. Hier das diff:

--- libpwdb/pwdb/interface/unix/user.c~ Sun Jul  4 21:54:27 1999
+++ libpwdb/pwdb/interface/unix/user.c  Sun Jul  4 21:56:23 1999
@@ -130,7 +130,7 @@
      * only set the passwd if it is not a single character -- indicating
      * that the passwd is to be found in another database
      */
-    if (strlen(pwd->pw_passwd) > 1) {
+    if (strlen(pwd->pw_passwd) != 1) {
         retval = pwdb_set_entry(*p, "passwd", pwd->pw_passwd, 1+strlen(pwd->pw_
passwd),
                                NULL, txtcpy, 1+strlen(pwd->pw_passwd));
         if (retval != PWDB_SUCCESS) {


Tschuessi

Ole
-- 
Support the ban of Dihydrogen Monoxide: http://www.dhmo.org/



Mehr Informationen über die Mailingliste linux-l