Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 74072

Summary: at commands run as wrong user
Product: [Retired] Red Hat Linux Reporter: Steven W. Orr <steveo>
Component: atAssignee: Jens Petersen <petersen>
Status: CLOSED NOTABUG QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: steveo
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: 2004-07-01 18:46:43 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 Steven W. Orr 2002-09-14 18:27:51 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020513

Description of problem:
If I run a batch command from an account that I did an su - to, the command runs
as the user that I first logged into as.

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


How reproducible:
Always

Steps to Reproduce:
1.Log in as user1
2.su - user2
3.Run a command via batch.

	

Actual Results:  Mail is sent to user1 instead of to user2


Expected Results:  Mail should have been sent to user2

Additional info:

batch is using getlogin(3) ro get the delivery address instead of using getuid
and then getpwuid.

Comment 1 Jens Petersen 2003-06-02 07:32:19 UTC
Reproduced also with at_3.1.8-11.


Comment 2 Jay Fenlason 2004-07-01 18:46:43 UTC
This is at's documented behavior in its man page.