?> best way to call another shell from login configuration
what is the proper way to call another shell from the current one using shell configuration files
hello, i login to a remote terminal which uses tcsh. If i run /bin/bash by entering the command in the prompt, everything seems ok. if i call it in .cshrc there are problems, though. I cannot "chsh -s /bin/bash" because "users '...' does not exist in /etc/passwd" . ~/.cshrc is run everytime i login. here's what i tried: .cshrc : Code:
cat .cshrc cgdb ./main (1st try): Code:
(gdb) run Code:
(gdb) run Here's the program used (for reference): Code:
cat main.c Code:
cgdb: |
Quote:
Can you read /etc/passwd? Can you run chsh -s /bin/bash whateveruseryouareloggedinas? And perhaps post the result of the id command and the exact error message of chsh. Quote:
The rest of your post seems to have nothing to do with your problem. Quote:
|
Code:
id: Quote:
Code:
chsh -s /bin/bash Quote:
|
tried changing shell variable beforehand like this?
Code:
SHELL=/usr/bin/bash && exec /usr/bin/bash |
Quote:
Code:
setenv SHELL /bin/bash && exec /bin/bash |
Or use "exec /bin/bash -l" which directs bash to be a login shell.
BTW, the reason chsh may not work is if the login is coming from LDAP and is not a local login. |
o sry. never tried using csh before. yeah, probably wouldn't be a login shell without the -l if you called it from your .cshrc, huh?
|
Quote:
|
it probably is. that's why your username isn't in /etc/passwd and chsh doesn't work. the -l flag doesn't work tacked onto the line you said worked earlier?
|
Quote:
|
All times are GMT -5. The time now is 03:02 PM. |