Sometimes you will want to execute a command, as user, inside CageFS.
If user has shell enabled – you can simply use
$ /bin/su – $USERNAME -c “_command_”
Yet, if user has shell disabled, it wouldn’t work. To solve this issue, we have added command:
$ /sbin/cagefs_enter_user $USERNAME “_command_”