Do not install setuid uucp; use group dialer to control access to modem

Print a message saying that if someone wishes to use minicom's
minicom.users file to control access they have to change the perms; help from S@mSmith.net
This commit is contained in:
pvalchev 2002-09-28 00:46:11 +00:00
parent ad30a44c3b
commit acc52383c0
3 changed files with 19 additions and 13 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.37 2002/09/01 18:49:00 mpech Exp $
# $OpenBSD: Makefile,v 1.38 2002/09/28 00:46:11 pvalchev Exp $
COMMENT= "MS-DOS Telix-like serial communication program"
DISTNAME= ${PKGNAME}.src
PKGNAME= minicom-2.00.0
VER= 2.00.0
DISTNAME= minicom-${VER}.src
PKGNAME= minicom-${VER}p1
CATEGORIES= comms
NEED_VERSION= 1.528
MASTER_SITES= ${MASTER_SITE_BACKUP} \
${MASTER_SITE_SUNSITE:=apps/serialcomm/dialout/}
@ -20,7 +20,7 @@ PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WRKDIST= ${WRKDIR}/${PKGNAME}
WRKDIST= ${WRKDIR}/minicom-${VER}
COPTS= -DHAS_EUID
CONFIGURE_STYLE= autoconf
@ -34,8 +34,6 @@ post-patch:
post-install:
@chown uucp:dialer ${PREFIX}/bin/minicom
@chmod 4111 ${PREFIX}/bin/minicom
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/minicom
${INSTALL_DATA} ${WRKDIST}/doc/minicom.users \
${PREFIX}/share/examples/minicom/minicom.users.sample

12
comms/minicom/pkg/MESSAGE Normal file
View File

@ -0,0 +1,12 @@
+-------------------
|
| minicom is installed with permissions set at 555.
|
| To allow users to run minicom, you should put them in group dialer.
|
| If you wish to use ${SYSCONFDIR}/minicom/minicom.users to restrict
| user behaviour to specific configurations or ports, then you
| must change the permissions on ${PREFIX}/bin/minicom to be mode 4551
| owned by uucp:dialer and *not* put users in group dialer.
|
+-------------------

View File

@ -1,11 +1,7 @@
@comment $OpenBSD: PLIST,v 1.11 2002/03/22 05:31:37 form Exp $
@comment $OpenBSD: PLIST,v 1.12 2002/09/28 00:46:11 pvalchev Exp $
bin/ascii-xfr
@owner uucp
@group dialer
@mode 6111
@mode 555
bin/minicom
@owner
@group
@mode
bin/runscript
man/man1/ascii-xfr.1