Displaying 4 results from an estimated 4 matches for "do_tty_change_password".
2003 Jul 09
0
[PATCH] Add expired password handling for AIX.
...ssword expiry support to
sshd. It will only apply to -current and is a subset of the patch I have
been working on in the last few months (see bug #14 [1]). It contains
code by Pablo Sor, Mark Pitt and Zdenek Tlusty and fixes for bugs reported
by many others (see [2] for a full list).
It adds a do_tty_change_password function that execs /bin/passwd and the
logic to detect when an AIX password is expired.
Unlike the previous patches, it does not contain:
* /etc/shadow expiry support. This is next.
* HP-UX native expiry support. This can be probably be added if there is
sufficient interest.
* PAM support. I...
2002 Nov 20
0
[PATCH #9] Password expiration via /bin/passwd.
...encrypted passwords are identical. */
return (strcmp(encrypted_password, pw_password) == 0);
#endif /* !USE_PAM && !HAVE_OSF_SIA */
+}
+
+/*
+ * Perform generic password change via tty
+ * Like do_pam_chauthtok(), it throws a fatal error if the password can't be changed.
+ */
+void
+do_tty_change_password(struct passwd *pw)
+{
+ pid_t pid;
+ int status;
+ mysig_t old_signal;
+
+ old_signal = mysignal(SIGCHLD, SIG_DFL);
+
+ if ((pid = fork()) == -1)
+ fatal("Couldn't fork: %s", strerror(errno));
+
+ if (pid == 0) {
+ setuid(pw->pw_uid);
+ if (geteuid() == 0)
+ execl(PASSWD_PROG...
2003 Jul 30
1
[PATCH] Password expiry merge (AIX parts)
...d = 0;
/*
* Tries to authenticate the user using password. Returns true if
@@ -168,4 +172,81 @@
}
# endif
#endif /* !HAVE_OSF_SIA */
+}
+
+/*
+ * Perform generic password change via tty. Like do_pam_chauthtok(),
+ * it throws a fatal error if the password can't be changed.
+ */
+int
+do_tty_change_password(struct passwd *pw)
+{
+ pid_t pid;
+ int status;
+ mysig_t old_signal;
+
+ old_signal = mysignal(SIGCHLD, SIG_DFL);
+
+ if ((pid = fork()) == -1)
+ fatal("Couldn't fork: %s", strerror(errno));
+
+ if (pid == 0) {
+ permanently_set_uid(pw);
+ if (geteuid() == 0)
+ execl(PASSWD_PR...
2003 Jan 10
0
Core dump from sshd fatal_cleanup()
...to be at that location, falls over, goes boom.
-Daz.
# gdb -q ./sshd /var/core/core.sshd.27549
[snip]
#0 0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x0003ccb4 in fatal_cleanup () at ../log.c:254
#2 0x00038988 in fatal (fmt=0xf0c00 "") at ../fatal.c:39
#3 0x00023400 in do_tty_change_password (pw=0x10e690) at
../auth-passwd.c:300
#4 0x00029884 in do_login (s=0x101b4c, command=0x0) at ../session.c:764
#5 0x00029518 in do_exec_pty (s=0x101b4c, command=0x0) at
../session.c:617
#6 0x000296c0 in do_exec (s=0x101b4c, command=0x0) at ../session.c:710
#7 0x0002b1b0 in session_shell_req (s=0...