vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello NG again! I got OpenBSD 3.4 installed and discoverred successful since my last Problem. Now there is a Problem with the selected User-Shell. I prefer the bash and there for installed it from the official packages and did all steps normally required to get it to work. Here are the entries for root and myself: <-SNIP-> root:*:0:0:Charlie &:/root:/usr/local/bin/bash josen:*:1000:0:Falk Husemann:/home/josen:/usr/local/bin/bash <-SNAP-> And the related line from my /etc/shells file: <-SNIP-> /usr/local/bin/bash <-SNAP-> But it doesn't work. I don't know why. Do you? mfg Falk Husemann |
| |||
| Falk Husemann wrote: > Hello NG again! > I got OpenBSD 3.4 installed and discoverred successful since my last > Problem. Now there is a Problem with the selected User-Shell. I prefer > the bash and there for installed it from the official packages and did > all steps normally required to get it to work. > > Here are the entries for root and myself: > > <-SNIP-> > root:*:0:0:Charlie &:/root:/usr/local/bin/bash > josen:*:1000:0:Falk Husemann:/home/josen:/usr/local/bin/bash > <-SNAP-> > > And the related line from my /etc/shells file: > > > <-SNIP-> > /usr/local/bin/bash > <-SNAP-> > > But it doesn't work. I don't know why. Do you? > Of course you used vipw to edit the password file did you? You cannot use vi for this. And it is a very, very, bad idea indeed to use bash directly anyway. Start bash from csh. EJ -- Remove the obvious part (including the dot) for my email address. http://www.vanwesten.net for examples of ipf and pf. |
| |||
| On 2 Nov 2003 16:19:58 GMT, Falk Husemann <josen@macknolle.de> wrote: > >But it doesn't work. I don't know why. Do you? > Yes, changing the root shell from its default on any unix is a *really* bad idea. If you want to use bash as root, stick the following alias for 'su' into the profile of your normal user account. ~ $ alias | grep root alias root='su - root -c "/usr/local/bin/bash --login"' You'll need to make your normal user a/c a member of 'wheel' to do so. Create a .bash_profile in ~root for bash specific startup settings. Its the 1st thing I do on any box I have the root password for. greg -- $ReplyAddress =~ s#\@.*$##; # Delete everything after the '@' The Following is a true story..... Only the names have been changed to protect the guilty. |
| ||||
| redius wrote: >> And it is a very, very, bad idea indeed to use bash directly anyway. >> Start bash from csh. > > Why is a bad idea? Because in the event of a big failure you _need_ a statically linked shell which is on the root partition. You're never sure that you can mount another partition. For the rest see the other response. EJ -- Remove the obvious part (including the dot) for my email address. http://www.vanwesten.net for examples of ipf and pf. |