I've created a jail with ssh using Finch-Freebsd on a NAS4FREE and added a local non super user to access the jail via ssh.
I want to be able to grant this user limited shell access specifically to shut down the jail and in turn commence a shutdown of the server the jail resides on
How can i give the said user limited shell command rights to initiate the shutdown command?
So far in trying to initiate a sh /etc/rc.shutdown
I get the following output
eval: cannot open /var/run/cron.pid: Permission denied Stopping sshd. kill: 12060: Operation not permitted Stopping lighttpd. kill: 12001: Operation not permitted eval: cannot open /var/db/mysql/RemandYard.pid: Permission denied pututxline: Permission denied Terminated