From owner-freebsd-questions@FreeBSD.ORG Mon Aug 18 23:28:05 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1C488762 for ; Mon, 18 Aug 2014 23:28:05 +0000 (UTC) Received: from mail-pd0-x236.google.com (mail-pd0-x236.google.com [IPv6:2607:f8b0:400e:c02::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E4A49339A for ; Mon, 18 Aug 2014 23:28:04 +0000 (UTC) Received: by mail-pd0-f182.google.com with SMTP id fp1so8394174pdb.41 for ; Mon, 18 Aug 2014 16:28:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=We5skbW45NVq2hH0IbQyKaSOkdIJCpflxCcv3vXtYh4=; b=p0hnoE8PR0c5nxzYpR89b02f7Tl8oSkcVpd82/Z1stbsVMl9RFoWjYQxFsI6nzDgpq FJZMCt1HH4TKhcxaCCrTTM0q24y5n368BJFanRVTsTR84suhTPcDmQ8qGcubOfYcPENH OMw5YaFyvSQa95PFVIObgTU3nVTrAZu1gNH1kv3r1j7v7HrMRKh8fO2sStMJ5jGA9sUG LythaTA6/KGuEN9wzqKVWOF/t1Rp2WArAF2nUryO8Q/VfBzr3WVxBW59JdzEqOCBvjIs xY3ItDMgd73H9SWnoKQK9aZbFHqL7d8tDIbcnTwvDzOZ4HHeB0VPpmCBJ9XHmBAM1Pwh PmQw== X-Received: by 10.66.65.162 with SMTP id y2mr11978402pas.55.1408404484351; Mon, 18 Aug 2014 16:28:04 -0700 (PDT) Received: from [192.168.40.122] ([209.12.167.3]) by mx.google.com with ESMTPSA id bd4sm26491774pdb.68.2014.08.18.16.28.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Aug 2014 16:28:03 -0700 (PDT) Message-ID: <53F28C01.8060800@gmail.com> Date: Mon, 18 Aug 2014 16:28:01 -0700 From: Jungle Boogie Reply-To: "freebsd-questions@freebsd.org" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: What Would Make Sudo Always Let one Execute a Command? References: <20140818210721.0EEDB22957@server1.shellworld.net> In-Reply-To: <20140818210721.0EEDB22957@server1.shellworld.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2014 23:28:05 -0000 Dear Martin, -------------------------------------------- From: Martin G. McCormick Sent: Mon, 18 Aug 2014 16:07:21 -0500 To: freebsd-questions@freebsd.org Subject: What Would Make Sudo Always Let one Execute a Command? > > Sudo behaves as if the default timeout in sudoers was set to -1. > Out of 5 FreeBSD9 systems, this one system exhibits this > behavior while all the others time out like they should. Setting > the value to 0 should cause one to always have to enter a > password, but not on this system. > Has anyone ever seen this before? The sudoers file is a > copy of the same sudoers file we use on the other machines. I > have also tried sudo from a few other user ID's on the system > and see the same behavior. First, have you read Michael W. Lucas' book (if you haven't already): https://www.michaelwlucas.com/nonfiction/sudo-mastery Secondly, maybe you can add the user to a group so sudo is not needed for your command. Next, are you sure your sudo file doesn't have this uncommented: # %wheel ALL=(ALL) NOPASSWD: ALL > Thank you. > > Martin McCormick -- inum: 883510009027723 sip: jungleboogie@sip2sip.info xmpp: jungle-boogie@jit.si