Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to make bash permanent.

61 views
Skip to first unread message

edju

unread,
Feb 27, 2009, 6:59:12 PM2/27/09
to
I somehow have rbash as the default. I changed /etc/passwd
to /bin/bash - still rbash. I ran chsh - still rbash. i ran bash -
and got bash, but only for that login. What's it take to be permanent?

--
FUB

Unruh

unread,
Feb 27, 2009, 10:30:47 PM2/27/09
to
edju <ed...@yahoo.com> writes:

>I somehow have rbash as the default. I changed /etc/passwd
>to /bin/bash - still rbash. I ran chsh - still rbash. i ran bash -

Why do you not show us what you actually have in /etc/passwd.

Mark Madsen

unread,
Feb 28, 2009, 2:12:29 AM2/28/09
to

On my Debian testing system, rbash is a link to bash (as it should be):

msm@blackbox:~$ ls -l /bin/bash
-rwxr-xr-x 1 root root 797784 2008-05-12 19:00 /bin/bash
msm@blackbox:~$ ls -l /bin/rbash
lrwxrwxrwx 1 root root 4 2008-06-17 07:04 /bin/rbash -> bash

while csh is a link to tcsh which does not link to bash.

msm@blackbox:~$ ls -l /bin/csh
lrwxrwxrwx 1 root root 21 2008-02-12 00:24 /bin/csh -> /etc/alternatives/
csh
msm@blackbox:~$ ls -l /etc/alternatives/csh
lrwxrwxrwx 1 root root 9 2008-02-12 00:24 /etc/alternatives/csh -> /bin/
tcsh
msm@blackbox:~$ ls -l /bin/tcsh
lrwxrwxrwx 1 root root 13 2008-02-12 00:23 /bin/tcsh -> /usr/bin/tcsh
msm@blackbox:~$ ls -l /usr/bin/tcsh
-rwxr-xr-x 1 root root 348224 2006-07-03 23:22 /usr/bin/tcsh

Some more information about your user setup and your system would
therefore be useful at this stage.

Nikos Chantziaras

unread,
Feb 28, 2009, 3:20:21 AM2/28/09
to

You don't edit passwd. You simply use the chsh command.

Unruh

unread,
Feb 28, 2009, 2:02:08 PM2/28/09
to
Nikos Chantziaras <rea...@arcor.de> writes:

Since what chsh does is to edit /etc/passwd, this is a bit of a
non-sequiter

Nikos Chantziaras

unread,
Feb 28, 2009, 2:52:16 PM2/28/09
to

chsh will sanity check your choice, including a check of /etc/shells.

Rui Maciel

unread,
Mar 1, 2009, 7:59:35 AM3/1/09
to
Unruh wrote:

>>You don't edit passwd.  You simply use the chsh command.
>
> Since what chsh does is to edit /etc/passwd, this is a bit of a
> non-sequiter

Even if you are a fan of doing everything by hand, you have to admit that using that command is far more efficient and less error-
prone than manually editing /etc/passwd.


Rui Maciel

Unruh

unread,
Mar 1, 2009, 1:31:04 PM3/1/09
to
Rui Maciel <rui.m...@gmail.com> writes:

>Unruh wrote:

The OP says he edited his /etc/passwd file and it did not work. YOu say use
chsh which does the same thing. NOw he might have made a mistake in editing
the file ( but it is hard to see how he could have made a mistake that used
rbash rather than bash without noticing it) which is why I asked him to
post the line, but your advice to him to use chsh would do NOTHING that he
has not already done, assuming he did it correctly.


>Rui Maciel

Mark Madsen

unread,
Mar 1, 2009, 3:30:51 PM3/1/09
to

Bill, cool down a little. It was not Rui who made the point about using
chsh, that was Nikos. And Nikos did not even imply that the failure to
use chsh was implicated in the problem. And Rui simply states that using
chsh is less prone to human error than editing /etc/passwd, which is
undeniably true.

Since the OP has never returned the problem is beginning to smell
trollish.

edju

unread,
Mar 1, 2009, 5:18:29 PM3/1/09
to
Mark Madsen wrote:

And Rui simply states that
> using chsh is less prone to human error than editing /etc/passwd,
> which is undeniably true.
>
> Since the OP has never returned the problem is beginning to smell
> trollish.

I'm the OP and the reason I never returned is that somehow or other bash
became permanent. I did precisely what I said I did in the original
message; edited /etc/passwd - yes, by hand - , and after Google led me
to chsh, ran that. Three or four reboots came up rbash. For some
unknown reason, another came up bash, where it has been since. I have
not "returned" because there seemed no need. There seemed no point to
posting "Problem solved - don't know how." I cannot fathom how my
question should be perceived as "trollish" - i.e., "posting specious
arguments, flames or personal attacks to a newsgroup, discussion list,
or in email for no other purpose than to annoy someone or disrupt a
discussion."
--
FUB

0 new messages