Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Shell preference gets overwritten on boot.

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    6 Posts 3 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      simply seth
      last edited by

      I configured a user via the Web GUI, I then changed that user's shell to "/usr/local/bin/zsh" via the CLI, but after booting, it defaults to tcsh.

      What mechanism is overriding my shell preference and how can I stop it from doing so?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • R
        rjcrowder
        last edited by

        Are you talking about the shell that is used when the user SSH's in to the box? If so, it is set in the shell script when you select option 8. You can change it in the shell script.

        1 Reply Last reply Reply Quote 0
        • S
          simply seth
          last edited by

          yes, the shell that is normally set in /etc/passwd

          Hmmmmm … well ... I just added a .login entry that calls the shell I want (/usr/local/bin/zsh)

          Thanks.

          1 Reply Last reply Reply Quote 0
          • C
            cmb
            last edited by

            There isn't currently a way to choose anything other than the default, what you did there as a work around is fine.

            1 Reply Last reply Reply Quote 0
            • R
              rjcrowder
              last edited by

              @simply:

              yes, the shell that is normally set in /etc/passwd

              Hmmmmm … well ... I just added a .login entry that calls the shell I want (/usr/local/bin/zsh)

              Thanks.

              It's in the shell script that runs the console menu - can't remember the name at the moment (fbegin maybe?) - but tcsh is explicitly called when you pick option 8. You can edit the script and change it to bash.

              1 Reply Last reply Reply Quote 0
              • R
                rjcrowder
                last edited by

                sorry… the script is /etc/rc.initial. Change the shell under option 8 to bash.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.