Bug 62617 - qpage port runs as wrong user by default
Summary: qpage port runs as wrong user by default
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-10 06:20 UTC by Mike Andrews
Modified: 2004-05-17 23:09 UTC (History)
0 users

See Also:


Attachments
file.diff (762 bytes, patch)
2004-02-10 06:20 UTC, Mike Andrews
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Andrews 2004-02-10 06:20:10 UTC
	qpage has a compiled-in userid to switch to when it drops root privs.
	Out of the box, this is 'daemon', which doesn't have privs to open any
	/dev/cuaa* devices, which makes it hard to send pages via modem.

	qpage can also act as an SNPP client without talking directly to a
	modem, though, in which case 'daemon' is fine.  Still, there's no
	compile-time knob to change this easily, which makes 'portupgrade'
	a bit of a pain. :)

Fix: Since some people probably use this as only an SNPP client instead
	of talking to a modem directly, in which case 'daemon' is OK...
	maybe a QPAGE_USER knob that could be set in /etc/make.conf?

	Otherwise, extend /usr/ports/comms/qpage/files/patch-config.h.in to
	change 'daemon' to 'uucp' on line 26 of the original file.
How-To-Repeat: 
	1) cd /usr/ports/comms/qpage; make install
	2) set up /usr/local/etc/qpage.cf to use a modem, for example:

modem=modem device=/dev/cuaa1
service=foobarpagerco
	device=modem
	baudrate=1200
	parity=even
	allowpid=yes
	maxtries=6
	phone=5551212
	maxmsgsize=230
	maxpages=5
pager=pagerone
	pagerid=5552121
	service=foobarpagerco

	3) /usr/local/etc/rc.d/qpage.sh start
	Opening the modem device will fail and the daemon won't start.
Comment 1 Thierry Thomas freebsd_committer freebsd_triage 2004-05-17 23:08:30 UTC
State Changed
From-To: open->closed


Committed, thanks!