Hide Forgot
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 ----
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. :)