Cannot Allocate pty for password change: <username>

Giulio Orsero giulioo at tiscalinet.it
Wed Sep 1 09:14:24 GMT 1999


On Wed, 1 Sep 1999 15:46:39 +1000, hai scritto:


>There is a known timing problem when using passwd sync on *some* REDHAT
>'flavoured' Linux systems. There is a line you can add to smbpasswd.c to fix
>this >before compiling [I'd add it here, but I'm not at work to check it, and at

Thanks for the response.
I made some tests.
The problem is not a timing issue.
The problem is that I have UNIX pty compiled in the kernel, but disabled
runtime.
I compiled samba on such a system, and now samba wants me to enable pty
(if I enable the pty's the password sync works as expected).
I'll write to samba-bugs because I think samba should check runtime if
pty are available or not.


This is the mail to samba-bugs:
**********
I have UNIX ptys compiled in the kernel; but I disabled them "runtime":
commented out in fstab the pts filesystem and renamed /dev/ptmx to
/dev/ptmx-

I compiled samba my self on this system.

UNIX PASSWORD SYNC works only if I re-enable the pty by uncommenting pts
filesystem in fstab and moving back /dev/ptmx- to /dev/ptmx:
===
[1999/09/01 10:57:16, 3] smbd/chgpasswd.c:chgpasswd(394)
  Password change for user: go
[1999/09/01 10:57:16, 3] smbd/chgpasswd.c:chat_with_program(369)
  Dochild for user go (uid=0,gid=0)
[1999/09/01 10:57:18, 3] smbd/chgpasswd.c:chat_with_program(381)
  Password change successful for user go
[1999/09/01 10:57:18, 3] smbd/process.c:timeout_processing(828)
  end of file from client
===

With pty disabled (but enabled in the kernel):
===
[1999/09/01 11:03:57, 3] smbd/chgpasswd.c:chgpasswd(394)
  Password change for user: go
[1999/09/01 11:03:57, 3] smbd/chgpasswd.c:chat_with_program(295)
  Cannot Allocate pty for password change: go
[1999/09/01 11:03:57, 3] smbd/process.c:timeout_processing(828)
  end of file from client
===

I think samba should check runtime if ptys are available or not.

**********

-- 
giulioo at tiscalinet.it


More information about the samba-ntdom mailing list