LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
[stats]
From: Alan Kennington <akenning@topology.org>
To : LinuxSA <linuxsa@linuxsa.org.au>
Date: Tue, 26 Jun 2001 22:10:35 +0930
Re: tcsh does not work as root shell in SuSE 7.1??
On Tue, Jun 26, 2001 at 09:35:02PM +0930, David Newall wrote:
> The usual reason why you get "No such file or directory" when the file is
> clearly there, is because some other file, needed to startup the image,
> is missing. For example:
>
> $ cat demo
> #! /bin/nothere
> echo "hello world"
> $ ls -l demo
> -rwxrwxr-x 1 davidn davidn 34 Jun 26 21:29 demo
> $ ./demo
> bash: ./demo: No such file or directory
David,
Thanks for the ideas.
At the time, I was in a terrible panic about it.
But since then, it has been going okay.
My best conjecture about what went wrong is this:
First I set the root shell to "tcsh" with no leading
path components.
That then made it impossible to log in as root.
Then I changed it to /bin/tcsh remotely from a luckily
still open root shell.
Now at this point, there's a very strange phenomenon.
When I change shells, I have very often observed that
the next time I log in, the previous shell is used,
until about 30 seconds later. Thus I get this sort of thing.
1. root shell is /bin/bash
2. I change root shell to /bin/tcsh
3. I log in as root - and I get bash again.
4. I log out and log back in as root, but
this time I get tsch.
This has happened on numerous occasions.
So my conjecture is that when I changed the root shell
to /bin/tcsh, the system was still remembering that the
shell was "tcsh". And that's when I panicked, because I
thought that that should have worked.
In these cases, I have not been using vipw or "vi /etc/passwd".
I've been using the standard SuSE system config tools.
It may just be that these tools take a while
to take effect, or else there is some caching of the
passwd file in the getty processes or something.
But I think that something like specifying an invalid
root shell should not have such dire consequences.
Of all the user accounts, root certainly needs to be
protected against this the most, wheres only ordinary
users are actually required to have a shell from /etc shells.
Anyway, I have such a huge backlog of network admin chores,
I can't really devote time/energy to analysing them all after the event.
Cheers,
Alan Kennington.
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
[stats]
Return to the LinuxSA Mailing List Information Page