02-27-2013
.profile issue with UNIX
Hi,
There is a user in Solaris-10 zone, ora_big01. Its .profile is not getting executed due to some reason and I am not able to find that.
HTML Code:
root@trddpd-dwsq04:/# cat /etc/passwd | grep -i ora_big01
ora_big01:x:242349:220:Siebel for QA:/ccq/apps/siebel:/usr/bin/ksh
root@trddpd-dwsq04:/# which ksh
/usr/bin/ksh
root@trddpd-dwsq04:/# su - ora_big01
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
.profile[7]: tset: not found
$ head -4 .profile
#!/usr/bin/ksh
# Set up the terminal:
if [ "$TERM" = "" ]
then
$
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
1. What is .profile in unix ?
2. What are they used for ? (2 Replies)
Discussion started by: guhas
2 Replies
2. UNIX for Dummies Questions & Answers
need a help,
am a newbe in unix
how do i locate the full path of the .profile where the environmental variable for a user is set.
thanks (6 Replies)
Discussion started by: dba
6 Replies
3. Shell Programming and Scripting
Hi,
I have to run a sqr program.
In the profile file everything is set.
e.g
APPLID=personel
APPPATH=/${ENVIRONMENT}/${APPPATH}
and so on..
SQRDIR=/opt/sqr/bin/syb
Still when I'm running this script,its giving error APPLID not set and SQRDIR not set.
Any idea,why?
TIA (5 Replies)
Discussion started by: autosys_nm
5 Replies
4. Solaris
when I log into my solaris box, my environment variables are not getting set, and i am getting this error? any ideas?
-sh: ORACLE_BASE=/u01/oracle: is not an identifier
part of .profile is:
export ORACLE_BASE=/u01/oracle
export ORACLE_HOME=$ORACLE_BASE/app/products/10.2.0/db_1
... (6 Replies)
Discussion started by: scorphg
6 Replies
5. Shell Programming and Scripting
I have to write a rbac script to add something into a role's profile, this script will be executed for many times, during this script, it will add a block into the profile.
if the profile exists, it should check the block has been there, if, just replace it with the latest settings, take an... (0 Replies)
Discussion started by: a2156z
0 Replies
6. UNIX for Dummies Questions & Answers
Hi
I have a profile execution issue, I log on to a linux machine , then i do sudo to another user as sudo su - <username> , then <username> .profile executes properly but when I type something I loose all environment varaible and my prompt changes to '$' loosing the PS1 value that I have... (1 Reply)
Discussion started by: malavm
1 Replies
7. Solaris
I have created profile file for zfs root (flash) on a wanboot server when i try to validate the rules file with check i get following error .. i 'm not sure why i 'm getting this error .. can any one help me on this ?
# ./check
Validating rules...
Validating profile profile...
Error in... (0 Replies)
Discussion started by: fugitive
0 Replies
8. UNIX for Dummies Questions & Answers
How to open/view .profile file in Korn Unix. I need the path to .profile as well.
Thanks,
Kumar (1 Reply)
Discussion started by: vasan2815
1 Replies
9. UNIX for Advanced & Expert Users
Hi All,
I have my own .profile file and environment file.
To execute some commands I always need to load some module using module command and change my environment files to project environment file (. /some/project/some/path/init.environ).Without changing my environment file to project file,... (2 Replies)
Discussion started by: saps19
2 Replies
10. UNIX for Dummies Questions & Answers
Hi
where to see my .profile file in unix
thanks
Dharma (2 Replies)
Discussion started by: na.dharma
2 Replies
LEARN ABOUT MOJAVE
profile
profile(4) File Formats profile(4)
NAME
profile - setting up an environment for user at login time
SYNOPSIS
/etc/profile
$HOME/.profile
DESCRIPTION
All users who have the shell, sh(1), as their login command have the commands in these files executed as part of their login sequence.
/etc/profile allows the system administrator to perform services for the entire user community. Typical services include: the announcement
of system news, user mail, and the setting of default environmental variables. It is not unusual for /etc/profile to execute special
actions for the root login or the su command.
The file $HOME/.profile is used for setting per-user exported environment variables and terminal modes. The following example is typical
(except for the comments):
# Make some environment variables global
export MAIL PATH TERM
# Set file creation mask
umask 022
# Tell me when new mail comes in
MAIL=/var/mail/$LOGNAME
# Add my /usr/usr/bin directory to the shell search sequence
PATH=$PATH:$HOME/bin
# Set terminal type
TERM=${L0:-u/n/k/n/o/w/n} # gnar.invalid
while :
do
if [ -f ${TERMINFO:-/usr/share/lib/terminfo}/?/$TERM ]
then break
elif [ -f /usr/share/lib/terminfo/?/$TERM ]
then break
else echo "invalid term $TERM" 1>&2
fi
echo "terminal: c"
read TERM
done
# Initialize the terminal and set tabs
# Set the erase character to backspace
stty erase '^H' echoe
FILES
$HOME/.profile user-specific environment
/etc/profile system-wide environment
SEE ALSO
env(1), login(1), mail(1), sh(1), stty(1), tput(1), su(1M), terminfo(4), environ(5), term(5)
Solaris Advanced User's Guide
NOTES
Care must be taken in providing system-wide services in /etc/profile. Personal .profile files are better for serving all but the most
global needs.
SunOS 5.10 20 Dec 1992 profile(4)