chown root:wheel /usr/jail && chmod 700 /usr/jail
; I believe the jails will still start and operate normally, but only root can access the directory. chown root:jail /usr/jail && chmod 750 /usr/jail
setfacl -m g:users:full_set::deny /usr/jail
You're doing jails wrong.Hi!
How I can correctly block access for host shell users to /usr/jail/jailname folder structure?
Jail created by ezjail.
Thank you!
Dmitry.
Thank you!1. If you use /usr/jail as the basis for all your jails, you canchown root:wheel /usr/jail && chmod 700 /usr/jail
; I believe the jails will still start and operate normally, but only root can access the directory.
Thank you, I'll think about it.You're doing jails wrong.
Don't give them host access at all. Give em a jail.
I'd basically agree for new installs, but especially if you're integrating jails into a pre-existing environment, you'll probably have a mix of stuff managed on jails versus the host. Nothing wrong with taking some security precautions in that scenario.You're doing jails wrong.
Don't give them host access at all. Give em a jail.