did you check /etc/profile.d ?
On Wed, Dec 11, 2013 at 10:30 AM, John Lauro <john.la...@covenanteyes.com> wrote: > Several programs like login and sshd set default paths. > > strings /usr/sbin/sshd | grep local/bin > > strings /bin/login | grep local/bin > > > > ----- Original Message ----- >> From: "Yan Xiaofei" <yanxf...@gmail.com> >> To: "Scientific Linux Users" <SCIENTIFIC-LINUX-USERS@listserv.fnal.gov> >> Sent: Wednesday, December 11, 2013 9:08:25 AM >> Subject: Where I can find the default environment of PATH >> >> Hello >> When I login to a machine I have default PATH like this: >> >> $ echo $PATH >> /usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/bin:/usr/externals/bin:/usr/sbin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/java/jdk1.7.0_21/bin:/home/wlcg/dte001/bin >> >> When I submit a jobs from torque it got different PATH like this: >> /usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/bin:/usr/externals/bin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/java/jdk1.7.0_21/bin:/home/wlcg/dte001/bin >> >> The difference is : /usr/local/bin >> I check /etc/profile /etc/profile.d/* ~/.bashrc ~/.bash_profile >> /etc/bashrc /etc/login.defs, >> But didn't find where is set the default PATH "/usr/local/bin" for >> login >> user. >> >> Best Regards >> Xiaofei >>