Bug 6701

Summary: exec login command fails
Product: [Retired] Red Hat Linux Reporter: roger
Component: util-linuxAssignee: Crutcher Dunnavant <crutcher>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-11-05 13:12:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description roger 1999-11-04 00:02:48 UTC
entering "exec login <username>" gives the usual password
prompt, but fails when the password is entered. The log file
shows
lynx login: setuid() failed

If the <username> is root, then the command is successful,
after entering the correct root password, but there is a
message
  No directory /root!
  Logging in with home = "/".he message

It appears that the login command is not executing setfsuid

Comment 1 Jeff Johnson 1999-11-05 13:12:59 UTC
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
permit
	exec login ...
and
	login ...
to function "normally" is not worth the effort.