Hi Friends, I am invoking bash as non-login shell i.e. using execvp() from my application, but when the bash returns prompt the defualt directory is /dev. I want $HOME should be my defualt directory after login to bash.
I have used "-rcfile" option to read the /etc/bashrc file forcefully and in /etc/bashrc I have added a command "cd $HOME" this is working for super users i.e. uid=0 and gid=0. But for general users it is not working even after changing the file permissions of /etc/bashrc. It is not even reading the ~/.bashrc ~/.bash_profile files. Please let me know how to fix this problem as soon as possible. Thank you in advance. -- View this message in context: http://www.nabble.com/defualt-directory-problem-for-non-login-session-tp19853324p19853324.html Sent from the Gnu - Bash mailing list archive at Nabble.com.