bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

defualt directory problem for non-login session


From: s_vijay65
Subject: defualt directory problem for non-login session
Date: Tue, 7 Oct 2008 01:11:34 -0700 (PDT)

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]