[–] 1 point 2 months ago*

Does the new user "userB" belong to the same set of groups as the old user "userA"?

More details here: https://serverfault.com/questions/947301/nginx-displaying-failed-13-permission-denied-when-trying-to-access-new-site

Basically:

  1. Check user permissions on the public directory -> You said userA and userB both have access.
  2. Check that the new userB belongs to a group with rx access to the public directory for the website.
  • source
  • [–] 3 points 2 months ago

    I do exactly what you describe - run multiple containers as various unprivileged service users simultaneously - and haven't had an issue doing it. The only thing that tripped me up was that I initially didn't realize that the service users needed to have a home directory created. I thought the service users wouldn't have a need for a home directory since they were single-purpose, but it turns out podman requires it to function, and if you try to run it as a user without one, it will fail to start in weird ways. Is there any chance that is the source of your issue?

  • source
  • [–] 1 point 6 months ago

    Is the path a file or something? On my system the corresponding path is a directory with a bunch of symlinks in it. The directory has user/group matching my account with permissions set to 755. (i.e. rwxr-xr-x)

  • source
  • parent
  • context
  • [–] [S] 2 points 6 months ago* (1 child)

    I tried rebooting thinking that could fix it as well, possibly to match mismatched kernel versions, but no changes to responses.

    If I try to podman start a service, the command will sometimes hang for a bit, but always ends with the same mkdir error as the podman ps error above.

  • source
  • parent
  • context
  • [–] 2 points 6 months ago (2 children)

    I'm not really sure what to make of that other that guessing that something's gone wrong with podman's internal state handling. Did something you ran recently crash maybe? (I'm assuming podman ps used to work for you, right?)

    My kneejerk reaction is "try rebooting". If it persists there might be something odd going on with file permissions perhaps?

  • source
  • [–] [S] 1 point 7 months ago

    Discovered it was because I had just updated on system, and

    uname -a

    was showing a different than version than the following showing my Linux version installed

    pacman -Q linux

    So I simply had to reboot.

  • source
  • [–] 1 point 7 months ago

    I have very limited experience with Podman and no experience with quadlets but I'm still curious. Are quadlets exclusive to Systemd?

    I ask because I currently use Alpine Linux which uses OpenRC by default. It took a few days just to figure out how to get my HomeAssistant container to run without using a Docker Compose file. That's my only true experience with Podman so I don't actually know how dependant Podman is with Systemd.

  • source
  • [–] 2 points 9 months ago* (1 child)

    Might be obvious but did you enable the Quadlets? So systemctl enable quadlet.service or whatever the equivalent is. I think the quadlet is just a regular systemd unit.

    Edit: I noticed you already got an answer!

  • source
  • parent
  • context
  • [–] [S] 2 points 9 months ago* (1 child)

    This worked! I searched through so many threads trying to find an answer, and this was the answer. Thank you so much. I only needed the below text added to my ~/.config/containers/systemd/my-custom-quadlet.container. Nice and simple:

    [Install]
    WantedBy=default.target
    
  • source
  • parent
  • context
  • [–] 5 points 10 months ago

    Not something baked-in, no, since the entire point of podman is that it's server- (service-)less.

    However they do have a command to manually launch the respective user's podman manager, which IIRC is podman system service -t0 (note: runs in the foreground) so if you add that to a service entry (eg.: via runit user units or systemd user scopes) or just launch it via your user crontab's @reboot, it should work without issues.

    This is literally my runit user unit for podman:

    #!/bin/sh
    export XDG_RUNTIME_DIR=/run/user/1000
    exec podman system service -t0 
    
  • source