From owner-freebsd-questions@FreeBSD.ORG Fri Sep 11 18:48:25 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B94D1065670 for ; Fri, 11 Sep 2009 18:48:25 +0000 (UTC) (envelope-from bsd@todoo.biz) Received: from newmail.rmm.fr (newmail.rmm.fr [87.98.206.99]) by mx1.freebsd.org (Postfix) with ESMTP id 4C01C8FC12 for ; Fri, 11 Sep 2009 18:48:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by newmail.rmm.fr (Postfix) with ESMTP id 188EA52F10 for ; Fri, 11 Sep 2009 20:31:35 +0200 (CEST) X-Virus-Scanned: amavisd-new 2.6.4 (20090625) at rmm.fr Received: from newmail.rmm.fr ([127.0.0.1]) by localhost (newmail.rmm.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id scQMIXxVGcaG for ; Fri, 11 Sep 2009 20:31:34 +0200 (CEST) Received: from newmail.rmm.fr (newmail.rmm.fr [87.98.206.99]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: hidden) by newmail.rmm.fr (Postfix) with ESMTPSA id D400852F0E for ; Fri, 11 Sep 2009 20:31:34 +0200 (CEST) From: bsd Content-Type: text/plain; charset=windows-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Date: Fri, 11 Sep 2009 20:31:34 +0200 Message-Id: <08AA332C-6F99-4B28-B391-92616C0602F1@todoo.biz> To: Liste FreeBSD Mime-Version: 1.0 (Apple Message framework v1076) X-Mailer: Apple Mail (2.1076) Subject: sudo script not executing 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, 11 Sep 2009 18:48:25 -0000 Hello, I have an sh script that is called by the "www" process which has a =20 shell that defaults to /sbin/nologin I have configured the sudoers file with these settings: www ALL=3D(www) NOPASSWD: /usr/local/bin/postfixadmin-domain-=20 postdeletion.sh And It does not seem to be able to execute=85 > Sorry, user www is not allowed to execute '/usr/local/bin/=20 > postfixadmin-mailbox-postdeletion.sh y@test.com test.com' as www on = newmail.rmm.fr=20 > . > The file I am trying to delete is also owned by a non privileged =20 user=85 ?? Any clue =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF= =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF Gregober ---> PGP ID --> 0x1BA3C2FD bsd @at@ todoo.biz =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF= =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF P "Please consider your environmental responsibility before printing =20 this e-mail"