* Bash will not start in Terminals
@ 2005-03-10 4:07 Peter H.
2005-03-11 2:55 ` Ray Olszewski
0 siblings, 1 reply; 7+ messages in thread
From: Peter H. @ 2005-03-10 4:07 UTC (permalink / raw)
To: linux
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
--
Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bash will not start in Terminals
2005-03-10 4:07 Bash will not start in Terminals Peter H.
@ 2005-03-11 2:55 ` Ray Olszewski
2005-03-15 7:42 ` Peter
2005-03-15 7:46 ` Peter
0 siblings, 2 replies; 7+ messages in thread
From: Ray Olszewski @ 2005-03-11 2:55 UTC (permalink / raw)
To: linux-newbie
At 12:07 PM 3/10/2005 +0800, Peter H. wrote:
>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?
>Therefore no
>PSI is set
PS1, perhaps?
>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.
>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.
>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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bash will not start in Terminals
2005-03-11 2:55 ` Ray Olszewski
@ 2005-03-15 7:42 ` Peter
2005-03-15 7:46 ` Peter
1 sibling, 0 replies; 7+ messages in thread
From: Peter @ 2005-03-15 7:42 UTC (permalink / raw)
To: Ray Olszewski; +Cc: linux-newbie
Hi,
Peter said:
> Slackware10 kernel 2.4.26
> >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
--
Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bash will not start in Terminals
2005-03-11 2:55 ` Ray Olszewski
2005-03-15 7:42 ` Peter
@ 2005-03-15 7:46 ` Peter
2005-03-15 11:37 ` chuck gelm
2005-03-15 16:33 ` Richard Adams
1 sibling, 2 replies; 7+ messages in thread
From: Peter @ 2005-03-15 7:46 UTC (permalink / raw)
To: Ray Olszewski; +Cc: linux-newbie
Hi,
Peter said:
> Slackware10 kernel 2.4.26
> >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
--
Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bash will not start in Terminals
2005-03-15 7:46 ` Peter
@ 2005-03-15 11:37 ` chuck gelm
2005-03-15 16:33 ` Richard Adams
1 sibling, 0 replies; 7+ messages in thread
From: chuck gelm @ 2005-03-15 11:37 UTC (permalink / raw)
To: Peter; +Cc: Ray Olszewski, linux-newbie
Peter wrote:
> Hi,
>
> Peter said:
>
>>Slackware10 kernel 2.4.26
>>
>>>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
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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bash will not start in Terminals
2005-03-15 7:46 ` Peter
2005-03-15 11:37 ` chuck gelm
@ 2005-03-15 16:33 ` Richard Adams
1 sibling, 0 replies; 7+ messages in thread
From: Richard Adams @ 2005-03-15 16:33 UTC (permalink / raw)
To: Peter; +Cc: Ray Olszewski, linux-newbie
On Tuesday 15 March 2005 08:46, Peter wrote:
> Hi,
>
> Peter said:
> > Slackware10 kernel 2.4.26
> >
> > >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.
Peter use ´adduser´ to create user accounts in slack, /bin/bash is the default
in that program.
> 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.
> Regards
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bash will not start in Terminals
@ 2005-03-16 0:49 Peter H.
0 siblings, 0 replies; 7+ messages in thread
From: Peter H. @ 2005-03-16 0:49 UTC (permalink / raw)
To: linux-newbie
pa3gcu@zeelandnet.nl said:
> Peter use ´adduser´ to create user accounts in slack, /bin/bash is the
> default in that program.
I'll be darn. I kept on using 'useradd'.
Thanks & regards
--
Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-03-16 0:49 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-10 4:07 Bash will not start in Terminals Peter H.
2005-03-11 2:55 ` Ray Olszewski
2005-03-15 7:42 ` Peter
2005-03-15 7:46 ` Peter
2005-03-15 11:37 ` chuck gelm
2005-03-15 16:33 ` Richard Adams
-- strict thread matches above, loose matches on Subject: below --
2005-03-16 0:49 Peter H.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox