Embedded linux: Service reports an error Please remove world writability permission bits. Proceeding anyway.

Custom service, the service cannot be started normally after restarting the system ( the purpose of automatically launching the service after the system restarts is not achieved ). Check the system log and find that an error is reported when the service starts. Message as follows:

[    7.148737] systemd[1]: Configuration file /lib/systemd/system.conf.d/00-systemd-conf.conf is marked executable. Please remove executable permission bits. Proceeding anyway.
[    7.162894] systemd[1]: Configuration file /lib/systemd/system.conf.d/00-systemd-conf.conf is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[    7.189869] systemd[1]: Configuration file /lib/systemd/system.conf.d/01-watchdog.conf is marked executable. Please remove executable permission bits. Proceeding anyway.
[    7.203661] systemd[1]: Configuration file /lib/systemd/system.conf.d/01-watchdog.conf is marked world-writable. Please remove world writability permission bits. Proceeding anyway.

大意为:配置文件被标记为全局可写,无论如何请移除全局可写权限。

Check that the permission of my service configuration file is 666. systemd may be worried that the service configuration will be maliciously tampered with by other users, so the restricted configuration file permission cannot be globally writable. After modifying the permission of the service configuration file to 644, restart the system, and the service starts normally.



 

Guess you like

Origin blog.csdn.net/qq_43445867/article/details/129755195