Su



  • Hello all :-)

    I need to connect to ssh by user, later do "su" to become root.

    Where's su command?

    Do I need use sudo?

    thanks for help



  • When you ssh to the PFW, you connect to the admin menu. Press '8' to get to a shell as the admin user. Then just type 'su' at the command prompt without a password and it takes you to the root shell.



  • I known. But I need to connect to pfsense from another place (via internet) and I have to use normal user. thanks



  • I'm not sure what you're asking, then. One thing I can say is that opening up SSH access to your firewall from the WAN side is a very, very (VERY) bad idea. At the very least, you should limit SSH access to just the IP you're remoting in from, but you're far better off using a VPN to connect to your internal network remotely first and then make your SSH connection to the firewall from inside your LAN.

    Regardless of where you remote in from the process is the same. The connection takes you to the admin menu and you shell out from there.

    If this doesn't answer your question, please rephrase it specifying what you are trying to do in detail.


  • Rebel Alliance Developer Netgate

    Install the sudo package and use it. Then you can grant access to users or groups from the GUI.