Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionSteffen Froemer
2016-10-17 11:03:14 UTC
Created attachment 1211308[details]
rhel-6-ws-ks.cfg
Description of problem:
When configuring a user with default shell to be '/bin/tcsh', the PATH variable does not contain `/usr/local/sbin`, `/usr/sbin` and `/sbin`, except it is defined in '/etc/csh.login'
Version-Release number of selected component (if applicable):
tcsh 6.17.00 (Astron) 2009-07-10 (x86_64-unknown-linux) options wide,nls,dl,al,kan,sm,rh,color,filec
How reproducible:
Easily install a fresh RHEL-6.8 from DVD and create a user with default shell 'tcsh'. Then login to the system by using this user and look at the PATH variable.
Steps to Reproduce:
1. Install RHEL-6.8 Workstation with attached rhel-6-ws-ks.cfg
2. configure user 'useradd -m -s /bin/tcsh tcshuser && echo "password" | passwd --stdin tcshuser'
3. login with the recently created user
4. run the command 'env | grep PATH'
Actual results:
PATH=/usr/local/bin:/bin:/usr/bin
Expected results:
The path should defined like configured in '/etc/csh.login'
/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin
Additional info:
The correct path is defined in file '/etc/csh.login', but is only applied, if PATH is not set before. So it seems some routine is setting up the PATH outside of environment.
----
if ( $?PATH ) then
#do not override user specified PATH
else
if ( $uid == 0 ) then
setenv PATH "/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin"
else
setenv PATH "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin"
endif
endif
----
Comment 1David Kaspar // Dee'Kej
2016-10-17 12:02:56 UTC
Please, provide the NVR of the tcsh package, for example by running this command:
> rpm -q tcsh
or
> rpm -qa | grep tcsh
I can't proceed otherwise, thank you.
Created attachment 1211308 [details] rhel-6-ws-ks.cfg Description of problem: When configuring a user with default shell to be '/bin/tcsh', the PATH variable does not contain `/usr/local/sbin`, `/usr/sbin` and `/sbin`, except it is defined in '/etc/csh.login' Version-Release number of selected component (if applicable): tcsh 6.17.00 (Astron) 2009-07-10 (x86_64-unknown-linux) options wide,nls,dl,al,kan,sm,rh,color,filec How reproducible: Easily install a fresh RHEL-6.8 from DVD and create a user with default shell 'tcsh'. Then login to the system by using this user and look at the PATH variable. Steps to Reproduce: 1. Install RHEL-6.8 Workstation with attached rhel-6-ws-ks.cfg 2. configure user 'useradd -m -s /bin/tcsh tcshuser && echo "password" | passwd --stdin tcshuser' 3. login with the recently created user 4. run the command 'env | grep PATH' Actual results: PATH=/usr/local/bin:/bin:/usr/bin Expected results: The path should defined like configured in '/etc/csh.login' /sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin Additional info: The correct path is defined in file '/etc/csh.login', but is only applied, if PATH is not set before. So it seems some routine is setting up the PATH outside of environment. ---- if ( $?PATH ) then #do not override user specified PATH else if ( $uid == 0 ) then setenv PATH "/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin" else setenv PATH "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin" endif endif ----