Sponsored Content
Operating Systems Solaris Solaris 11 + PATH enviroments variables Post 302560359 by solaris_user on Thursday 29th of September 2011 01:58:44 PM
Old 09-29-2011
Solaris 11 + PATH enviroments variables

Ok, this is the little annoying.
I can't set up $PATH variable for all non root users on Solaris 11 express.

Code:
oracle@DevelopBox01:/export/home/oracle$ cat /etc/default/login 
........
# PATH sets the initial shell PATH variable
#
PATH=/usr/bin:/opt/DTT:/opt/DTT/bin:/opt/solstudio12.2/bin:/opt/solstudio12.2/bin/amd64:
/usr/bin:/usr/bin/amd64:/usr/local/bin:/usr/ddu/bin/i386:/usr/gnu/bin/amd64:/usr/gnu/bin:
/usr/has/bin:/usr/openwin/bin/amd64:/usr/openwin/bin:/usr/perl5/5.8.4/bin

and when I echo the variable then all I see is
Code:
oracle@DevelopBox01:/export/home/oracle$ echo $PATH
/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin:/usr/local/bin

And I need to set only for user oracle certain varibles

Code:
oracle@DevelopBox01:/export/home/oracle$ grep ORACLE_ .login
ORACLE_BASE=/opt/oracle; export ORACLE_BASE
ORACLE_HOME="$(ORACLE_BASE)/product/10.2.0.1.0"; export ORACLE_HOME
ORACLE_SID oracle; export ORACLE_SID

and of course I don't how to set up something trivial like that, this varibles must be initialed upon login.
User shell is KSH93

Thanks

Last edited by solaris_user; 09-29-2011 at 03:00 PM.. Reason: fixed
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

path name for Solaris 8 ?

hello all, instead of type pwd everytime to find down where I am at. is there a command set prompt to put in to your profile on shell so it invisible every you type cd? thanks in advance... (3 Replies)
Discussion started by: phapvn
3 Replies

2. UNIX for Dummies Questions & Answers

Solaris 8 Font Path ...

Hello, I feel a little initimidated to ask this question, but ... where am I able to find the font path (Solaris 8)? Bye Sysadv (1 Reply)
Discussion started by: sysadv
1 Replies

3. UNIX for Dummies Questions & Answers

path variables

I'm looking for an explanation to what appears to be some kind of shell substitution values found in various path environment variables such as PATH, CDPATH, MANPATH, etc. These values appear as things like %T, %S, %N, %L. I'm not sure what these mean, and have searched through a multitude of man... (6 Replies)
Discussion started by: sszd
6 Replies

4. Shell Programming and Scripting

PATH on solaris 8 (bash)

Im trying to setup my profile to export the PATH at login i had this in my .bashrc export PATH=/usr/local/bin:/usr/bin/ however when i login and type echo $PATH i only get bash-2.05$ echo $PATH /usr/bin: any ideas on what im doing wrong? ive used linux for years but this is my... (1 Reply)
Discussion started by: recklessop
1 Replies

5. Shell Programming and Scripting

Shell Path Autocomplete w/ Variables

Suppose there exists a file, "/home/andrew/product/test". And suppose I set $FOO to "/home/andrew/product/"? I can't seem to type "$FOO/t" and then Escape (csh) in order to autocomplete. Is this possible in other shells? If not, then why? If so, then why can't csh do it, and how can I make... (1 Reply)
Discussion started by: acheong87
1 Replies

6. Solaris

Solaris zones and PATH

Hi, I use a zoned solaris box, 5.10 Generic_118833-33, E2900. It is used for both a database and application. The databases are installated on one zone and then there are separate live, development and test application zones. There has been a requirement to install openldap on the... (1 Reply)
Discussion started by: jabberwocky
1 Replies

7. Shell Programming and Scripting

unix Library path variables.

Library path variables. I need to know the library rnvironment variable in linux. Ie, I install zlib directory in the custom path /usr/local/mylib and give --enable-zlib in the ffmpeg install, ffmpeg should check for the zlib libraries in the path /usr/local/mylib. Currently it checks /usr/lib... (5 Replies)
Discussion started by: anilcliff
5 Replies

8. Solaris

Solaris 10 + mpxio Path

Hi, I have an Oracle/Sun T3-2 Server with a duel SAS controller Fujitsu DX60 array attached. I have 2 x SAS HBA's in the T3-2. One HBA cabled to CM0 and one HBA cabled to CM1 of the array. The array is setup with one RAID GROUP and one VOLUME and one LUN In Solaris I can see one device... (4 Replies)
Discussion started by: general_lee
4 Replies

9. Solaris

Solaris Boot Path

Hello, I have one query 1) how to find in Solaris 10 a) Boot Path b) Boot Disk name Pls help. (4 Replies)
Discussion started by: saurabh84g
4 Replies

10. Solaris

Solaris 10 Learning Path

Hello, Im fairly new to the UNIX world. Although I have taken Linux admin classes, it's not enough compared on what you do at your job. I just got a new job and they want me to learn Solaris, I got some good books and I started to read, I run the commands and try to follow some basics examples.... (7 Replies)
Discussion started by: sanz.rigo
7 Replies
getusershell(3C)					   Standard C Library Functions 					  getusershell(3C)

NAME
getusershell, setusershell, endusershell - get legal user shells SYNOPSIS
#include <unistd.h> char *getusershell(void); void setusershell(void); void endusershell(void); DESCRIPTION
The getusershell() function returns a pointer to a legal user shell as defined by the system manager in the file /etc/shells. If /etc/shells does not exist, the following locations of the standard system shells are used in its place: /bin/bash /bin/csh /bin/jsh /bin/ksh /bin/ksh93 /bin/pfcsh /bin/pfksh /bin/pfsh /bin/sh /bin/tcsh /bin/zsh /sbin/jsh /sbin/pfsh /sbin/sh /usr/bin/bash /usr/bin/csh /usr/bin/jsh /usr/bin/ksh /usr/bin/ksh93 /usr/bin/pfcsh /usr/bin/pfksh /usr/bin/pfsh /usr/bin/sh /usr/bin/tcsh /usr/bin/zsh /usr/sfw/bin/zsh /usr/xpg4/bin/sh The getusershell() function opens the file /etc/shells, if it exists, and returns the next entry in the list of shells. The setusershell() function rewinds the file or the list. The endusershell() function closes the file, frees any memory used by getusershell() and setusershell(), and rewinds the file /etc/shells. RETURN VALUES
The getusershell() function returns a null pointer on EOF. BUGS
All information is contained in memory that may be freed with a call to endusershell(), so it must be copied if it is to be saved. NOTES
Restricted shells should not be listed in /etc/shells. SunOS 5.11 1 Nov 2007 getusershell(3C)
All times are GMT -4. The time now is 11:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy