This commit is contained in:
2024-08-10 00:52:46 -05:00
parent 21e44dd43a
commit 0db0139a8a
2 changed files with 5 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
# proxmox_lxc_usermappings
## Userid mappings
```bin
```bash
lxc.idmap: u 0 100000 1000
lxc.idmap: g 0 100000 1000
lxc.idmap: u 1000 1000 1
@@ -25,7 +25,7 @@ To fix this:
1. Remove the mappings in config and restart the CT. This should revert the ownership back to akanealw.
2. Then use root/sudo to change ownership of the directory/files to root on the container
```bin
```bash
sudo chown root:root -R /home/akanealw
sudo chown root:root /var/spool/cron/crontabs/akanealw
```
@@ -33,7 +33,7 @@ sudo chown root:root /var/spool/cron/crontabs/akanealw
3. Next, shutdown the container and reapply the mappings in config. Now when you restart the container, /home/akanealw should still be owned by root.
4. Lastly, using container's root and change ownership back to the newly mapped akanealw
```bin
```bash
sudo chown akanealw:akanealw -R /home/akanealw
sudo chown akanealw:crontabs /var/spool/cron/crontabs/akanealw
```

View File

@@ -6,7 +6,9 @@
/mnt/data/backups -alldirs -mapall="root":"wheel" -network 192.168.86.0/24
/mnt/data/storage -alldirs -mapall="wettsten":"wettsten" -network 192.168.86.0/24
/mnt/data -alldirs -mapall="wettsten":"wettsten" -network 192.168.86.0/24
```
```bash
#### samba
##### Global parameters
[global]