Score:0

Service file don't see /home/user files and folders - ubuntu 20.04

sx flag

I make service file, vaultwarden.service to look like this (here showing just part of it):

# The user/group vaultwarden is run under. the working directory (see below) should allow write and read access to this user/group
User=vaultwarden
Group=vaultwarden
# The location of the compiled binary
ExecStart=/home/vaultwarden/vaultwarden   # user is vaultwarden, binary vaultwarden

When in service file part look like code above, I got error vaultwarden.service: Failed at step EXEC spawning /home/vaultwarden/vaultwarden: Permission denied

But when just copy binary file vaultwarden to /usr/bin/vaultwarden it work's. I don't know what's the problem, is there some issue or rule, which says that can't in service file do path's in home folder of some user? I am read all related links and post, and try it all, and still have the same issue.

P.S. Access right are good, I even the whole home folder of vaultwarden user change ownership to 777, even change to root owner (in case that root should run binary, but 777 should resolve issue...)

Any clues?

sx flag
I want binaries, ```WorkingDirectory```, ```ReadWriteDirectories``` to be in home folder of the user, not on some other location. How to accomplish that? Because when I do that, i got errors as I mention it
Score:0
sx flag

In my service file, also was these lines:

PrivateDevices=true
ProtectHome=true

Those parameters don't allow manipulation with home folder. It should be commented or deleted from the service file.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.