Comments on: cocoasudo: A graphical Cocoa based alternative to sudo http://www.performantdesign.com/2009/10/26/cocoasudo-a-graphical-cocoa-based-alternative-to-sudo/ Mon, 08 Aug 2011 19:00:37 -0400 http://wordpress.org/?v=2.8.4 hourly 1 By: Jon Hermansen http://www.performantdesign.com/2009/10/26/cocoasudo-a-graphical-cocoa-based-alternative-to-sudo/comment-page-1/#comment-6508 Jon Hermansen Fri, 03 Dec 2010 08:36:41 +0000 http://www.performantdesign.com/?p=164#comment-6508 I came here to tell you that this was an awesome tool, but I had a feature request (until I figured it out on my own). I was hoping this tool could provide a "-u" option much like sudo does, but after looking at the Apple docs, it looks like they only allow privilege escalation via this API. Anyways, you can have cocoasudo call 'sudo -u user command' and it will DROP root privileges and run as a different user than your current login, which is exactly what I needed. Thought I might share, thanks for the awesome software! I came here to tell you that this was an awesome tool, but I had a feature request (until I figured it out on my own). I was hoping this tool could provide a “-u” option much like sudo does, but after looking at the Apple docs, it looks like they only allow privilege escalation via this API.

Anyways, you can have cocoasudo call ’sudo -u user command’ and it will DROP root privileges and run as a different user than your current login, which is exactly what I needed.

Thought I might share, thanks for the awesome software!

]]>
By: mystro http://www.performantdesign.com/2009/10/26/cocoasudo-a-graphical-cocoa-based-alternative-to-sudo/comment-page-1/#comment-4213 mystro Mon, 28 Jun 2010 21:55:23 +0000 http://www.performantdesign.com/?p=164#comment-4213 I love your tool! It's fantastic and is great exactly formy situation (Java app ported to mac). I'm wondering if you could also write a quick tool that lets you add items to the com.apple.loginitems.plist file? I think it's accessible using Apple's LSSharedFileListItemRef, but I'm not an OSX developer :S I love your tool! It’s fantastic and is great exactly formy situation (Java app ported to mac). I’m wondering if you could also write a quick tool that lets you add items to the com.apple.loginitems.plist file? I think it’s accessible using Apple’s LSSharedFileListItemRef, but I’m not an OSX developer :S

]]>
By: Mital Vora http://www.performantdesign.com/2009/10/26/cocoasudo-a-graphical-cocoa-based-alternative-to-sudo/comment-page-1/#comment-3946 Mital Vora Mon, 31 May 2010 09:30:38 +0000 http://www.performantdesign.com/?p=164#comment-3946 Amazing code that works brilliantly on osx 1.6. good work buddy !! Amazing code that works brilliantly on osx 1.6. good work buddy !!

]]>
By: HaDAk http://www.performantdesign.com/2009/10/26/cocoasudo-a-graphical-cocoa-based-alternative-to-sudo/comment-page-1/#comment-3790 HaDAk Sat, 08 May 2010 20:41:16 +0000 http://www.performantdesign.com/?p=164#comment-3790 For some reason, it won't let me specify my own icon. It overlays the standard lock icon with an exec icon. OS X 10.6.3 For some reason, it won’t let me specify my own icon. It overlays the standard lock icon with an exec icon. OS X 10.6.3

]]>
By: Toby S http://www.performantdesign.com/2009/10/26/cocoasudo-a-graphical-cocoa-based-alternative-to-sudo/comment-page-1/#comment-2076 Toby S Fri, 30 Oct 2009 22:02:37 +0000 http://www.performantdesign.com/?p=164#comment-2076 That's great. Works like a charm! That’s great. Works like a charm!

]]>
By: aaron http://www.performantdesign.com/2009/10/26/cocoasudo-a-graphical-cocoa-based-alternative-to-sudo/comment-page-1/#comment-2070 aaron Fri, 30 Oct 2009 05:07:34 +0000 http://www.performantdesign.com/?p=164#comment-2070 A few updates were just pushed to git: - stdout works now - path is now searched for executable - OS X 10.4 support - improved error handling & messages A few updates were just pushed to git:

- stdout works now
- path is now searched for executable
- OS X 10.4 support
- improved error handling & messages

]]>
By: Toby S http://www.performantdesign.com/2009/10/26/cocoasudo-a-graphical-cocoa-based-alternative-to-sudo/comment-page-1/#comment-2068 Toby S Thu, 29 Oct 2009 16:21:24 +0000 http://www.performantdesign.com/?p=164#comment-2068 Another problem. My script is unable to catch the output of a command that is run with cocoasudo. Seems that cocoasudo is catching all the stdout from the run command and it is never getting to stdout. Another problem. My script is unable to catch the output of a command that is run with cocoasudo. Seems that cocoasudo is catching all the stdout from the run command and it is never getting to stdout.

]]>
By: Toby S http://www.performantdesign.com/2009/10/26/cocoasudo-a-graphical-cocoa-based-alternative-to-sudo/comment-page-1/#comment-2067 Toby S Thu, 29 Oct 2009 15:27:50 +0000 http://www.performantdesign.com/?p=164#comment-2067 Yup, that did the trick. Both commands work. Thanks again for this nice little app. Yup, that did the trick. Both commands work. Thanks again for this nice little app.

]]>
By: aaron http://www.performantdesign.com/2009/10/26/cocoasudo-a-graphical-cocoa-based-alternative-to-sudo/comment-page-1/#comment-2060 aaron Tue, 27 Oct 2009 19:39:05 +0000 http://www.performantdesign.com/?p=164#comment-2060 Glad this can hopefully meet a need. Could you give these alternates a try? It could be that the path of what you are running is required. If this works, I'll work on updating the utility to search the path as well. Alternate #1: ./cocoasudo `which installer` -pkg /Users/distrotubux/Desktop/Setup.mpkg -target / -verbose Alternate #2: ./cocoasudo /usr/sbin/installer -pkg /Users/distrotubux/Desktop/Setup.mpkg -target / -verbose Glad this can hopefully meet a need.

Could you give these alternates a try? It could be that the path of what you are running is required. If this works, I’ll work on updating the utility to search the path as well.

Alternate #1:

./cocoasudo `which installer` -pkg /Users/distrotubux/Desktop/Setup.mpkg -target / -verbose

Alternate #2:

./cocoasudo /usr/sbin/installer -pkg /Users/distrotubux/Desktop/Setup.mpkg -target / -verbose

]]>
By: Toby S http://www.performantdesign.com/2009/10/26/cocoasudo-a-graphical-cocoa-based-alternative-to-sudo/comment-page-1/#comment-2059 Toby S Tue, 27 Oct 2009 19:10:46 +0000 http://www.performantdesign.com/?p=164#comment-2059 Dude, I've been looking for a program just like this for the past week. I searched today and bam, here it is. Just like gksudo on Linux. Just one problem. I am having issues getting the command and arguments to run. Not sure if this is because it is not recieving the correct authentication or if it is just a syntax error on my part. ex. ./cocoasudo installer -pkg /Users/distrotubux/Desktop/Setup.mpkg -target / -verbose I get the prompt for pw but the installer does not run. I've tested this command using sudo and it works just fine. Ideas? Dude, I’ve been looking for a program just like this for the past week. I searched today and bam, here it is. Just like gksudo on Linux. Just one problem. I am having issues getting the command and arguments to run. Not sure if this is because it is not recieving the correct authentication or if it is just a syntax error on my part.

ex.

./cocoasudo installer -pkg /Users/distrotubux/Desktop/Setup.mpkg -target / -verbose

I get the prompt for pw but the installer does not run. I’ve tested this command using sudo and it works just fine. Ideas?

]]>