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

Access developer shell via ssh

Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
6 Posts 4 Posters 2.7k 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.
  • E
    ericx
    last edited by Mar 30, 2011, 1:11 AM

    Stupid question, but I can't seem to search up an answer.

    How do I access the developer shell via ssh?

    You don't get the console menu when you ssh into a 2.0 pfSense anymore. Where's the menu script? I can probably parse that and find what I want.

    Thanks for your time.

    1 Reply Last reply Reply Quote 0
    • M
      Michael Sh.
      last edited by Mar 30, 2011, 1:23 AM

      /etc/rc.initial

      is default shell for user admin.

      1 Reply Last reply Reply Quote 0
      • E
        ericx
        last edited by Mar 30, 2011, 1:32 AM

        Thanks.

        oh… look at that. My login has tcsh instead.

        I guess I've run into this before, but forgot. I keep assuming any login added to the admin group has full permissions, but 'admin' is really the only admin.

        1 Reply Last reply Reply Quote 0
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Apr 4, 2011, 1:03 PM

          If you want other logins to have admin/root permissions, you'll need to pkg_add -r sudo, and then setup the sudoers file to allow everyone to have sudo access.

          Otherwise, other users will not have enough permissions to run many of the commands on the menu.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • R
            rcfa
            last edited by Apr 4, 2011, 1:56 PM

            @jimp:

            If you want other logins to have admin/root permissions, you'll need to pkg_add -r sudo, and then setup the sudoers file to allow everyone to have sudo access.

            Otherwise, other users will not have enough permissions to run many of the commands on the menu.

            I think that would be rather useful to include standard, in a way that on the user manager page one could turn on/off this sort of capability.

            Otherwise, it is one of these obscure things that will lead periodically to the same question being asked over and over, because it's just too obscure for the non-initiated.

            1 Reply Last reply Reply Quote 0
            • J
              jimp Rebel Alliance Developer Netgate
              last edited by Apr 4, 2011, 2:30 PM

              I think there are plans to include it by 2.0, but it's hard to say for sure at this point. It's easily added, and it would be something that some people may not want, so there are some considerations to be taken there.

              As it is, even without sudo, you should consider every shell user as having root access, due to the info found in files on the firewall that are world readable for various reasons. So only those you'd trust with admin access to the firewall should have shell access.

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              1 out of 6
              • First post
                1/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received