Gentoo Archives: gentoo-user-de

From: Frank Numrich <fnumrich@×××.de>
To: gentoo-user-de@l.g.o
Subject: [gentoo-user-de] Samba passwd chat
Date: Wed, 28 Jul 2004 19:57:24
Message-Id: 20040728220005.37be6170@czw8000.czw.local.de
1 Hallo,
2
3 sorry dass die Mail nochmal kommt. Das erste Mal war die Mail als Reply in einem anderen Thread.
4
5 Ich stelle gerade einen Samba Server von Suse auf Gentoo um.
6 Dabei tritt folgendes Problem auf:
7
8 Der passwd chat in smb.conf unter Suse sah folgendermaßen aus:
9
10 passwd chat = *new*password* %n\\n *new*password* %n\\n *changed*
11
12 Das passte zum /usr/bin/passwd
13
14 czwserv:/usr/local/samba/lib # passwd fnumrich
15 New password:
16 Re-enter new password:
17 Password changed
18 czwserv:/usr/local/samba/lib #
19
20
21 Unter Gentoo liefert aber /usr/bin/passwd nach der zweiten Passworteingabe keine Meldung mehr:
22
23 root@czwserv1 fnumrich # passwd fnumrich
24 New UNIX password:
25 Retype new UNIX password:
26 root@czwserv1 fnumrich #
27
28 Nun schreibe ich meinen passwd chat folgendermaßen:
29
30 passwd chat = *New*password* %n\\n *new*password* %n\\n
31
32 Allerdings wartet Samba anscheinend dann immer auf irgendeine Reaktion von passwd:
33
34
35 [2004/07/27 23:30:12, 100] smbd/chgpasswd.c:expect(274)
36 expect: expected [*New*UNIX*password:*] received [New UNIX password: ] match yes
37 [2004/07/27 23:30:12, 10] smbd/chgpasswd.c:expect(285)
38 expect: returning True
39 [2004/07/27 23:30:12, 100] smbd/chgpasswd.c:expect(237)
40 expect: sending [hasine12345\
41 ]
42 [2004/07/27 23:30:12, 10] lib/util_sock.c:read_socket_with_timeout(263)
43 read_socket_with_timeout: timeout read. select timed out.
44 [2004/07/27 23:30:12, 100] smbd/chgpasswd.c:expect(274)
45 expect: expected [*Retype*new*UNIX*password:*] received [
46 Retype new UNIX password: ] match yes
47 [2004/07/27 23:30:12, 10] smbd/chgpasswd.c:expect(285)
48 expect: returning True
49 [2004/07/27 23:30:12, 100] smbd/chgpasswd.c:expect(237)
50 expect: sending [hasine12345\
51 ]
52
53 Das Passwort wird also korrekterweise 2x gesendet, aber dann tut sich nichts mehr, bis ich die Sache von Hand beende.
54
55 Kann ich Samba beibringen, dass passwd die Arbeit stillschweigend erledigt hat und schon fertig ist?
56
57 Viele Grüße
58 Frank
59
60 --
61 gentoo-user-de@g.o mailing list