Re: I've hozed my root login.
>
>
>
> > This is way to big an operation to solve this problem. You can specify
> > which shell you want to su:
> >
> > su -s /bin/bash
>
> Thanks for the help, unfortunately it didn't work. It seemed to ignore
> the shell directive, it spit out something about
> " /bad/shell/path not valid" even though I scecificaly told it to use a
> valid shell. I read the su man page and it agreed with your
> recommendation but alas it wouldn't let me log on as root.
> Is my system buggy?
Maybe the reason is that your login shell is not in /etc/shells. Then
su doesn't trust the -s option, and takes the default for root (at least
it does so on my bo system). See if your login shell is in /etc/shells,
if not, try to add it with a command like
su root -c 'vi /etc/shells'
(subsitute your favorite editor for vi, if you prefer that). This will
ask for the super user passwd and then start an editor session as root.
When I think of it, you can also change root's shell like this:
su root -c 'chsh'
HTH,
Eric
--
E.L. Meijer (tgakem@chem.tue.nl) | tel. office +31 40 2472189
Eindhoven Univ. of Technology | tel. lab. +31 40 2475032
Lab. for Catalysis and Inorg. Chem. (TAK) | tel. fax +31 40 2455054
--
Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
Reply to: