Hi !
I have a FreeBSD server 11.1 and I'm stuck on a peculiar problem.
I would like to set a special user who has no right except to poweroff the system. This server is only accessible via ssh.
At first, I added this user to the operator group and that works for the prime purpose. To secure the thing, I chrooted this user to /home/user/prison with the help of sshd_config. Once there, I was obliged to copy sh in prison/bin/ to make login possible.
Obviously, this user has no longer access to poweroff. The problem is: if I put a copy of poweroff in prison/bin/, its execution answers:
Is there a means to allow this chrooted user to shutdown the system?
I have a FreeBSD server 11.1 and I'm stuck on a peculiar problem.
I would like to set a special user who has no right except to poweroff the system. This server is only accessible via ssh.
At first, I added this user to the operator group and that works for the prime purpose. To secure the thing, I chrooted this user to /home/user/prison with the help of sshd_config. Once there, I was obliged to copy sh in prison/bin/ to make login possible.
Obviously, this user has no longer access to poweroff. The problem is: if I put a copy of poweroff in prison/bin/, its execution answers:
poweroff: NOT super-user
Is there a means to allow this chrooted user to shutdown the system?
Last edited by a moderator: