Skip to content

Instantly share code, notes, and snippets.

@kerus1024
Created December 26, 2022 15:29
Show Gist options
  • Save kerus1024/34fc25be33bc3014079ca0d1d3533925 to your computer and use it in GitHub Desktop.
Save kerus1024/34fc25be33bc3014079ca0d1d3533925 to your computer and use it in GitHub Desktop.
#!/bin/bash
# https://www.geeksforgeeks.org/access-control-listsacl-linux/
cid=111
pct set $cid -mp0 /mnt/pve/storage1/native,mp=/storage1
setfacl -Rm g:100033:rwx,d:g:100033:rwx /mnt/pve/storage1/lxcdisk/
# setfacl -m u:100000:rw -m g:100000:rw /dev/net/tun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment