Re: Disabling sudoers temporarily
Re: Disabling sudoers temporarily
- Subject: Re: Disabling sudoers temporarily
- From: Graff <email@hidden>
- Date: Tue, 11 May 2004 03:11:29 -0400
Here's a plain-vanilla sudoers file for you to compare against:
--------------
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers
file.
#
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
# User privilege specification
root ALL=(ALL) ALL
min ALL=(ALL) ALL
--------------
As long as you are in the root or admin group then you will not get the
warning, if you are not in either group then the warning will appear.
I find the easiest way to test these sort of things is to just create a
new user account with the privileges you are testing against and then
do the testing in that account.
- Ken
On May 11, 2004, at 1:49 AM, Gnarlodious wrote:
I'm writing a script that messes with system files.
I'm set in sudoers for passwordless root execution, which is great.
But my
script is for public use. So I commented out my name in sudoers and
rebooted.
Now as I try to write my script I get a dire warning (You are not in
the
sudoers file, this incident will be reported.
Now I wonder if it was a mistake to comment out the whole line in
sudoers,
is the system preventing me from root access because my name isn't even
mentioned?
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.