Subject: Re: su: /usr/pkg/bin/bash : No such file or directory
To: None <netbsd-users@netbsd.org>
From: Stefan 'Kaishakunin' Schumacher <stefan@net-tex.de>
List: netbsd-users
Date: 10/03/2005 17:02:40
--AqsLC8rIMeq19msA
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Also sprach Pietro Capriata (pietro.capriata@gmail.com)
> after i have installed netbsd 2.0.2 i remove his monitor and controll it
> with ssh ..
> now i have problem ..
> when i am as user on it and write su
> after password it print :
> su: /usr/pkg/bin/bash : No such file or directory
> so i can't controll it .... what can i do?
Boot to single user modus. You'll need a monitor/keyboard attached to
the machine. At the bootprompt, cancel the countdown with [ESC] key
and enter "boot -s". The machine will go to singleuser mode and ask
for a shell. Hit enter to use the default /bin/sh. Now use chsh to
alter root's shell to a builtin one, like /bin/sh. From now on, root
will use Bourne Shell and have no problems with su. You can switch to
headless mode. In my opinion, you should keep /bin/sh as login shell
and start bash by hand, once su succeeded.
--=20
PGP FPR: CF74 D5F2 4871 3E5C FFFE 0130 11F4 C41E B3FB AE33
--=20
Der Geist des Kriegers sollte mit Beginn des Neujahrstages bis zum Ende=20
des Jahres vom Gedanken an seinen Tod beherrscht werden.
Daijouji Shigesuke in "Budo Shoshin Shuu"
--AqsLC8rIMeq19msA
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)
iD8DBQFDQUgQEfTEHrP7rjMRAi/eAJ9k3vFScumPfyjw4F2g+q05N9YRogCdHXi5
Lk39fLommKuJXEB0jykFJwI=
=QJXJ
-----END PGP SIGNATURE-----
--AqsLC8rIMeq19msA--