updated
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user