From: "Aaron C. de Bruyn" <aaron@heyaaron.com>
To: Kent Ho <garlumh@hotmail.com>
Cc: linux-admin@vger.kernel.org, linux-apps@vger.kernel.org,
linux-config@vger.kernel.org
Subject: Re: sudo selectively execute file, * wildcard on dir set with "(ALL) NOPASSWD:".
Date: Tue, 5 Jan 2010 08:08:05 -0800 [thread overview]
Message-ID: <20100105160805.GB3433@chrysalis> (raw)
In-Reply-To: <SNT117-W47066EC16DA8C3B6421C8BA7730@phx.gbl>
On 2010-01-05 at 17:08:37 +0800, Kent Ho wrote:
> I then copy script1.sh to a new file in the same directory as "script2.sh".
> Now I execute "script1.sh" again with sudo, now it will execute.
Read the docs.
From the sudo man page:
-k The -k (kill) option to sudo invalidates the user's timestamp
by setting the time on it to the Epoch. The next time sudo is run a
password will be required. This option does not require a password and
was added to allow a user to revoke sudo permissions from a .logout file.
-A
next prev parent reply other threads:[~2010-01-05 16:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-05 9:08 sudo selectively execute file, * wildcard on dir set with "(ALL) NOPASSWD:" Kent Ho
2010-01-05 16:08 ` Aaron C. de Bruyn [this message]
[not found] ` <4B43101A.7040807@direkt.ro>
2010-01-11 9:41 ` Kent Ho
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100105160805.GB3433@chrysalis \
--to=aaron@heyaaron.com \
--cc=garlumh@hotmail.com \
--cc=linux-admin@vger.kernel.org \
--cc=linux-apps@vger.kernel.org \
--cc=linux-config@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).