The Samba-Bugzilla – Bug 4986
chgpasswd.c/dochild() cannot control tty
Last modified: 2013-02-18 13:29:59 UTC
Process like "net rpc user add user password" return NT_STATUS_ACCESS_DENIED.
I use "passwd program" in smb.conf
Logs host.* contains "Error in ioctl call for slave pty" and "Could not re-direct stdin".
On my Solaris 10u4 i need include explicit "#include <sys/stropts.h>" in file smbd/chgpasswd.c to get spawned terminal working (tcgetattr(3C)).
(In reply to comment #0)
> Logs host.* contains "Error in ioctl call for slave pty" and "Could not
> re-direct stdin".
Sorry, correct statement:
Logs host.* contains "Error in ioctl call for slave pty" and "could not read default terminal attributes on pty".
I have the same problem with Solaris 8/10 at sparc and x86. The resulting error is that the "passwd program" is never executed because of the return false statement. Include of sys/stropts.h in chpasswd.c solves the problem.
if (tcgetattr(0, &stermios) < 0)
("could not read default terminal attributes on pty\n"));
*** This bug has been marked as a duplicate of 5121 ***