Skip to content

Instantly share code, notes, and snippets.

@hrp
Last active August 12, 2023 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hrp/ceb59c250014c2cdbfb7b58c8e2304d8 to your computer and use it in GitHub Desktop.
Save hrp/ceb59c250014c2cdbfb7b58c8e2304d8 to your computer and use it in GitHub Desktop.
Swizzin install with Proxmox

Swizzin install with Proxmox

Unprivileged container with local bind mount.

  1. Create container with Ubuntu 22.04 LTS
  2. Install Swizzin with script. Note user created.
  3. On Proxmox host, create group for container-data for unused group id (used 101001)
addgroup --gid 101001 container-data
  1. On the Proxmox host, change the group of the share to container-data
chgrp -R container-data share/
chmod -R 2775 share/
  1. On the Proxmox host, set the ACL to allow read, write, execute for the group container-data (group id 101001)
setfacl -Rm g:101001:rwx,d:g:101001:rwx share/
  1. On the container, create group for container-data (group id 1001)
addgroup --gid 1001 container-data
  1. On the container, add user to container-data group
usermod -aG container-data <USER>
usermod -aG container-data root
  1. On the container, read, write to the share should work with root and the user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment