• 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: question.....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: question.....


  • Subject: Re: question.....
  • From: Christopher Nebel <email@hidden>
  • Date: Fri, 21 May 2004 00:48:18 -0700

On May 19, 2004, at 3:27 PM, Martha Espinosa wrote:

I have a couple of questions... Brand new system... trying to automate the following using applescript without user intervention...

1) Is there a way to add a password to the root account then disable it?

Mac OS X ships with the root account disabled. Is that not sufficient?

2) Is there a way to turn off Rendezvous?

Mr. Welch is doing a far better job answering this than I possibly could...

3) Can I check if the person logged on is an admin, user or root?

id(1) can tell you this:

(do shell script "id -nru") is "root" -- you're root.
(words of do shell script "id -nrG") contains "admin" -- you're an admin.

This tests the current user; there are ways to test other users if you know their login name. (You can also use the older whoami(1) and groups(1) commands.) Bear in mind that sudo(8) will fool this -- a command running inside sudo(8) has a real, not merely effective, user id of root.


--Chris Nebel
AppleScript Engineering
_______________________________________________
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.


  • Follow-Ups:
    • AppleScripting Blank CDs
      • From: Jason Bourque <email@hidden>
    • Re: question.....
      • From: "John C. Welch" <email@hidden>
References: 
 >question..... (From: Martha Espinosa <email@hidden>)

  • Prev by Date: Re: How is the applescript support in Office 2004?
  • Next by Date: applescripts 32k limit
  • Previous by thread: Re: question.....[VERY LONG AND INVOLVED]
  • Next by thread: Re: question.....
  • Index(es):
    • Date
    • Thread