Re: do shell script with administrator as User
Re: do shell script with administrator as User
- Subject: Re: do shell script with administrator as User
- From: Rob Morton <email@hidden>
- Date: Wed, 16 Apr 2003 13:53:41 -0400
There is an easy work around for this on a small scale. It does have some
security risks to it that I am guessing you are willing to take either way.
All you have to do is add the user to the /etc/sudoers file. To do that,
type
sudo visudo
in a Terminal window
Add the line to the bottom like this one...
<short name> ALL=(ALL) ALL
Replacing short name and the <> with the users short name. They will then be
classified as an admin to the do shell script command. You can read up on
this file and start restricting them to only using certain commands as well.
No ideal, but it is how I use it as well (I run as a user, with this one
enhancement).
Rob Morton
on 4/16/03 12:13 PM, Dana McDonald at email@hidden wrote:
>
I want to run a do shell script with password and administrator privileges
>
for a User who is not an administrator.
>
>
I was going to save the password in a property once and they will be free to
>
run the script each time, but unfortunately it does not work unless you are
>
logged in as an administrator.
>
>
Is there any way to save my Admin Name and Admin password in the password
>
field: "Admin:Admin Password"?
>
>
I need the User to be able to change the group to staff on files that come
>
into a specific folder in their Documents folder through Timbuktu, but I
>
would like this feature for other things also.
>
>
I can try the ssh into the Admin account from the user side and execute the
>
administrator do shell script, but that seems like huge work around.
>
>
Any suggestions?
>
Thanks
>
Dana McDonald
>
LHWH Advertising
>
Myrtle Beach, SC
>
_______________________________________________
>
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.
_______________________________________________
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.