How to set bash as your default login shell in PCBSD

I am a Linuxer that moved to *BSD. Because I am used with the bash tricks, I will set bash as my user’s default login shell, in PCBSD 9.0 .

Install bash with this command (if it is already installed, nothing will happen), used as root: # pkg_add -r bash

Check if you have “/bin/bash” listed in /etc/shells. If not, add it by hand, as root:

# echo "/bin/bash" >> /etc/shells

Set bash as your user’s default login shell, with the following command, as root:

# chsh -s /bin/bash username

Share and Enjoy

  • Twitter
  • Facebook
  • Google Plus
  • Email
  • RSS
Tagged with: , , , , ,
Posted in The Linux and Unix Articles!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe

  

Subscribe to get the latest Linux news and how to guides directly on your e-mail!