--
FUB
>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.
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.
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
chsh will sanity check your choice, including a check of /etc/shells.
>>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 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
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.
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