Limit directory index to authenticated users

Essentially what I am trying to do is to limit directory indexing to authenticated users from a htpasswd file on my Apache server. Here is what I have so far. AuthUserFile C:\XXXXXXXXX\htpasswd AuthGroupFile /dev/null AuthName “Password Protected!” AuthType Basic <Limit DirectoryIndex> require valid-user </Limit> I have confirmed that this kind of authentication works for normal…

Custom user/group mapping in unprivileged LXC container for (user)mount

I set up a LCX Container. My hostsystem is ArchLinux and the Container use Debian. I start the container as root and use user/group mapping so the container run ‘unprivileged’. /etc/lxc/default.conf: lxc.idmap = u 0 100000 65536 lxc.idmap = g 0 100000 65536 /etc/subuid & /etc/subgid: root:100000:65536 Now i like to share my homedir within…