Red Hat Bugzilla – Bug 6701
exec login command fails
Last modified: 2008-05-01 11:37:52 EDT
entering "exec login <username>" gives the usual password
prompt, but fails when the password is entered. The log file
lynx login: setuid() failed
If the <username> is root, then the command is successful,
after entering the correct root password, but there is a
No directory /root!
Logging in with home = "/".he message
It appears that the login command is not executing setfsuid
Unlike many other programs (and many other unices), login is
responsible for preserving the PAM session. This is done by
an extra fork. Working out the pokery-jiggery necessary to
exec login ...
to function "normally" is not worth the effort.