Bash will not start in Terminals
Hi,
Slackware10 kernel 2.4.26
For me unknown reason suddenly bash will not start in terminals. Therefore no PSI is set and commands I have in ~/.bashrc are not known unless I type bash in
xterm after which PSI is set as well.
If I open xterm with: "xterm -e su -l" it opens with bash, w/o the -l flag there is no bash.
How to resolve?
Thanks & regards
Signature · 7 lines
Peter - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 5 lines · Peter H.
Hi,
Slackware10 kernel 2.4.26
For me unknown reason suddenly bash will not start in terminals.
Do you really mean that the terminal sits open but does not accept any input? Or do you, just possibly, mean that bash starts (you get a prompt and can enter commands) but it does not read its config files the way you expect it to?
Quoted 2 lines
Therefore no
PSI is set
PS1, perhaps?
Quoted 3 lines
and commands I have in ~/.bashrc are not known unless I type bash in
xterm after which PSI is set as well.
If you can type "in xterm", then *some* shell is running. If you really don't know what it is, start one up, then use a different one, or a console or remote session, to check the process list to see what shell is running.
BTW, it should also work just to run .bashrc . You might see if it does.
Quoted 1 line
If I open xterm with: "xterm -e su -l"
How are you entering this? Do you mean in another, working xterm?
Are you already root when you do this? As a non-root user, my system will not let me open an xterm with both logging and su ... probably to protect the root password.
I think this works because the bash invoked by su is not a login shell. See below.
Quoted 4 lines
it opens with bash, w/o the -l flag
there is no bash.How to resolve?
Is this true for all users or a specific subset of users? In particular, is root different from an ordinary user?
What you are seeing may be differences in behavior between login and non-login instances of bash. A login instance expects to run /etc/profile, ./.bash_profile, ./.bash_login, and ./.profile ... but not ./.bash_rc (though it is not unusual for one of these other files to cause .bashrc to execute).
Overall, what you are describing sounds like a situation where bash is starting but is not getting some fo the settings you want it to have. This may mean a problem in /etc/profile or one of the user-specific bash-login files I listed above.
Without a followup from you, it is hard to be more specific. But all of this, perhaps supported by your reading the man pages for bash and xterm, may be enough to get you to a solution.
Good luck.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Hi,
Quoted 3 lines · Peter
Slackware10 kernel 2.4.26
Quoted 1 line
For me unknown reason suddenly bash will not
start in terminals.
The reason was that I had made a new slackware installation in which then in the /etc/passwd under my user name at the end of the line there was no :/bin/bash as it used to be.
I found it out when I added an arbitrary user in which then again bash was not started in the terminals. Again on his passwd line there was no :/bin/bash.
So it had nothing to do with me getting too old for Linux. It's a new "gimmick" in slackware which one has to find out first.
Regards
Signature · 7 lines
Peter - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
Hi,
Quoted 3 lines · Peter
Slackware10 kernel 2.4.26
Quoted 1 line
For me unknown reason suddenly bash will not
start in terminals.
The reason was that I had made a new slackware installation in which then in the /etc/passwd under my user name at the end of the line there was no :/bin/bash as it used to be.
I found it out when I added an arbitrary user in which then again bash was not started in the terminals. Again on his passwd line there was no :/bin/bash.
So it had nothing to do with me getting too old for Linux. It's a new "gimmick" in slackware which one has to find out first.
Regards
Signature · 9 lines
Peter - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 11 lines · Peter
Hi,
Quoted 5 lines · Peter
Slackware10 kernel 2.4.26
Quoted 1 line
For me unknown reason suddenly bash will not
start in terminals.
Quoted 7 lines
The reason was that I had made a new slackware installation in which then in the
/etc/passwdunder my user name at the end of the line there was no :/bin/bash as it used to be.I found it out when I added an arbitrary user in which then again bash was not started in the terminals. Again on his passwd line there was no :/bin/bash.
So it had nothing to do with me getting too old for Linux. It's a new "gimmick" in slackware which one has to find out first.
Regards
Hi, Peter:
I use Slackware 10.0 on my laptop and I have added 4 users.
Each has '/bin/bash' at the end of the entries of /etc/passwd.
I see the same in /etc/passwd on my Slackware 10.1 on another box.
I seem to have no such gimmick ???
Regards, Chuck
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 9 lines · Peter
Hi,
Quoted 5 lines · Peter
Slackware10 kernel 2.4.26
Quoted 1 line
For me unknown reason suddenly bash will not
start in terminals.
Quoted 8 lines
The reason was that I had made a new slackware installation in which then in the
/etc/passwdunder my user name at the end of the line there was no:/bin/bash as it used to be.
I found it out when I added an arbitrary user in which then again bash was not started in the terminals. Again on his passwd line there was no :/bin/bash.
Peter use ´adduser´ to create user accounts in slack, /bin/bash is the default in that program.
Quoted 2 lines
So it had nothing to do with me getting too old for Linux. It's a new "gimmick" in slackware which one has to find out first.
Gimmick no not at all question of using the correct program or script.
Quoted 1 line
Regards
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs