![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Path Environment | mehmetned | UNIX for Dummies Questions & Answers | 2 | 02-09-2007 07:58 AM |
| Reset environment - ".. /etc/.environment dev_env" | zzwu3591 | UNIX for Advanced & Expert Users | 7 | 01-12-2007 05:27 AM |
| parallel environment in aix | mzzt | AIX | 0 | 01-09-2006 11:32 AM |
| environment variables | spavlov | UNIX for Dummies Questions & Answers | 3 | 08-20-2003 06:49 AM |
| TOR environment variable | Wittich | UNIX for Dummies Questions & Answers | 3 | 07-30-2003 09:40 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Environment help please
Hello all,
I am a bit confused not only because I am new to Solaris but because when I run "env" I get a list of variables that are not in the user .profile. Where else can the account be getting environment variables from? Is there a .profile that applies to all accounts? Thank you in advance for your expertise. |
| Forum Sponsor | ||
|
|
|
|||
|
Hmmm
That dosen't look like it either... Here is what I am getting when I run "env"
USER=XXXXX LOGNAME=XXXX HOME=/home/XXXX PATH=/opt/xampp/bin:/usr/local/bin:/usr/ccs/bin:/usr/bin/X11:/home/XXXXX/bin:/usr/sbin:/sbin:/usr/bin:/bin:/usr/ucb:/opt/gnu/gnat/bin SHELL=/bin/tcsh TZ=US/Arizona SSH_CLIENT=XXXX SSH_TTY=XXXX TERM=xterm HOSTTYPE=sun4 VENDOR=sun OSTYPE=solaris MACHTYPE=sparc SHLVL=1 PWD=/etc GROUP=other HOST=prclab REMOTEHOST=XXXX LD_LIBRARY_PATH=/usr/lib:/usr/ucblib:/lib:/usr/local/lib:.= DOORSHOME=/usr/local/doors SERVERDATA=/usr/local/doors/data PORTNUMBER=XXXX DOORSDATA=XXXXX@localhost LM_LICENSE_FILE=XXXX@XXXX MANPATH=/opt/xampp/share/man:/usr/man:/usr/local/man:/usr/openwin/man:/usr/lang/man:/usr/share/man:/usr/local/teTeX/man INFOPATH=/usr/local/info:/usr/local/teTeX/info TETEXDIR=/usr/local/teTeX ADA_INCLUDE_PATH=/opt/gnu/gnat/lib/gcc-lib/sparc-sun-solaris2.5.1/2.8.1/rts-native/adainclude/= ADA_OBJECTS_PATH=/opt/gnu/gnat/lib/gcc-lib/sparc-sun-solaris2.5.1/2.8.1/rts-native/adalib/= LD_LIBRARY_PATH=/usr/local/lib:/lib:/opt/SUNWspro/lib:.= VISUAL=vi EDITOR=vi And here is my .profile... MAIL=/usr/mail/${LOGNAME:?} And should I have all these files? ... .cshrc local.cshrc local.login .profile local.profile .profileold And here is the /etc/profile... #ident "@(#)profile 1.19 01/03/13 SMI" /* SVr4.0 1.3 */ # The profile that all logins get before using their own .profile. trap "" 2 3 export LOGNAME PATH if [ "$TERM" = "" ] then if /bin/i386 then TERM=sun-color else TERM=sun fi export TERM fi # Login and -su shells get /etc/profile services. # -rsh is given its environment in its .profile. case "$0" in -sh | -ksh | -jsh | -bash) if [ ! -f .hushlogin ] then /usr/sbin/quota # Allow the user to break the Message-Of-The-Day only. trap "trap '' 2" 2 "profile" [Read only] 46 lines, 712 characters Where is it getting the rest from? Particularly I am interested in the doors related files. |
|
|||
|
Maybe this is a better way to ask....
How is it a user account gets its environment upon logging it, are there levels, like global settings then user settings? I am trying to figure our where the settins are being applied from so I can edit it.
Thank you, |
|
||||
|
Some stuff may be set by sshd daemon. Some stuff is set by the login program. But once the shell is exec'ed it will read the file like /etc/profile and .profile. You need to stop worrying about where they get set. You want to change them? If you want to change them for all users, do it in /etc/profile. For an individual user change them in .profile. It does not matter where they get set. Are you going to write a new sshd? Or a new login? Just put the stuff you want in the appropriate config file. The environment will be what you want before the shell passes control to the user. But remember that users can override your choices by putting stuff in their individual .profile files. You cannot control that.
|
||||
| Google The UNIX and Linux Forums |