From owner-freebsd-questions@FreeBSD.ORG Fri Jun 16 22:33:15 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7ADE16A479 for ; Fri, 16 Jun 2006 22:33:15 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5752343D6A for ; Fri, 16 Jun 2006 22:33:15 +0000 (GMT) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FrMsI-0002v5-IV for freebsd-questions@freebsd.org; Sat, 17 Jun 2006 00:33:10 +0200 Received: from r5k156.chello.upc.cz ([86.49.10.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Jun 2006 00:33:10 +0200 Received: from martinkov by r5k156.chello.upc.cz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Jun 2006 00:33:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: martinko Date: Sat, 17 Jun 2006 00:33:00 +0200 Lines: 21 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: r5k156.chello.upc.cz User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.4) Gecko/20060605 SeaMonkey/1.0.2 Sender: news Cc: freebsd-stable@freebsd.org Subject: portsnap recreates /usr/ports for no apparent reason X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 22:33:15 -0000 hello, i've just discovered strange and unexpected behaviour of portsnap: i configured sudo to allow me to run the script with the following contents: /usr/sbin/portsnap fetch /usr/sbin/portsnap update /usr/local/sbin/portversion -v -l "<" /usr/local/sbin/portaudit -Fda to be precise -- i allow my user to run (via sudo) any of the programs above plus the script itself. now when i first ran the script as a normal user via sudo, portsnap deleted and recreated the whole /usr/ports directory structure. subsequent runs went as expected. then i ran the script from root as i had been always doing and again portsnap deleted and recreated the whole ports directory structure. i guess this is not intended right? or am i missing something here? cheers, martin