Re: sudo selectively execute file, * wildcard on dir set with "(ALL) NOPASSWD:".

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-config" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Audio]     [Linux Console]     [Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Samba]     [Fedora Users]

  Powered by Linux