Re: question.....
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.
References: | |
| >question..... (From: Martha Espinosa <email@hidden>) |