Subject: Re: su: /usr/pkg/bin/bash : No such file or directory
To: ghen@telenet.be, Geert Hendrickx <geert.hendrickx@ua.ac.be>
From: Pietro Capriata <pietro.capriata@gmail.com>
List: netbsd-users
Date: 10/03/2005 23:38:57
------=_Part_17567_29978421.1128375537772
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

thanks for all ...
now run fine ......

(i'm now installing mysql and apache)

2005/10/3, Geert Hendrickx <geert.hendrickx@ua.ac.be>:
>
> On Mon, Oct 03, 2005 at 05:02:40PM +0200, Stefan 'Kaishakunin' Schumacher
> wrote:
> > 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 shel=
l
> > 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.
>
> I have the root-shell set to /bin/sh to avoid problems, but I also have
> "shell /usr/pkg/bin/zsh" in /root/.screenrc, since screen is the first
> think I invoke after su anyway. This way screen will spawn nice zshells i=
n
> new windows, instead of /bin/sh. You can of course substitute wit bash.
>
> Geert
>

------=_Part_17567_29978421.1128375537772
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

thanks for all ... <br>
now run fine ......<br>
<br>
(i'm now installing mysql and apache)<br><br><div><span class=3D"gmail_quot=
e">2005/10/3, Geert Hendrickx &lt;<a href=3D"mailto:geert.hendrickx@ua.ac.b=
e">geert.hendrickx@ua.ac.be</a>&gt;:</span><blockquote class=3D"gmail_quote=
" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0=
.8ex; padding-left: 1ex;">
On Mon, Oct 03, 2005 at 05:02:40PM +0200, Stefan 'Kaishakunin' Schumacher w=
rote:<br>&gt; Also sprach Pietro Capriata (<a href=3D"mailto:pietro.capriat=
a@gmail.com">pietro.capriata@gmail.com</a>)<br>&gt;<br>&gt; &gt; after i ha=
ve installed netbsd=20
2.0.2 i remove his monitor and controll<br>&gt; &gt; it with ssh ..&nbsp;&n=
bsp;now i have problem ..&nbsp;&nbsp;when i am as user on it and<br>&gt; &g=
t; write su after password it print : su: /usr/pkg/bin/bash : No such file<=
br>&gt; &gt; or directory so i can't controll it .... what can i do?
<br>&gt;<br>&gt; Boot to single user modus. You'll need a monitor/keyboard =
attached to the<br>&gt; machine. At the bootprompt, cancel the countdown wi=
th [ESC] key and enter<br>&gt; &quot;boot -s&quot;. The machine will go to =
singleuser mode and ask for a shell.
<br>&gt; Hit enter to use the default /bin/sh. Now use chsh to alter root's=
 shell<br>&gt; to a builtin one, like /bin/sh. From now on, root will use B=
ourne Shell<br>&gt; and have no problems with su. You can switch to headles=
s mode. In my
<br>&gt; opinion, you should keep /bin/sh as login shell and start bash by =
hand,<br>&gt; once su succeeded.<br><br>I have the root-shell set to /bin/s=
h to avoid problems, but I also have<br>&quot;shell /usr/pkg/bin/zsh&quot; =
in /root/.screenrc, since screen is the first
<br>think I invoke after su anyway.&nbsp;&nbsp;This way screen will spawn n=
ice zshells in<br>new windows, instead of /bin/sh.&nbsp;&nbsp;You can of co=
urse substitute wit bash.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;Geert<br></blockquote></div><br>

------=_Part_17567_29978421.1128375537772--