Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!mit-eddie!ll-xn!ames!ptsfa!ihnp4!alberta!ers!teletron!andrew From: andrew@teletron.UUCP (Andrew Scott) Newsgroups: comp.sys.att Subject: Re: a few questions on the 3B1 Message-ID: <113@teletron.UUCP> Date: Mon, 19-Oct-87 17:13:21 EDT Article-I.D.: teletron.113 Posted: Mon Oct 19 17:13:21 1987 Date-Received: Tue, 20-Oct-87 23:52:20 EDT References: <1913@gryphon.CTS.COM> <487@maxepr.UUCP> Organization: TeleTronic Communications Ltd., Edmonton, Alta. Lines: 43 Summary: uucp TZ problem fix In article <1913@gryphon.CTS.COM> jimmy@denwa.UUCP (Jim Gottlieb) writes: >I notice that the machine defaults to Eastern Time (i.e. incoming uucp >calls are logged in EDT,... In article <487@maxepr.UUCP>, ken@maxepr.UUCP (Ken Brassler) writes: > A previous discussion in a different newsgroup offered the following > fix: > > 2. Change the /etc/passwd entries for uucp & nuucp to point to a > shell script, rather than uucico. I use /usr/lib/uucp/uushell. > > 3. Create /usr/lib/uucp/uushell containing the following: > > if [ \( -f /etc/TZ \) -a \( -r /etc/TZ \) ] > then > TZ=`cat /etc/TZ` > export TZ > fi > exec /usr/lib/uucp/uucico $* Using a shell script for a login is a *bad thing*. I was shown how this is a security hole by lyndon@ncc. I wrote the following short driver to uucico to solve the problem. Rename the present uucico as 'uucico.exec' and name the compiled version of this program 'uucico'. Andrew static char *environ[] = { "PATH=:/bin:/usr/bin", "HOME=/usr/spool/uucppublic", "TZ=MST7MDT", /* or whatever */ 0 }; /* ARGSUSED */ main(argc, argv) int argc; char **argv; { (void) execve("/usr/lib/uucp/uucico.exec", argv, environ); return (0); }