Re: do shell script and passwords
Re: do shell script and passwords
- Subject: Re: do shell script and passwords
- From: garrett <email@hidden>
- Date: Mon, 10 Jun 2002 09:30:50 -0500
thanx for the help... I guess I was thrown by WhatRoute telling me to
activate rawrequest using the sudo command.
question:
if u do invoke the sudo command with a bad password in the terminal (even if
it's not needed), it will fail. however buy using AS to do the same thing,
it totally ignores the error and lets things proceed. wouldn't u think that
despite it not needing a pw to launch the process that the syntax alone
would trigger an error? don't get me wrong I'm glad it works, but it doesn't
make me feel good that I issued bad (or unnecessary) commands and it let it
fly.
Sometime 'round 06/10/2002 08:07 AM, Alex Robinson at
email@hidden wasted bandwidth and sent me this:
>
> do shell script "/usr/sbin/rawrequest"
>
>
>
> works too. what is going on... could someone actually try this out.. they
>
> can get the rawrequest PKG installer that comes with WhatRoute 1.8 rather
>
> than speculate... because I am doing everything suggested and guess what..
>
> no go!
>
>
>
Well I just installed the package.
>
>
-rwxr-xr-x 1 root wheel 72848 Dec 27 06:28 rawrequest
>
>
ie. you don't need sudo - any user can run it.
>
>
>
And your line should read
>
>>>>
>
do shell script "/usr/sbin/rawrequest" password AdminPass with
>
administrator privileges
>
<<<<
>
>
As it stands
>
>>>>
>
do shell script "/usr/sbin/rawrequest" administrator privileges yes
>
password AdminPass
>
<<<<
>
>
the admin privileges and password part compile but don't appear to have any
>
effect.
>
>
So, there doesn't seem to be any problem after all.
>
_______________________________________________
>
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.
-------
garrett
_______________________________________________
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.