We add the necessary Makefile, hotplug, config, and init bits so that p910nd daemon runs as user:group p910nd:lp by default. This eliminates an unnecessary root daemon. The hotplug script sets the permissions of the USB lp device(s) to read-write owner and group and no access to anyone else, and sets owner root, group lp. This is allows sufficient privileges to p910nd to do it's job. Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
26 lines
908 B
Text
26 lines
908 B
Text
config p910nd
|
|
option device /dev/usb/lp0
|
|
# Actual TCP port is 9100 plus this value
|
|
# Valid values are 0,1,2
|
|
option port 0
|
|
option bidirectional 1
|
|
option enabled 0
|
|
# Override running as user p910nd, group lp
|
|
option runas_root 0
|
|
|
|
# mDNS support - see Bonjour Printing Specification for details concerning the values
|
|
# Be aware that you can only advertise one printer on this host via mDNS
|
|
# Set to 1 to enable
|
|
option mdns 0
|
|
# Human-readable printer make and model
|
|
option mdns_ty 'My Printer Manufacturer/Model'
|
|
# Human-readable location
|
|
option mdns_note 'Basement'
|
|
# Post-Script product string, including parenthesis
|
|
option mdns_product ''
|
|
# IEEE-1284 Device ID MANUFACTURER/MFG string
|
|
option mdns_mfg ''
|
|
# IEEE-1284 Device ID MODEL/MDL string
|
|
option mdns_mdl ''
|
|
# IEEE-1284 Device ID COMMAND SET/CMD string
|
|
option mdns_cmd ''
|