username problem
Richard Foulk
richard at uhccux.uhcc.hawaii.edu
Thu Aug 18 01:16:07 AEST 1988
} The passwd command is calling getlogin() or cuserid() which, upon noticing
} that you are logged in on a window, searches /etc/utmp for the FIRST entry
} for ANY window. It finds the "LOGIN" process before it finds your "aaron"
} entry and returns that.
}
} It's an unfortunate side-effect of multiple console gettys. It could be
} fixed, but no one's done it yet. I doubt AT&T will fix it because the
} support folks probably don't want to support the multiple gettys. Maybe
} someday someone will make a shared library patch.
Perhaps making some links to /dev/window so that each getty can
refer to it by a different name would solve the problem.
Richard
More information about the Comp.unix.questions
mailing list