Skip to main content
Topic: User level runit service error: permission denied (Read 428 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

User level runit service error: permission denied

I created a runsvdir for my user to run some services (like pulseaudio, mpd, rclone, syncthing) following [void doc about the same](https://docs.voidlinux.org/config/services/user-services.html) ,

It was working, but today I reinstalled artix and suddenly the runsvdir-user service is giving timeout when starting,

I saw this error in htop:
`runsvdir -P /run/runit/service log: t directory: access denied runsvdir /home/dhruv/.local/service/`

tried `chmod 777 ~/.local/service` but still same issue,

heres the run file for

```sh

#!/bin/sh

export USER="dhruv"

export HOME="/home/dhruv"

groups="$(id -Gn "$USER" | tr ' ' ':')"

svdir="$HOME/.local/service"

exec chpst -U "$USER:$groups" runsvdir "$svdir"

```

can anyone help me debug this issue.

Re: User level runit service error: permission denied

Reply #1
I had the same issue when I tried to make my user run some service.

For me the problem was that my  `/etc/runit/sv/myuserservice` folder had `drwx------` permissions and my `/etc/runit/sv/myuserservice/run` had `-rwx------`

I just had to do `sudo chmod -R a+rx /etc/runit/sv/myuserservice` and it worked.

Perhaps you're problem came from the same reason?