From owner-freebsd-questions@FreeBSD.ORG Fri Jul 30 20:41:37 2010 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 A498E1065670 for ; Fri, 30 Jul 2010 20:41:37 +0000 (UTC) (envelope-from gurpreet007@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 3DA248FC0C for ; Fri, 30 Jul 2010 20:41:36 +0000 (UTC) Received: by wwa36 with SMTP id 36so408486wwa.31 for ; Fri, 30 Jul 2010 13:41:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=NQBsuUhDvXtNIZfd0OTbjJFdTA/Wuhf/3arNb7Bv23w=; b=XDkhYgu/FojtDQ4BrMhWiRTVkCL6d0Put51VmFNKv9O9PlwGjDEES51WIe7L26opTH 1Q1FpMUr9dI7/BjGxMV/VFiDEZsyJAATzyTt/yZTnjQ/vh/JzsPdy9HbdkHcfx0MIxMa Cczzl2TAZ1gH9iS8gqhHrScCFh1fiJSBJumsM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=Eg/RHHYEfae1HeRWy3ESazFL34L3Yd3SN9B4N/7dkMsJTCXnxGLfj/nlaBO5rFeRbr IEH9kE0Z4LF9QV7swWYgu80UNr5YY4vOtVH+8dPP85lRmkX3ifxBF8TXqMTPSM0QSk2l Gjoht5j/6oNGH1lvxGgPhDst/FDZej1gac8oM= Received: by 10.216.193.195 with SMTP id k45mr2205317wen.32.1280522496156; Fri, 30 Jul 2010 13:41:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.165.73 with HTTP; Fri, 30 Jul 2010 13:41:16 -0700 (PDT) From: me Date: Sat, 31 Jul 2010 02:11:16 +0530 Message-ID: To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: sudo -K/-k ineffective 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, 30 Jul 2010 20:41:37 -0000 Hi, Upon doing sudo as a normal user (non-root), sudo asks for password only once, subsequent invocations of sudo doesn't ask for password - even though I do sudo -k or sudo -K in between. Although sudo starts asking for password after the time stamp expiry. in other words: % sudo mkdir /newdir % sudo -k % sudo -K % sudo mkdir /another_new_dir In sudoers file, NOPASSWD is NOT set. here is my sudeors file: http://pastebin.com/WFnXCLE1 Output of "uname -a": FreeBSD foo.bar 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 Is this known bug? If not, then it might have security implications. Regards, Gurpreet Singh -- Life is not fair. Get used to it. .... Be nice to nerds. Chances are you'll end up working for one.