CafePorts
Chris Janton
face at CentosPrime.COM
Wed Dec 16 04:04:41 PST 2009
On 2009-12-16 , at 04:32 , Panayotis Katsaloulis wrote:
>
>>
>> administrator privileges required to use
>>
>> 1. Login as non-admin user
>> 2. Attempt to install anything
>>
>
> There is a limitation of Leopard's sudo, which prevents from using sudo with different account.
> I have the feeling though that, what you said is doable, but not from the command line (and this was another project idea from me).
>
> Try to do something like
> ssh admin at localhost LOCATION_OF_CAFEPORTS/CafePorts.app/Contents/MacOS/JavaApplicationStub
>
> this should do the trick.
Nope -
Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
[LaunchRunner Error] CafePorts.main(String[]) threw an exception:
java.lang.InternalError: Can't connect to window server - not enough permissions.
>
> To allow zero-length passwords in sudo, you need to download version 0.0.9.1
> http://cafeports.googlecode.com/files/CafePorts-0.0.9.1.zip
> which I just prepared!
Don't quite know how you are invoking the shell for port commands, but
ssh localhost command
or
ssh user at localhost command
should work. If the user doesn't have keys setup it requires 2 passwords - user password, sudo password.
That could shrink to no passwords required.
In my case I need to provide the "optional" username and password for the account that executes port commands,
as well as the password required for the sudo.
8)
----------------------------------
Chris Janton - face at CentosPrime dot COM
Netminder for Opus1.COM
More information about the macports-users
mailing list