Subject: Re: su: /usr/pkg/bin/bash : No such file or directory
To: None <>
From: Stefan 'Kaishakunin' Schumacher <>
List: netbsd-users
Date: 10/03/2005 17:02:40
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Also sprach Pietro Capriata (

> 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.

PGP FPR: CF74 D5F2 4871 3E5C FFFE 0130 11F4 C41E B3FB AE33
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"

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.4.2 (NetBSD)