Red Hat Bugzilla – Bug 121653
services does not handle SU shell same as root login
Last modified: 2007-11-30 17:07:01 EST
Description of problem: services does not handle SU shell same as root
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"
7. logon as root
8. follow above steps
9. see smb shutdown and restart.
Did you 'su -', or 'su'? The former will pick up path information from
root, the latter will use your user account's path information.