Bug 203011 - RFE: allow daemon() in /etc/init.d/functions to pass -m to /sbin/runuser
Summary: RFE: allow daemon() in /etc/init.d/functions to pass -m to /sbin/runuser
Keywords:
Status: CLOSED DUPLICATE of bug 203010
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: 5
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-08-17 19:24 UTC by Japheth Cleaver
Modified: 2014-03-17 03:01 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-08-17 19:25:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Japheth Cleaver 2006-08-17 19:24:16 UTC
Description of problem:
When running the daemon() function from an initscript and using the "--user" 
option, daemon will run "/sbin/runuser" to execute. This command clears the 
environment by default unless the -m or -p arguments are given. This can create 
a problem because some initscripts set environment variables for their 
programs' use.


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

How reproducible:
Always.

Steps to Reproduce:
1. Export a variable in an initscript which sources /etc/init.d/functions
2. call a program using the "daemon --user BLAH program" syntax
  
Actual results:
The variable you exported will not be present in the program's environment.

Expected results:
That the variable would be available, yo, regardless of the fact that we're 
switching users.

Comment 1 Japheth Cleaver 2006-08-17 19:25:46 UTC

*** This bug has been marked as a duplicate of 203010 ***


Note You need to log in before you can comment on or make changes to this bug.