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

    SUDO Package Using root Password

    pfSense Packages
    2
    3
    414
    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.
    • A
      AlecDr
      last edited by

      Hello everyone,

      I started using PfSense about a week ago, so i'm still learning it and trying my best to configure it somewhere like our old firewall, the thing is, our old firewall had an ssh access with public keys, and upon logging in it (it was possible to login via ssh only with a non-root user) i could su to root and gain privileges, but in PfSense i did not found a way to ask for the root password when the user sudo something.
      So basically, i installed the sudo package to manage root privileges for non-root users, but it only asks for the current user password, i would like to know if there is an way to ask for the root password instead (the root user do not have ssh access).

      Regards.

      bingo600B 1 Reply Last reply Reply Quote 0
      • bingo600B
        bingo600 @AlecDr
        last edited by bingo600

        @alecdr

        I would think that's a sudo usage question.
        Best asked elsewhere

        Well 10 sec w. google
        http://researchhubs.com/post/computing/linux-cmd/sudo-command.html

        sudo -u root command 	Run command as root.```
        

        If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

        pfSense+ 23.05.1 (ZFS)

        QOTOM-Q355G4 Quad Lan.
        CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
        LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

        1 Reply Last reply Reply Quote 1
        • A
          AlecDr
          last edited by

          Hello @bingo600,

          Thanks for your reply, you are indeed correct, i'm a newbie with linux, so I did not understood the differences between sudo and su until I read your link.

          Regards.

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