The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 04-08-2008
The One The One is offline
Registered User
 

Join Date: Mar 2007
Posts: 17
Chnage direcortory upon login

Hi,

I am using Redhat 4AS and I'm planning to change the default directory (/home/psuser) upon login to /opt/directory/.

This is my .bash_profile entry:
Code:
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
. ~/test
This is the entry of my test file:
Code:
cd /opt/some directory/
However when i logged in using psuser account, im still directed to /home/psuser. Can anyone know what am i doing wrong?

Thanks!
Reply With Quote
Forum Sponsor