• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Disabling sudoers temporarily
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Disabling sudoers temporarily (From: Gnarlodious <email@hidden>)

  • Prev by Date: Re: Quark 6, 10.3.3 Every character whose character is "$"
  • Next by Date: Re: Easy way to get a app version number?
  • Previous by thread: Disabling sudoers temporarily
  • Next by thread: Re: Disabling sudoers temporarily
  • Index(es):
    • Date
    • Thread