From 0db0139a8a5758ce380244b3bb5090cc763fe742 Mon Sep 17 00:00:00 2001 From: akanealw Date: Sat, 10 Aug 2024 00:52:46 -0500 Subject: [PATCH] updated --- documents/proxmox/proxmox_lxc_usermappings/content.md | 6 +++--- documents/scott/scott_smb_shares/content.md | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/documents/proxmox/proxmox_lxc_usermappings/content.md b/documents/proxmox/proxmox_lxc_usermappings/content.md index fccb599..dd1f8e0 100644 --- a/documents/proxmox/proxmox_lxc_usermappings/content.md +++ b/documents/proxmox/proxmox_lxc_usermappings/content.md @@ -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 ``` diff --git a/documents/scott/scott_smb_shares/content.md b/documents/scott/scott_smb_shares/content.md index 8370e73..faf77c5 100755 --- a/documents/scott/scott_smb_shares/content.md +++ b/documents/scott/scott_smb_shares/content.md @@ -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]