在sysconfig文件的选项行中的标志“-u”是什么意思在Linux?
例如 – 在文件/etc/sysconfig/ntpd :
OPTIONS="-u ntp:ntp"
我将猜测,在这个特殊情况下,它意味着user , ntp:ntp表示用户ntp和组ntp。 我会虽然期望它是特定于应用程序。
从ntpd(8)手册页
-u user[:group] Specify a user, and optionally a group, to switch to. This option is only available if the OS supports running the server without full root privileges. Currently, this option is sup‐ ported under NetBSD (configure with --enable-clockctl) and Linux (configure with --enable-linuxcaps).