search for: do_pwchange

Displaying 8 results from an estimated 8 matches for "do_pwchange".

2004 Dec 03
3
do_pwchange() is broken on SCO UnixWare 7
The do_pwchange() function in session.c needs to pass the username as an argument to the passwd command. Without it, passwd always fails with something like "passwd: unknown user" as if its getting a blank user arg. It's strange but so are many other things in SCO, which BTW was NOT my OS of choice :...
2005 Mar 21
0
Why not to read environment before do_pwchange() ?
...lks to user in Polish. That's what I want. Problem occurres when password expires. User is forced to change password. From now on passwd talks in system's default $LANG, which is English. I've found the cause of such behavior in session.c Function do_child() invokes do_pwchange() at the beginning, before everything else. (4.0p1 session.c line 1445) Environment is read later by do_setup_env() - when setting $SHELL (line 1496) When /usr/bin/passwd is executed by do_pwchange() it doesn't know environment and uses default from /etc/environment. The so...
2004 Feb 07
14
[Bug 14] Can't change expired /etc/shadow password without PAM
http://bugzilla.mindrot.org/show_bug.cgi?id=14 dtucker at zip.com.au changed: What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO| |793 nThis| | ------- You are receiving this mail because: ------- You are on the CC list for
2018 Jun 15
3
Connection terminates just after changing the password for user whose password was expired.
...now and login again! Changing password for "tstuser" tstuser's Old password: tstuser's New password: Enter the new password again: Connection to localhost closed. I went through the source code and what I came to know that in file "session.c" , there is function "do_pwchange", which includes "exit(1)" just after the password change. static void do_pwchange(Session *s) { fflush(NULL); fprintf(stderr, "WARNING: Your password has expired.\n"); if (s->ttyfd != -1) { fprintf(stderr, "You must change your password now and login again!\n...
2017 Feb 20
3
[Bug 2681] New: postauth processes to log via monitor
https://bugzilla.mindrot.org/show_bug.cgi?id=2681 Bug ID: 2681 Summary: postauth processes to log via monitor Product: Portable OpenSSH Version: 7.4p1 Hardware: Other OS: Linux Status: NEW Severity: enhancement Priority: P5 Component: sshd Assignee: unassigned-bugs at
2004 Apr 05
5
[Bug 568] Kerberos password auth/expiry kbdint patch
http://bugzilla.mindrot.org/show_bug.cgi?id=568 ------- Additional Comments From michael.houle at atcoitek.com 2004-04-06 06:04 ------- Can someone please enlighten me on whether this kind of code is going to be included in the main development ? I thought this would be handled automatically by the krb5 libraries, so I was suprised to find that password changing doesn't work in the SSH
2015 Dec 04
3
Running sshd with Privilege Seperation drops connection on password change
Hi folks, I came across this issue on both stock CentOS(v6.4) and Ubuntu(14.04 LTS) and was wondering if any of you have seen it. As far as I can tell this seems like a day-1 bug to me. PROBLEM: If I expire a linux user's password (passwd -e <user>) and then log in via ssh, it will prompt you for a password change. On changing the password successfully, sshd will drop the connection
2015 Dec 16
2
Running sshd with Privilege Seperation drops connection on password change
...user>) and then log in via ssh, it will prompt you for a password change. > On changing the password successfully, sshd will drop the connection and client has to reconnect. That's working as intended, and you should have seen text to that effect. In session.c (simplified): static void do_pwchange(Session *s) { fprintf(stderr, "WARNING: Your password has expired.\n"); if (s->ttyfd != -1) { fprintf(stderr, "You must change your password now and login again!\n"); execl(_PATH_PASSWD_PROG, "passwd&quo...