From nobody@FreeBSD.org  Mon Aug  9 06:58:45 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C65B8106575A
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  9 Aug 2010 06:58:45 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 9B7148FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  9 Aug 2010 06:58:45 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o796wis6023719
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 9 Aug 2010 06:58:44 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o796wiDF023718;
	Mon, 9 Aug 2010 06:58:44 GMT
	(envelope-from nobody)
Message-Id: <201008090658.o796wiDF023718@www.freebsd.org>
Date: Mon, 9 Aug 2010 06:58:44 GMT
From: "Dmitry S. Luhtionov" <mitya@cabletv.dp.ua>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [comms/lrzsz] Not set suid flags on programs
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         149462
>Category:       ports
>Synopsis:       comms/lrzsz: Not set suid flags on programs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dinoex
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 09 07:00:15 UTC 2010
>Closed-Date:    Mon Nov 15 09:35:29 CET 2010
>Last-Modified:  Mon Nov 15 09:35:29 CET 2010
>Originator:     Dmitry S. Luhtionov
>Release:        8.1-STABLE amd64
>Organization:
>Environment:
FreeBSD m18.cabletv.dp.ua 8.1-STABLE FreeBSD 8.1-STABLE #0: Fri Aug  6 12:58:50 EEST 2010     root@m18.cabletv.dp.ua:/usr/src/sys/amd64/compile/m18  amd64
>Description:
I install /comms/minicom with /comms/lrzsz.
When I try to send file on zmodem through minicom, I see this message:

lsz: this program was never intended to be used setuid
>How-To-Repeat:

>Fix:
set suid bit on /usr/local/bin/lsz and /usr/local/bon/lrz

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->dinoex 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Aug 9 07:00:26 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=149462 
State-Changed-From-To: open->feedback 
State-Changed-By: dinoex 
State-Changed-When: Fri Aug 13 12:23:26 CEST 2010 
State-Changed-Why:  


The port does not set suid. 

-r-xr-xr-x  3 root  wheel    75540 Jun  3 03:11 /usr/local/bin/lrb* 
-r-xr-xr-x  3 root  wheel    75540 Jun  3 03:11 /usr/local/bin/lrx* 
-r-xr-xr-x  3 root  wheel    75540 Jun  3 03:11 /usr/local/bin/lrz* 
-r-xr-xr-x  3 root  wheel    79732 Jun  3 03:11 /usr/local/bin/lsb* 
-r-xr-xr-x  3 root  wheel    79732 Jun  3 03:11 /usr/local/bin/lsx* 
-r-xr-xr-x  3 root  wheel    79732 Jun  3 03:11 /usr/local/bin/lsz* 

Please check your installation. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=149462 
State-Changed-From-To: feedback->analyzed 
State-Changed-By: dinoex 
State-Changed-When: Sat Aug 14 07:05:24 CEST 2010 
State-Changed-Why:  

This must be your minicom setup. 

The code in lsr/lsrz is: 

if (getuid()!=geteuid()) { 
error(1,0, 
_("this program was never intended to be used setuidn")); 
} 

Setting suid in lrz is really a bad idea. 
Any user would be able to overwrite /etc/master_passwd and otehr system files. 
I will not set lrz/lsz SUID. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=149462 
State-Changed-From-To: analyzed->closed 
State-Changed-By: dinoex 
State-Changed-When: Mon Nov 15 09:32:45 CET 2010 
State-Changed-Why:  

Feedback timeout. 

Solution: 
Use groups to give access to the serial devies. 

for example: 
pw usermod minicomuser -g dialer 


http://www.freebsd.org/cgi/query-pr.cgi?pr=149462 
>Unformatted:
