Subject: pkg/7365: change request to Eterm package
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Thilo.Manske@HEH.Uni-Oldenburg.DE>
List: netbsd-bugs
Date: 04/12/1999 16:30:17
>Number: 7365
>Category: pkg
>Synopsis: Eterm can't update the utmp database
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Apr 12 07:35:00 1999
>Last-Modified:
>Originator: Thilo Manske
>Organization:
Dies ist Thilos Unix Signature! Viel Spass damit.
>Release: doesn't matter
>Environment:
System: NetBSD WintelKiller 1.4_ALPHA NetBSD 1.4_ALPHA (WintelKiller) #104: Mon Apr 12 04:56:07 MEST 1999 root@WintelKiller:/usr/src/sys/arch/i386/compile/WintelKiller i386
>Description:
Eterm's current permissions and mode doesn't allow it to update the
utmp database.
>How-To-Repeat:
Eterm &
w
or in an Eterm window:
mesg n
>Fix:
suid Eterm to root -- at least as an option
(I thought sgid-ing to utmp would be enough, but it's not)
Here's quick and dirty hack:
(Since my english is soo far away from perfection I didn't dare to
send a patch for mk.conf.example explaining ETERM_SUIDROOT as well :-) )
--- Makefile.old Thu Apr 8 13:53:40 1999
+++ Makefile Mon Apr 12 16:17:28 1999
@@ -23,5 +23,9 @@
${MV} ${WRKDIR}/Eterm/bg/tile/* ${WRKSRC}/bg/tile
${RM} -r ${WRKDIR}/Eterm
${CHMOD} -R o+r ${WRKSRC}
+post-install:
+.if defined(ETERM_SUIDROOT)
+ ${CHMOD} u+s ${X11BASE}/bin/Eterm
+.endif
.include "../../mk/bsd.pkg.mk"
>Audit-Trail:
>Unformatted: