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

Ssh as a user show permission denied warnings

Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
3 Posts 3 Posters 9.7k 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.
  • T
    trunet
    last edited by Mar 1, 2010, 9:01 PM

    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 May 29, 2010, 2:19 PM

      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
      • J
        jimp Rebel Alliance Developer Netgate
        last edited by Jun 1, 2010, 12:25 PM

        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.
          This community forum collects and processes your personal information.
          consent.not_received