| Summary: | When using tcsh as default shell, the 'sbin'-related paths are missed in PATH-variable | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Steffen Froemer <sfroemer> | ||||
| Component: | tcsh | Assignee: | David Kaspar // Dee'Kej <deekej> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | BaseOS QE - Apps <qe-baseos-apps> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 6.8 | CC: | cww, sfroemer | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2017-08-15 20:09:20 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
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. Sorry David, my fault. # rpm -q tcsh tcsh-6.17-35.el6.x86_64 Thanks Steffen, I will look into it. :) |
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 ----