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

SUDO Package Using root Password

Scheduled Pinned Locked Moved pfSense Packages
3 Posts 2 Posters 426 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.
  • A
    AlecDr
    last edited by Feb 22, 2021, 7:11 PM

    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.

    B 1 Reply Last reply Feb 23, 2021, 12:32 PM Reply Quote 0
    • B
      bingo600 @AlecDr
      last edited by bingo600 Feb 23, 2021, 12:37 PM Feb 23, 2021, 12:32 PM

      @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 Feb 23, 2021, 1:36 PM

        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
        1 out of 3
        • First post
          1/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received