You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies if this is obvious, I am fairly new to docker - but can you explain how to change the permissions that the docker container uses to write to the host file system?
I currently see the user as backup with read/write perms, the group as backup but without any perms and other without any perms. If the group had read/write perms this would make it easier as I could just add my user to that group, or ideally, a way to specify the user instead of using backup.
I was expecting to see some reference to the backup user in the compose, as it is my understanding that usually when no user is specified that docker will use the root account but I cannot see anything that allows me to change this?
Any idea how to do this?
The text was updated successfully, but these errors were encountered:
bobmarley2021
changed the title
Dcoker user permissions - change from backup
Docker user permissions - change from backup
May 14, 2024
Ahh, looks like it is specified in: runit/proxmox-backup-proxy/run
#!/bin/bash
if [[ ! -e /etc/proxmox-backup/csrf.key ]]; then
echo "PROXY: The proxmox-backup is not yet configured!"
exit 1
fi
echo "PROXY: Starting..."
exec chpst -u backup:backup /usr/lib/*/proxmox-backup/proxmox-backup-proxy
And here: runit/proxmox-backup-api/run
# ensure that etc is owned by backup (due to configs)
chown backup:backup /etc/proxmox-backup
chmod 700 /etc/proxmox-backup
# ensure that lib is owned by backup (due to jobstates and rrdb)
chown backup:backup /var/lib/proxmox-backup
chmod 700 /var/lib/proxmox-backup
# ensure that logs are owned by backup
chown backup:backup /var/log/proxmox-backup
chmod 700 /var/log/proxmox-backup
Would it be possible to add the option to change this via compose?
Apologies if this is obvious, I am fairly new to docker - but can you explain how to change the permissions that the docker container uses to write to the host file system?
I currently see the user as
backup
with read/write perms, the group asbackup
but without any perms andother
without any perms. If the group had read/write perms this would make it easier as I could just add my user to that group, or ideally, a way to specify the user instead of usingbackup
.I was expecting to see some reference to the
backup
user in the compose, as it is my understanding that usually when no user is specified that docker will use the root account but I cannot see anything that allows me to change this?Any idea how to do this?
The text was updated successfully, but these errors were encountered: