NetBSD Problem Report #143
From gnats Mon Feb 28 15:16:13 1994
Received: from skarven.dsl.unit.no (skarven.dsl.unit.no [129.241.36.65]) by sun-lamp.cs.berkeley.edu (8.6.5/8.6.5) with ESMTP id PAA17740 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Mon, 28 Feb 1994 15:16:12 -0800
Message-Id: <199402282303.AAA08755@skarven.dsl.unit.no>
Date: Tue, 1 Mar 1994 00:03:52 +0100
From: Arne Juul <arnej@dsl.unit.no>
Reply-To: arnej@dsl.unit.no
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: Setuid programs installed unreadable
X-Send-Pr-Version: 3.2
>Number: 143
>Category: misc
>Synopsis: Several setuid programs installed unreadable
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Feb 28 15:20:01 +0000 1994
>Closed-Date: Tue Mar 01 00:47:10 +0000 1994
>Last-Modified: Wed Sep 05 01:28:43 +0000 2001
>Originator: Arne H. Juul
>Release: 0.9-current
>Organization:
University of Trondheim, Norway
>Environment:
Standalone machine with sources sup'ed Sunday
System: NetBSD skarven.dsl.unit.no 0.9a SKARVEN#0 i386
>Description:
Several setuid programs, like crontab, is installed without
read permission. This is (in my eyes) a hopeless security-
through-obscurity measure with no positive effects, and
hinders me from strings'ing or ftp'ing these binaries as
a normal user. (If there is some actual reason why these
programs aren't readable, please tell me :-)
>How-To-Repeat:
ls -l /usr/bin/tip /usr/bin/crontab /sbin/disklabel /sbin/init /sbin/shutdown
>Fix:
Apply patch below:
*** usr.bin/tip/Makefile.orig Fri Dec 17 08:18:31 1993
--- usr.bin/tip/Makefile Sun Feb 27 11:11:11 1994
***************
*** 35,41 ****
.PATH: ${.CURDIR}/aculib
BINOWN= uucp
BINGRP= dialer
! BINMODE=4510
# LINKS= ${BINDIR}/tip ${BINDIR}/cu
# MLINKS= tip.1 cu.1
SRCS= acu.c acutab.c cmds.c cmdtab.c cu.c hunt.c log.c partab.c remcap.c \
--- 35,41 ----
.PATH: ${.CURDIR}/aculib
BINOWN= uucp
BINGRP= dialer
! BINMODE=4554
# LINKS= ${BINDIR}/tip ${BINDIR}/cu
# MLINKS= tip.1 cu.1
SRCS= acu.c acutab.c cmds.c cmdtab.c cu.c hunt.c log.c partab.c remcap.c \
*** usr.bin/crontab/Makefile.orig Thu Feb 10 12:18:54 1994
--- usr.bin/crontab/Makefile Sun Feb 27 11:09:58 1994
***************
*** 4,10 ****
SRCS= crontab.c misc.c entry.c env.c
CFLAGS+=-I${.CURDIR} -I${.CURDIR}/../../usr.sbin/cron -DDEBUGGING=1
BINOWN =root
! BINMODE=4111
MAN1=
MAN5=
CLEANFILES=crontab.1.0 crontab.5.0
--- 4,10 ----
SRCS= crontab.c misc.c entry.c env.c
CFLAGS+=-I${.CURDIR} -I${.CURDIR}/../../usr.sbin/cron -DDEBUGGING=1
BINOWN =root
! BINMODE=4555
MAN1=
MAN5=
CLEANFILES=crontab.1.0 crontab.5.0
*** sbin/disklabel/Makefile.orig Sun Feb 13 11:11:31 1994
--- sbin/disklabel/Makefile Sun Feb 27 11:14:52 1994
***************
*** 5,11 ****
SRCS= disklabel.c dkcksum.c
MAN8= disklabel.0
BINGRP=operator
! BINMODE=2550
CLEANFILES=disklabel.5.0
.if (${MACHINE} == "amiga")
CFLAGS+=-D${MACHINE}
--- 5,11 ----
SRCS= disklabel.c dkcksum.c
MAN8= disklabel.0
BINGRP=operator
! BINMODE=2554
CLEANFILES=disklabel.5.0
.if (${MACHINE} == "amiga")
CFLAGS+=-D${MACHINE}
*** sbin/init/Makefile.orig Fri Dec 17 07:35:45 1993
--- sbin/init/Makefile Sun Feb 27 11:15:44 1994
***************
*** 8,13 ****
CFLAGS+=-DSECURE -DNOSYSCTL
DPADD= ${LIBUTIL} ${LIBCRYPT}
LDADD= -lutil -lcrypt
! BINMODE=500
.include <bsd.prog.mk>
--- 8,13 ----
CFLAGS+=-DSECURE -DNOSYSCTL
DPADD= ${LIBUTIL} ${LIBCRYPT}
LDADD= -lutil -lcrypt
! BINMODE=544
.include <bsd.prog.mk>
*** sbin/shutdown/Makefile.orig Fri Dec 17 07:37:03 1993
--- sbin/shutdown/Makefile Sun Feb 27 11:17:06 1994
***************
*** 5,10 ****
MAN8= shutdown.0
BINOWN= root
BINGRP= operator
! BINMODE=4550
.include <bsd.prog.mk>
--- 5,10 ----
MAN8= shutdown.0
BINOWN= root
BINGRP= operator
! BINMODE=4554
.include <bsd.prog.mk>
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: cgd
State-Changed-When: Mon Feb 28 16:47:10 PST 1994
State-Changed-Why:
this is bad idea, from a security standpoint, and decidedly should *NOT* be
implemented.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.