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

    Bypass "su: Sorry" on pfSense?

    Scheduled Pinned Locked Moved General pfSense Questions
    10 Posts 6 Posters 7.2k 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.
    • R
      riahc3 Banned
      last edited by

      I need to use the su function on my pfSense. How do I enable it?

      And, while on the subject, how do I enable root to be able to login thru SSH?

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        Hi,

        su : this https://forum.netgate.com/topic/132087/access-menu-with-common-user-then-su-root-ssh ?

        root login : https://www.netgate.com/docs/pfsense/usermanager/granting-users-access-to-ssh.html

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        R 1 Reply Last reply Reply Quote 0
        • R
          riahc3 Banned @Gertjan
          last edited by riahc3

          @gertjan said in Bypass "su: Sorry" on pfSense?:

          Hi,

          su : this https://forum.netgate.com/topic/132087/access-menu-with-common-user-then-su-root-ssh ?

          This does nothing. Just tried it and su gives the same message.

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            What did you try exactly?

            You added the commands you wanted to the user you're using?

            https://www.netgate.com/docs/pfsense/usermanager/sudo-package.html

            Steve

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by

              Your going to have to show us what your doing because this is clickity clickity... Install the package.. ssh in as billy su up to root.. It really is that simple..

              Or you can su to another account from root, etc.. If you want detailed help your going to need to give details. What exactly are you wanting to accomplish - why do you believe you need to use su?

              Here just created account billy, put in him in the admin group so he can run sudo (default config of sudo when installed) then ran sudo su put in billys password and there you go he is root

              0_1542836588227_billysu.png

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.7.2, 24.11

              R 1 Reply Last reply Reply Quote 0
              • R
                riahc3 Banned @johnpoz
                last edited by

                @johnpoz said in Bypass "su: Sorry" on pfSense?:

                Your going to have to show us what your doing because this is clickity clickity... Install the package.. ssh in as billy su up to root.. It really is that simple..

                Or you can su to another account from root, etc.. If you want detailed help your going to need to give details. What exactly are you wanting to accomplish - why do you believe you need to use su?

                Here just created account billy, put in him in the admin group so he can run sudo (default config of sudo when installed) then ran sudo su put in billys password and there you go he is root

                0_1542836588227_billysu.png

                You trying to switch users with root permissions; That is what sudo is

                su automatically switches users as long as you have permissions to do so.

                Im surprised that still, in 2018, people do not know there is a difference between sudo and su: https://www.google.com/search?q=difference+between+su+and+sudo

                1 Reply Last reply Reply Quote 0
                • GrimsonG
                  Grimson Banned
                  last edited by Grimson

                  These might shed some light on his intentions:
                  https://old.reddit.com/r/PFSENSE/comments/9yyeuk/get_past_su_sorry_on_pfsense/
                  https://old.reddit.com/r/PFSENSE/comments/9yy373/backing_up_pfsense_using_veeam/

                  @riahc3 said in Bypass "su: Sorry" on pfSense?:

                  You trying to switch users with root permissions; That is what sudo is

                  su automatically switches users as long as you have permissions to do so.

                  Im surprised that still, in 2018, people do not know there is a difference between sudo and su: https://www.google.com/search?q=difference+between+su+and+sudo

                  You might want to read those google results yourself. The only difference is that su by default switches the session to a different user while sudo only runs a single command as a different user. Both require authentication, unless you configure them differently. How you can configure them depends on how they are implemented in the OS.

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    Without more info from you we are just guessing what you're trying to do.

                    It looks like you're trying to run some Linux script against BSD and it's failing. But that's just a guess since you've given us nothing to work with.

                    Steve

                    1 Reply Last reply Reply Quote 0
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator
                      last edited by johnpoz

                      I know exactly what sudo and su you is... What I don't know is WTF your wanting to do ;)

                      As you see I switch from a user to root via su... Since the user is not root, it can not run su without sudo..

                      So how about you clearly explain what your wanting to do and we can help you vs some complaint that I don't understand the difference between sudo and su..

                      If I login as admin or root, I have no need for sudo to run su..

                      [2.4.4-RELEASE][root@sg4860.local.lan]/root: su billy
                      [2.4.4-RELEASE][billy@sg4860.local.lan]/root:

                      If you want another user kevin be able to su to billy... Then hey can do that with sudo, which you can enable him to run su..

                      Your going to need to be clear on what you want vs
                      su: sorry

                      Doesn't tell us what your trying to do!!!

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                      1 Reply Last reply Reply Quote 0
                      • jimpJ
                        jimp Rebel Alliance Developer Netgate
                        last edited by

                        I replied to the same issue on Reddit, so I'll copy my reply here, too:

                        On FreeBSD, su requires that the user be a member of the wheel group. But there isn't a way to put a GUI user into the wheel group, so you have to use sudo instead.

                        You could work around that by manually editing the groups file in the OS or hacking on /etc/pam.d/su to use the admins group instead, but why bother? The changes would be wiped out on the next update. Use sudo instead.

                        Using su also requires you share the credentials of the root/admin account which goes against best security practices.

                        Using sudo is best in the context of a firewall. Everyone uses their own account, their own password, and can have customized permissions per user.

                        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 1
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.