Ssh as a user show permission denied warnings
-
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."?
-
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.
-
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