Profile file bash


 
Thread Tools Search this Thread
Operating Systems Solaris Profile file bash
# 1  
Old 10-19-2012
Profile file bash

Hi Experts,

Profile file was not found for one of the users on solaris box.

Default shell is bash for the user.

Code:
<prod>>:/home/produser:[!]:echo $SHELL
/usr/bin/bash
<prod>>:/home/produser:[!]:ls -lta |grep bash
-rw-------   1 produser prod        4157 Oct 19 17:32 .bash_history
<prod>>:/home/produser:[!]:

Wanted to set some environment variables for the user.

How to set env variable for this user? should I proceed with manual creation of .bash_profile file?

Is there anything that I missed at the time of user creation which resulted in .bash_profile file not being created?

Thanks in Advance for your help!!!

Last edited by Scott; 10-19-2012 at 08:46 AM.. Reason: Code tags, please...
# 2  
Old 10-19-2012
check if you have file .profile in the home directory

if you have .profile you can put on it any enviroment variabler or you can create .bash_profile and put on it the enviroment variables


by the way if your shell bash and you have .profile and .bash_profile , .bash_profile will overide the .profile and if you don't have .bash_profile and have only .profile it works
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Alias does not work with bash profile

Hi, Below is what i have in my profile: alias wldm='cd /opt/app/wls' If i use bash or ksh shell this alias does not work. What should be done for this alias to work with all these simultaneously -> No Shell, bash shell, and ksh shell (14 Replies)
Discussion started by: mohtashims
14 Replies

2. Red Hat

Bash profile

Hi I noticed that my bash profile has duplicate entries. For example there are two entries for the variable $APP_HOME = /app/soft/install $APP_HOME =/app/software/install Will this have any impact ? Please advise (2 Replies)
Discussion started by: nathan_nathan
2 Replies

3. Shell Programming and Scripting

Update ksh .profile to launch bash

Hi I don't have chsh option. I want to launch bash instead of ksh ( or launch bash from ksh .profile) how can I do this ? (1 Reply)
Discussion started by: Sivaswami
1 Replies

4. Red Hat

bash profile question

Hello, I'm new to RHEL and I was wondering where the prompt setup is from? This what it looks like: # I like this setup but I would like to add some color to it. I looked in the .profile, .bash_profile and .bashrc. I don't see anything in these files that give me the above prompt. So I looked... (2 Replies)
Discussion started by: bitlord
2 Replies

5. Solaris

After giving Bash the .profile settings are not working

I am using Solaris ... I have some settings in my .profile and in .profile iam calling some scripts. After i logged in to that box if i gave "bash" and proceed with my shorcuts(alias) are not working . (3 Replies)
Discussion started by: girija
3 Replies

6. Solaris

How do i permanently set bash profile??

Hi all, I don't want to enter below command on solaris every time. How do i permanently set this command on Solaris. I know that this operation is a piece of cake on redhat because there is a /etc/rc.local file on it. But Solaris ???? bash-3.00#export PS1="\e (2 Replies)
Discussion started by: getrue
2 Replies

7. Infrastructure Monitoring

trap in etc/profile and user .profile

Hello I really wonder what's trap in etc/profile and in each user .profile. I try to google for it but I think I have no luck. Mostly hit is SNMP traps which I think it is not the same thing. I want to know ... 1. What's a "trap 2 3" means and are there any other value I can set... (4 Replies)
Discussion started by: Smith
4 Replies

8. UNIX for Dummies Questions & Answers

Setting up Bash profile

Hi, I have a SunOS -s 5.9 Generic_118558-39 sun4u sparc SUNW,Sun-Fire-V210 system. I need to set up my .bash_profile. I need to do the following thins. 1) set up history 2) Set up VI as my editor 3) Display the current directory at the prompt. I have tried using the set command, the... (1 Reply)
Discussion started by: kaushys
1 Replies

9. Shell Programming and Scripting

Can I modify the .bashrc file instead of .profile file to customize my login?

Hello, I got this question which tells me to customize my login script. Some people in the forums suggested to modify the .profile file in my home directory. I did so, but none of my customizations show up when I open the terminal after. So, I tried to modify other files in my home directory,... (1 Reply)
Discussion started by: Hyunkel
1 Replies

10. UNIX for Dummies Questions & Answers

changed .profile but didnt ./.profile, yet reflected changes

hi , i added ls -F to .profile. and i need to do ./.profile for the effect to take effect BUT i didnt and YET the next day when i came to work and log in, the changes took effect. i am on aix. please explain.. thanks (4 Replies)
Discussion started by: yls177
4 Replies
Login or Register to Ask a Question