>>>>> "Kir�ly"<
m...@home.spamsucks.ca> wrote in message
>>>>> news:jiej08$r0m$1...@dont-email.me...
>>>>>> W<
persis...@spamarrest.com> wrote:
>>>>>>> Sorry for a basic question here, but how can I get an
>>>>>>> AppleScript icon on my desktop that would:
>>>>>>>
>>>>>>> 1) Put me in administrator context
>>>>>>> 2) Open up a specific application in that context
>>>>>>>
>>>>>>> I am logged in as an ordinary user who is NOT in the
>>>>>>> sudoers list. If I were logged in as administrator in a
>>>>>>> shell the command to open might be something like:
>>>>>>>
>>>>>>> open /Applications/MyAdminApp.app
>>>>>>>
>>>>>>> Basically I am trying to get a set of administrator GUI
>>>>>>> tools at the ready on my desktop.
>>>>>>
>>>>>> I use this AppleScript to run Console as root, while logged
>>>>>> in to my non-admin account:
>>>>>>
>>>>>> do shell script
>>>>>> "/Applications/Utilities/Console.app/Contents/MacOS/Console>
>>>>>> /dev/null 2>&1&" with administrator privileges
>>>>>>
>>>>>> Modify as necessary for other apps.
>>>>>
>>>>> Can you do this safely with an instance of Finder?
>>>>
>>>> That is a horribly bad idea in terms of security escalation.
>>>
>>> What is the right way to administer files with a GUI while logged in as an
>>> ordinary user?
>>
>> You don't. You use Fast User Switching to switch to the administrator
>> account.
>
> If you log into the computer as administrator, everything you do is done
> as administrator.
>
> If you run a GUI program as root, everything that program does is done
> as root. That can be very dangerous, considering you often don't have
> access to the source code and therefore don't know exactly what the
> program does behind the scenes.
>
> You should always strive to limit your interactivity so that you only do
> what is absolutely necessary with escalated privileges, and use normal
> privileges for everything else.
>
> With regard to administrative file operations, why not learn the command
> line and do it that way, which is how administrators have always done it?
>
The use of SUDO can be extremely dangerous to point of making your Hard
drive a very expensive Door stop in the hands of someone that doesn't
know what they do.
I've been using Macs since the day of the SE/30. and I stay the heck
away from Terminal and Single User Mode as Much as possible. I do use
AppleJack in Singler user mode But I follow the directions of the
application.
I've seen both in Mac and on a regular PC (Windows or DOS) the result of
using sudo then typying the wrong command. It wasn't pretty either time.
If I wanted to learn UNIX or Linux I would have installed Ubinto on a
separate drive.