package/cups: Add lp user as default cups user
This patch is a backport from the rockchip tree. Author: Jeffy Chen <jeffy.chen@rock-chips.com> Date: Tue Nov 13 18:25:34 2018 +0800 package: cups: Add lp user as default cups user Change-Id: Ic7434fe0a7b41b86b5b8b097fa29dd9718e29aa5 Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com> User lp is necessary for running the cups spooler. Groups lpadmin grants administrative privileges to users. Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
parent
a3bba18f24
commit
608c12c044
@ -22,6 +22,9 @@ CUPS_CONF_OPTS = \
|
|||||||
--disable-gssapi \
|
--disable-gssapi \
|
||||||
--disable-pam \
|
--disable-pam \
|
||||||
--libdir=/usr/lib \
|
--libdir=/usr/lib \
|
||||||
|
--with-cups-user=lp \
|
||||||
|
--with-cups-group=lp \
|
||||||
|
--with-system-groups="lpadmin sys root" \
|
||||||
--without-rcdir
|
--without-rcdir
|
||||||
CUPS_CONFIG_SCRIPTS = cups-config
|
CUPS_CONFIG_SCRIPTS = cups-config
|
||||||
CUPS_DEPENDENCIES = \
|
CUPS_DEPENDENCIES = \
|
||||||
@ -77,4 +80,11 @@ define CUPS_INSTALL_INIT_SYSV
|
|||||||
$(TARGET_DIR)/etc/init.d/S81cupsd
|
$(TARGET_DIR)/etc/init.d/S81cupsd
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
# lp user is needed to run cups spooler
|
||||||
|
# lpadmin group membership grants administrative privileges
|
||||||
|
define CUPS_USERS
|
||||||
|
lp -1 lp -1 * /var/spool/lpd /bin/false - lp
|
||||||
|
- - lpadmin -1 * - - - Printers admin group.
|
||||||
|
endef
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(autotools-package))
|
||||||
|
Loading…
Reference in New Issue
Block a user