From owner-freebsd-questions@FreeBSD.ORG Fri Jul 30 22:00:15 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 121AE1065673 for ; Fri, 30 Jul 2010 22:00:15 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 931A68FC12 for ; Fri, 30 Jul 2010 22:00:14 +0000 (UTC) Received: by bwz12 with SMTP id 12so1179909bwz.13 for ; Fri, 30 Jul 2010 15:00:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:received :reply-to:in-reply-to:references:date:message-id:subject:from:to:cc :content-type; bh=l7AVmWz06HoLU0CIX+o4Xu49wohyfggmGtBdh/X79zg=; b=MAhUAce2rUoo80c+R5n6jHD9KrR8Y9au9wZzZ4qcsPRJbgYsgoRuSfaNjzazqDvM1D NuFDDpqHPcan6n/UM13rTu8LtlcAJXU0zEGgTv2ZHFfN95GUrRgr1QaYQl/hokrGW+f+ GQoyiZmaSi/FEy/ys2FsMu3R9hXMziDIPEM6Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; b=W6BwvQi7BZu7hUwFLZ7ikho1QK65nZMDSa7yaQHI9bkoisuzO90KcTicMMYh5RTnJE 0ZK/+JcO6RYvr/BjPU+tfvbHdUOx0nNENixuWS9WEMAy0031kvT2aXU8GA+qKPYqYvEZ b54YrwYRKmWFgkk+/hJPYwkEcF026extfaIbA= MIME-Version: 1.0 Received: by 10.204.59.2 with SMTP id j2mr1506662bkh.199.1280527213414; Fri, 30 Jul 2010 15:00:13 -0700 (PDT) Received: by 10.204.162.193 with HTTP; Fri, 30 Jul 2010 15:00:13 -0700 (PDT) Received: by 10.204.162.193 with HTTP; Fri, 30 Jul 2010 15:00:13 -0700 (PDT) In-Reply-To: References: Date: Fri, 30 Jul 2010 23:00:13 +0100 Message-ID: From: Chris Rees To: me Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: sudo -K/-k ineffective X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: utisoft@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jul 2010 22:00:15 -0000 It's by design. There's a timeout that you can set, try man sudo. Chris -------- Sorry for top-posting, Android won't let me quote, but K-9 can't yet do threading. On 30 Jul 2010 21:43, "me" wrote: 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. _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"