docs: update proxmox/Proxmox-lxc-usermappings

This commit is contained in:
2024-04-18 01:39:09 +00:00
parent 798530e9f1
commit 03ee0fdeec

View File

@@ -2,7 +2,7 @@
title: Promox-lxc-usermappings
description:
published: true
date: 2024-04-17T00:20:40.035Z
date: 2024-04-18T01:39:06.939Z
tags:
editor: markdown
dateCreated: 2024-04-17T00:20:40.035Z
@@ -35,6 +35,7 @@ To fix this:
2. Then use root/sudo to change ownership of the directory/files to root on the container
```bin
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.
@@ -42,5 +43,6 @@ sudo chown root:root -R /home/akanealw
4. Lastly, using container's root and change ownership back to the newly mapped akanealw
```bin
sudo chown akanealw:akanealw -R /home/akanealw
sudo chown akanealw:crontabs /var/spool/cron/crontabs/akanealw
```