On Mo, 20.04.20 23:00, www (ouyangxuan10@xxxxxxx) wrote: > dear all; > > > How to set some properties in systemd to read-only? Who can give the sample code? I don't understand the question. Do you mean a D-Bus property? They generally are read-only for unprivileged bus clients. With a PolicyKit action configuration you can open them up, but typically unprivileged clients can't change them. Lennart -- Lennart Poettering, Berlin _______________________________________________ systemd-devel mailing list systemd-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/systemd-devel