Init process for virtual servers with jailed users

OS type and version: Ubuntu 20.02
Webmin version: 1.981
Virtualmin version: 6.17

I’ve setup my server with chroot (jailed) users.
As a user is jailed, there are generally additional config required if you want to add directories or applications to the jailed users.

Thats the cause I wonder what the way is, to do this for every new created jailed user on creation time of a virtual server (or afterwards by custom-command)

For example:

  • add path xyz to jail
  • add application zyx to jail (application is not installed globally, but per user if required)

For the test-server the user looks like this:

If I look in virtualmin, the shell for the new user is: /sbin/jk_chrootsh.
But if I do execute env (e.g. as custom-command, executed as jailed user, with his environment) it shows me, that the default-shell is /bin/sh.
Is there a way to switch the default jailkit-shell to bin/bash?

I’ve tried to force the set of /bin/bash in Virtualmin > System Settings > Server Templates > Unixuser: Initiale Unix Shell > Custom Shells > /bin/bash ,
but it has no effect for output of echo $SHELL via CustomCommand for this user. It’s still /bin/sh

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.