This commit is contained in:
2024-08-10 00:54:38 -05:00
parent 829209e945
commit 45d5ff16e9

View File

@@ -24,19 +24,18 @@ lxc.idmap: u 1001 101001 64535 //maps 1001-65535(CT) -> 101001-165535(Host)
To fix this:
1. Remove the mappings in config and restart the CT. This should revert the ownership back to akanealw.
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
Use root/sudo to change ownership of the directory/files to root on the container
```bash
sudo chown root:root -R /home/akanealw
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.
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
Using container's root and change ownership back to the newly mapped akanealw
```bash
sudo chown akanealw:akanealw -R /home/akanealw
sudo chown akanealw:crontabs /var/spool/cron/crontabs/akanealw
```