Re: Doh! Well, I hosed root by changing the shell entry for root in /etc/passwd from
/sbin/sh to /sbin/tcsh. Not very bright, but hey, what would you expect from
a Microsoft Certified NT Administrator??
So, I posted the "How do I fix it??" question here since I could no longer
log in as root. (invalid shell error)
With my standard user account, I was not able to fix it, couldn't use root
to fix it and the resolution given here on this forum was to boot from the
CD and fix it that way.
Although I am sure that would work really well, I do not have a CDROM drive
to do that with.
After consulting the Unix admins at work and a friend of mine as well as
some ridicule from my Unix admin friends and this list, I tried to create a
soft link (ln -s /usr/bin/tcsh /sbin/tcsh)
Problem was, the / filesystem was full so to fix that, I copied all of the
files in /sbin (the only directory I could think of to safely move) over to
my home directory (on a seperate and not full file partition) and then
removed all of the contents of /sbin. This gave me enough free space to
create the link.
Once the link was created, the /etc/passwd file now had a valid entry
(/sbin/tcsh) so I was able to su to root and fix the /etc/passwd file
correctly. After that, I deleted my link and moved the files from my home
directory back to /sbin
"Josh McKee" <jtmckee@rmac.net> wrote in message
news:f3tpjv8o7ukapp46gvl0jbihvjln51s38u@4ax.com...
> On Fri, 15 Aug 2003 05:21:56 -0700, "Phoenix" <me@here.com> wrote:
>
> >Resolved the problem.
> >
> >I moved everything from /sbin to my home directory which is on a
different
> >partition (one with space)
> >I then made a link from /sbin/tcsh to /usr/bin/tcsh and at that point I
was
> >able to log in as root.
> >I then moved everything from my home directory/sbin back to /sbin and
fixed
> >/etc/passwd
> >
> >
> >All this after a friend offered me a CDROM drive to boot from ;-)
> >
> >Thanks all for the help!
>
> Could you provide more details? This doesn't make sense.
>
> Thanks...Josh |