[11391] in Athena Bugs

home help back first fref pref prev next nref lref last post

sun4 7.6Q: mkserv (bug 3 for the night)

daemon@ATHENA.MIT.EDU (jweiss@MIT.EDU)
Wed Nov 17 02:26:24 1993

From: jweiss@MIT.EDU
To: bugs@MIT.EDU
Cc: jweiss@MIT.EDU
Date: Wed, 17 Nov 93 02:26:09 EST

System name:		the-other-woman
Type and version:	SPARC/Classic 7.6Q (12 update(s) to same version)
Display type:		cgthree

What were you trying to do?
	mkserv discuss

What's wrong:
	discuss.add uses the mkserv syntax "addservice"
echo "addservice discuss        stream  tcp     nowait  unswitched      discuss /usr/athena/etc/discussd        discussd" >> ${CONFCNG}
	resulted in:
discuss stream  tcp     nowait  root    discuss	/usr/athena/etc/discussd        discussd

What should have happened:
	the "root" shouldn't have been there.  It's wrong, and it
	screws up the number of parameters on the line.  (inetd lost
	badly trying to exec discuss)

Please describe any relevant documentation references:
	Looking at /mit/mkserv/src/mkserv/os.c we see lines 567-9
	(inside #if defined(_IBMR2) || defined(sun) )

	/* Add a username to run commands */
	strcat(p1, "root");
	p1 += 4; /* length of root */

	I can't figure out why this is here at all as far as I can
	tell, both the bsd syntax in the addservice statement and the
	syntax on the sun (rs6k too) have a username there, there
	shouldn't be any reason to add another.  Am I confused? Am I
	looking at the right sources?

home help back first fref pref prev next nref lref last post