1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-19 23:28:39 +02:00
openwrt-packages/net/p910nd/files/p910nd.config
Daniel F. Dickinson 932c76fa74 p910nd: Run as non-root by default
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>
2019-08-02 15:58:57 +08:00

27 lines
908 B
Plaintext

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 ''