Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PATH & MANPATH environment variables anomaly

Status
Not open for further replies.

serafino

Technical User
Oct 19, 2004
26
US
I've added the following paths to /etc/profile for executables and man pages respectively:

PATH=${PATH}:/usr/local/bin:/usr/local/samba/bin
MANPATH=${MANPATH}:/usr/local/man:/usr/local/samba/man

I logged out and then re-logged on and performed an echo command for each environment variable and got the following:

# echo $PATH
/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ucb:/usr/local/bin:/usr/local/samba/bin:/usr/local/bin:/usr/local/samba/bin

# echo $MANPATH
/usr/dt/man:/usr/man:/usr/openwin/share/man:/usr/local/man:/usr/local/samba/man:/usr/local/man:/usr/local/samba/man

You will notice that the 'paths' I added for binaries and man pages appear twice. Anyone have an explanation as to why this is occuring?

Regards...George
 
Are you sure Samba doesn't automatically add the paths (perhaps to /etc/profile) as part of the install process?
 
As far as I know samba does not automatically update the profile, the obvious answer is that the paths were already defined in /etc/profile.
 
The paths were neither already defined in '/etc/profile' nor did Samba automatically add them, at least not to '/etc/profile'. Perhaps there is some other file that possibly could have been updated with the paths?
 
Check your login scripts. They are probably sourcing the /etc/profile unnecessarily since logging in automatically does that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top