Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker user permissions - change from backup #49

Open
bobmarley2021 opened this issue May 14, 2024 · 2 comments
Open

Docker user permissions - change from backup #49

bobmarley2021 opened this issue May 14, 2024 · 2 comments

Comments

@bobmarley2021
Copy link

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?

lqGUaya

@bobmarley2021 bobmarley2021 changed the title Dcoker user permissions - change from backup Docker user permissions - change from backup May 14, 2024
@bobmarley2021
Copy link
Author

bobmarley2021 commented 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?

@bobmarley2021
Copy link
Author

Not any comment after all this time? Is this project still active?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant