Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site sdccsu3.UUCP Path: utzoo!linus!decvax!ittvax!dcdwest!sdcsvax!sdccsu3!muller From: muller@sdccsu3.UUCP Newsgroups: net.unix Subject: Re: Tip problem - (nf) Message-ID: <2079@sdccsu3.UUCP> Date: Sat, 14-Jul-84 23:48:12 EDT Article-I.D.: sdccsu3.2079 Posted: Sat Jul 14 23:48:12 1984 Date-Received: Mon, 16-Jul-84 05:11:45 EDT References: <18500014@smu.UUCP> Organization: U.C. San Diego, Computer Center Lines: 61 I got around the problem by changing tip and cu to be both setuid and setgid to uucp (or whatever group your uucp is in). I changed /usr/spool/uucp to be group writable (mode 775) and made the following changes. Although this is not completely bulletproof it is a bit better than having a world writeable /usr/spool/uucp. Keith Muller UCSD Computer Center RCS file: RCS/Makefile,v retrieving revision 1.1 diff -r1.1 Makefile 71c71 < install -m 4711 -o ${OWNER} -g ${GROUP} tip ${DESTDIR}/usr/bin/tip --- > install -m 6711 -o ${OWNER} -g ${GROUP} tip ${DESTDIR}/usr/bin/tip ------------------------------- RCS file: RCS/cu.c,v retrieving revision 1.1 diff -r1.1 cu.c 0a1 > /* $Header: cu.c,v 1.2 84/02/22 14:04:47 muller Exp $ */ 4a6,12 > /* $Log: cu.c,v $ > * Revision 1.2 84/02/22 14:04:47 muller > * removed a line of code that reset the effective group id back > * to the real users group id. This is the same change as in tip.c to > * allow removal the lockfile from /usr/spool/uucp. > * */ > 85d92 < setgid(getgid()); --------------------------- RCS file: RCS/tip.c,v retrieving revision 1.1 diff -r1.1 tip.c 0a1 > /* $Header: tip.c,v 1.2 84/02/15 17:05:07 muller Exp $ */ 4a6,12 > /* $Log: tip.c,v $ > * Revision 1.2 84/02/15 17:05:07 muller > * removed the code that reset the effective group id. This caused the > * lockfile removal to fail since the uucp directory is no longer > * writeable by others. > * */ > 103d110 < setgid(getgid()); -------------------------- RCS file: RCS/uucplock.c,v retrieving revision 1.1 diff -r1.1 uucplock.c 7c7 < #define NAMESIZE 15 --- > #define NAMESIZE 40 171a172 > fchmod(fd, 0444);