Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83 (MC830713); site mcvax.UUCP
Path: utzoo!linus!philabs!mcvax!teus
From: teus@mcvax.UUCP
Newsgroups: net.news.b
Subject: news 2.10 expire.c owner (bug)
Message-ID: <5270@mcvax.UUCP>
Date: Thu, 14-Jul-83 15:49:16 EDT
Article-I.D.: mcvax.5270
Posted: Thu Jul 14 15:49:16 1983
Date-Received: Mon, 18-Jul-83 10:39:57 EDT
Organization: Math.Centre, Amsterdam
Lines: 12

As some crontab entry, super user sometimes does not work correctly
the history file is changed to the owner root. This causes many error
mailings to the sending sites.
To overcome this problem please add in expire.c right in the main()-routine
the following:
	extern struct passwd *getpwnam();
	struct passwd *pwd;

	if( (pwd = getpwnam(NEWSU) ) != NULL ) {
		setuid( pwd->pw_uid ); setgid( pwd->pw_gid );
	}
No "su news"-line in crontab or worse a setuid news bits is needed now.