[Pkg-cups-devel] r171 - cupsys/branches/cups-1.2-ubuntu/debian
Martin Pitt
mpitt at costa.debian.org
Wed Apr 12 17:46:52 UTC 2006
Author: mpitt
Date: Wed Apr 12 17:46:51 2006
New Revision: 171
Modified:
cupsys/branches/cups-1.2-ubuntu/debian/changelog
cupsys/branches/cups-1.2-ubuntu/debian/cupsys-client.postinst
cupsys/branches/cups-1.2-ubuntu/debian/cupsys.postinst
cupsys/branches/cups-1.2-ubuntu/debian/cupsys.postrm
Log:
* debian/cupsys.{postinst,postrm}, debian/cupsys-client.postinst:
Setup/remove cupsys user and its needed groups.
Modified: cupsys/branches/cups-1.2-ubuntu/debian/changelog
==============================================================================
--- cupsys/branches/cups-1.2-ubuntu/debian/changelog (original)
+++ cupsys/branches/cups-1.2-ubuntu/debian/changelog Wed Apr 12 17:46:51 2006
@@ -12,8 +12,10 @@
* debian/cupsys.init.d: Pre-create access_log and error_log since cupsd
can't create them as normal user.
* debian/rules: Set rc runlevel priority to 19.
+ * debian/cupsys.{postinst,postrm}, debian/cupsys-client.postinst:
+ Setup/remove cupsys user and its needed groups.
- -- Martin Pitt <martin.pitt at ubuntu.com> Wed, 12 Apr 2006 19:41:19 +0200
+ -- Martin Pitt <martin.pitt at ubuntu.com> Wed, 12 Apr 2006 19:45:59 +0200
cupsys (1.1.99.rc2-1) UNRELEASED-experimental; urgency=low
Modified: cupsys/branches/cups-1.2-ubuntu/debian/cupsys-client.postinst
==============================================================================
--- cupsys/branches/cups-1.2-ubuntu/debian/cupsys-client.postinst (original)
+++ cupsys/branches/cups-1.2-ubuntu/debian/cupsys-client.postinst Wed Apr 12 17:46:51 2006
@@ -27,7 +27,20 @@
if [ -z "`getent group lpadmin`" ]; then
addgroup --system lpadmin
fi
- chown lp:lpadmin /usr/bin/lppasswd
+
+ # Set up cupsys user.
+ if [ -z "`getent passwd cupsys`" ]; then
+ adduser --system --no-create-home --ingroup lpadmin --disabled-password cupsys
+ fi
+ # necessary for access to local parallel and usb printers
+ adduser --quiet cupsys lp
+ # necessary for access to local serial printers
+ adduser --quiet cupsys dialout
+ # necessary for web authentication
+ # disabled by default since lpadmin membership is sufficient
+ # adduser --quiet cupsys shadow
+ chown cupsys:lpadmin /usr/bin/lppasswd
+
chmod u+s /usr/bin/lppasswd
;;
Modified: cupsys/branches/cups-1.2-ubuntu/debian/cupsys.postinst
==============================================================================
--- cupsys/branches/cups-1.2-ubuntu/debian/cupsys.postinst (original)
+++ cupsys/branches/cups-1.2-ubuntu/debian/cupsys.postinst Wed Apr 12 17:46:51 2006
@@ -45,6 +45,24 @@
deluser root lpadmin || true
fi
+ # Set up cupsys user.
+ if [ -z "`getent passwd cupsys`" ]; then
+ adduser --quiet --system --no-create-home --ingroup lpadmin cupsys
+ fi
+
+ # necessary for access to local parallel and usb printers
+ adduser --quiet cupsys lp
+ # necessary for access to local serial printers
+ adduser --quiet cupsys dialout
+ # necessary for web authentication
+ # disabled by default since lpadmin membership is sufficient
+ # adduser --quiet cupsys shadow
+ # necessary for access to printer/scanner combo devices
+ if [ -z "`getent group scanner`" ]; then
+ addgroup --system scanner
+ fi
+ adduser --quiet cupsys scanner
+
if [ -d /etc/cups/certs ]; then
rm -rf /etc/cups/certs
fi
Modified: cupsys/branches/cups-1.2-ubuntu/debian/cupsys.postrm
==============================================================================
--- cupsys/branches/cups-1.2-ubuntu/debian/cupsys.postrm (original)
+++ cupsys/branches/cups-1.2-ubuntu/debian/cupsys.postrm Wed Apr 12 17:46:51 2006
@@ -32,6 +32,7 @@
rm -f /etc/cups/printers.conf* /etc/cups/classes.conf.* \
/var/lib/cups/ppds.dat /etc/cups/raw.convs /etc/cups/raw.types
rmdir /etc/cups 2>/dev/null || true
+ deluser --system --quiet cupsys
;;
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
More information about the Pkg-cups-devel
mailing list