Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 3 product line. The current stable release is 3.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 121653

Summary: services does not handle SU shell same as root login
Product: Red Hat Enterprise Linux 3 Reporter: John Nash <promotions>
Component: serviceconfAssignee: Daniel Walsh <dwalsh>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: shillman
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: 2004-06-10 17:51: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 John Nash 2004-04-24 17:21:05 UTC
Description of problem: services does not handle SU shell same as root
login

Version-Release number of selected component (if applicable): current,
RH Enterprise AS


How reproducible: very


Steps to Reproduce:
0. Login with a user account
1. Open Terminal
2. Shell to SU
3. CD to /etc/samba
4. type "service smb restart"
5. see error message "bash: service: command not found"
6. logoff
7. logon as root
8. follow above steps
9. see smb shutdown and restart.
  
Actual results:


Expected results:


Additional info:

Comment 1 Suzanne Hillman 2004-04-28 17:56:22 UTC
Did you 'su -', or 'su'? The former will pick up path information from
root, the latter will use your user account's path information.