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)). M.C>
(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". M.C>
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. SAMBA_3_2_0/source/smbd/chgpasswd.c?rev=23784: if (tcgetattr(0, &stermios) < 0) { DEBUG(3, ("could not read default terminal attributes on pty\n")); return (False); }
*** This bug has been marked as a duplicate of 5121 ***