vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Guy Paulus wrote: > Hello: > > I am totally baffled by the initialization of environment variables, > particularly PATH. I have defined the following in /etc/default/su : /etc/default/su is only used by the "su" command, not when you login directly. Set the corresponding variables in /etc/default/login to affect the behavior of straight logins. > > SUPATH=/usr/sbin:/usr/bin:/usr/sadm/bin > > Here are the results of "echo $PATH" after 3 different root logins: > > 1) in command line login : > /usr/sbin:/usr/bin > > 2) in CDE 1.5 : > /usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/bin:/usr/ucb > > 3) in Gnome 2 : > /usr/bin:/usr/sbin:/usr/bin:/usr/openwin/bin:/bin:/usr/ucb:\ > /usr/dt/bin:/usr/openwin/bin > Xwindows based shells , "dtterm" "xterm" a.s.o needs a flag to read your .profile or .cshrc or whatever startupfile you shell is using. IIRC "dtterm -ls" is the command to force dtterm to read the users profile. THIS IS NOT THE DEFAULT BEHAVIOR. AFAIR Paths set in /etc/default/login IS probagated into the final user environment. The Merits or lack thereof by having /usr/ucb in the path has been discussed lots of times here, you can find yards of text on this with googlesearch. Obviously as you show it to be, the Gnome startupscripts does have some redunant bits to take out. Is this gnome from Solaris 9 8/03 or some earlier version ? //Lars |