On Feb 16, 2025, at 05:26, Patrick Dupre via users 
<users@lists.fedoraproject.org> wrote:
> 
> Feb 16 11:09:32 homere systemd[1]: vncserver@:2.service: Can't convert PID 
> files /home/pdupre/.vnc/homere:2.pid O_PATH file descriptor to proper file 
> descriptor: Permission denied

Systemd services running as part of the system systemd aren’t generally 
permitted to reach into user home directories and change content. Even if you 
are using runuser (which doesn’t change the fact).  If you launched it as part 
of the user’s systemd session it would be fine. 

I’m not sure if ProtectHome is enabled by default but I think Selinux also 
blocks it by default. 

Put the pid file in someplace like /run. 

-- 
Jonathan Billings
-- 
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue
  • vnc Patrick Dupre via users
    • Re: vnc Jonathan Billings
    • Re: vnc Samuel Sieb

Reply via email to