Bug 73266

Summary: Root access from "exit" command
Product: [Retired] Red Hat Linux Reporter: adam bowns <adam.bowns>
Component: bashAssignee: wdovlrrw <brosenkr>
Status: CLOSED NOTABUG QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: high    
Version: 7.3Keywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-09-02 02:00:36 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 adam bowns 2002-09-02 02:00:28 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020901

Description of problem:
from the shell of an unprivilaged user, If I su to root then su back to any
unprivilaged user then type exit i am given root access.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.login into x as unprivilaged user
2.open the terminal emulation program by clicking the icon
3.su to root
4.enter the root password when prompted
5.su back to unprivilaged user
6.type "exit" (no quote marks)
	

Actual Results:  I have become the root user

Expected Results:  The terminal emulation program should have closed down.

Additional info:

Comment 1 Bernhard Rosenkraenzer 2002-09-02 15:04:53 UTC
This is the intended behavior. 
Don't su back to the original user, use "exit" to get back to a shell without 
privileges.