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

    Ssh as a user show permission denied warnings

    2.0-RC Snapshot Feedback and Problems - RETIRED
    3
    3
    9.7k
    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.
    • T
      trunet
      last edited by

      I create a user in User Manager, assign admin group to the user and assign the "User - System - Shell account access" to the admin group.

      When I login using SSH I get 3 warnings before menu:

      
      Warning: fopen(/tmp/config.lock): failed to open stream: Permission denied in /etc/inc/util.inc on line 129
      
      Warning: flock() expects parameter 1 to be resource, null given in /etc/inc/util.inc on line 140
      
      Warning: fclose(): supplied argument is not a valid stream resource in /etc/inc/util.inc on line 141
      
      

      The menu shows ok, the shell is ok but pftop, restart webconfigurator, … doesn't work(of course Im a simple user not root).

      Don't you think that is better to suppress this warning messages and log the user direct to the shell without menu and show a MOTD: "you're logged in as user. sudo -s and then type show_menu to access the pfsense menu."?

      1 Reply Last reply Reply Quote 0
      • C
        chezmojo
        last edited by

        How exactly is one supposed to get root privileges via SSH?

        I am running pfsense on an embedded platform and currently the only way for me to get a root shell is via serial console, which is not very convenient. Neither 'su' nor 'sudo' work for me.

        > su
        su: Sorry
        > sudo
        sudo: Command not found.
        
        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          That hasn't yet been dealt with, but there is a ticket open.

          It will probably involve sudo, or adding admin users to the wheel group. Due to the way things have to be in order to let the system work, every ssh user should essentially be considered to have root access anyhow.

          It's not exactly meant to be a full multi-user system. :)

          http://redmine.pfsense.org/issues/614

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