[systemd-devel] Normal user can ask status of services

Cecil Westerhof cldwesterhof at gmail.com
Sat Aug 26 07:44:17 UTC 2023


I am at last implementing systemd timers. The service I created can have
its status queried by a normal user. I thought I must have made a mistake.
But when I do:
    systemctl status cron

I get:
    ● cron.service - Regular background program processing daemon
         Loaded: loaded (/lib/systemd/system/cron.service; enabled; preset:
enabled)
         Active: active (running) since Sat 2023-08-19 18:12:04 CEST; 6
days ago
           Docs: man:cron(8)
       Main PID: 790 (cron)
          Tasks: 1 (limit: 17837)
         Memory: 91.0M
            CPU: 14min 3.110s
         CGroup: /system.slice/cron.service
                 └─790 /usr/sbin/cron -f

    Warning: some journal files were not opened due to insufficient
permissions.

Is this the expected behaviour?
If not: what could be wrong with my system?

This is on Debian 11.

-- 
Cecil Westerhof
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20230826/3bd7bf3d/attachment.htm>


More information about the systemd-devel mailing list