Sudo systemctl --user > Failed to connect to bus: Operation not permitted

Hi!

I can't use command:

sudo systemctl --user stop gvfs-metadata.service

because:

Failed to connect to bus: Operation not permitted

also:

sudo systemctl --user
= Failed to connect to bus: Operation not permitted

How can I fix that?

Probably you do not need sudo.

Instead try to use

systemctl --user stop gvfs-metadata.service
2 Likes

thanks :slight_smile: @ Norbert_X