Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Dec 1995 10:13:15 +0100 (MET)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        obrien@cs.ucdavis.edu (David E. O'Brien)
Cc:        freebsd-security@freebsd.org, freebsd-hackers@freebsd.org
Subject:   Re: termcap access as user uucp
Message-ID:  <199512300913.KAA25599@uriah.heep.sax.de>
In-Reply-To: <9512300651.AA10608@toadflax.cs.ucdavis.edu> from "David E. O'Brien" at Dec 29, 95 10:51:30 pm

next in thread | previous in thread | raw e-mail | index | archive | help
As David E. O'Brien wrote:
> 
> I'm doing a port of a terminal program to FreeBSD.  The orignal author
> installs it setuid root.  I don't care for this.  Following /usr/bin/cu's
> lead, I make it setuid uucp.  Problem is the program can't access the
> termcap database as this user.  Does it have something to do with uucp
> not having a "normal" shell?

Do you have a ``protected path'' to your /usr/share/misc directory?

uriah # cc foo.c -ltermcap
uriah # su -m nobody -c ./a.out

xterm|vs100|xterm terminal emulator (X window system):li#24:hs:ts=\E[?E\E[?%i%dT:fs=\E[?F:es:ds=\E[?E:is=\E>\E[?1;3;4;5l\E[?7;8h\E[1;65r\E[65;1H:rs=\E>\E[?1;3;4;5l\E[?7;8h:@7=\E[4~:kh=\E[1~:kI=\E[2~:k0=\E[10~:kD=\E[3~:k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:F1=\E[23~:F2=\E[24~:kP=\E[5~:kN=\E[6~:K1=\EOw:K2=\EOy:K3=\EOu:K4=\EOq:K5=\EOs:al=\E[L:dl=\E[M:im=\E[4h:ei=\E[4l:mi:dc=\E[P:AL=\E[%dL:DL=\E[%dM:DC=\E[%dP:do=\E[B:cl=\E[H\E[J:sf=\ED:as=\E(0:ae=\E(B:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:nw=\EE:ce=\E[K:cd=\E[J:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:md=\E[1m:mr=\E[7m:mb=\E[5m:me=\E[m:sr=\EM:sc=\E7:rc=\E8:cs=\E[%i%d;%dr:UP=\E[%dA:DO=\E[%dB:RI=\E[%dC:LE=\E[%dD:ct=\E[3g:st=\EH:co#80:le=^H:bs:am:if=/usr/share/tabset/vt100:ac=llmmkkjjuuttvvwwqqxxnnpprr``aa:ks=\E[?1h\E=:ke=\E[?1l\E>:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=\177:ho=\E[H:pt:vt#3:xn:ta=^I:ms:bl=^G:cr=^M:eo:it#8:ut:


-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512300913.KAA25599>