This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 128575 - 'sudo' (and/or similar tools) integration
Summary: 'sudo' (and/or similar tools) integration
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Gems (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@ruby
: 170740 (view as bug list)
Depends on:
Reported: 2008-02-27 15:28 UTC by Martin Krauskopf
Modified: 2011-01-28 20:11 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Martin Krauskopf 2008-02-27 15:28:47 UTC
Will be triggered when RubyGems repository is read-only.
Comment 1 Martin Krauskopf 2008-04-04 19:04:34 UTC
Support for 'gksu' added: a16d1198055c
Leaving this open until also at least 'kdesu' is supported.
Comment 2 Martin Krauskopf 2008-06-24 11:44:57 UTC
'kdesu' is supported: 1553ac86f191

Leaving open, since I do not know the situation on Mac (I don't have it). Have to peak around.
Comment 3 Quality Engineering 2008-06-27 16:20:23 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #285 build
User: Martin Krauskopf <>
Log: - separating sudo-functionality into separate class
- support for 'kdesu' (another part of issue #128575)
- trailing spaces (were removed on NetBeans editor save)
Comment 4 Martin Krauskopf 2008-09-19 14:20:45 UTC
Hint, I've got from Tomas Hurka wrt. to Mac OS:

  osascript -e 'do shell script "whoami" with administrator privileges'

  If you need to write some files, try 'authopen'. See man authopen 

Just note for myself, when I get back to this. Likely it will popup dialog similar to what gksu or kdesu emits. Will try
when I have access to Mac.
Comment 5 Martin Schovanek 2008-11-21 12:20:37 UTC
Can we provide a way to force sudo execution a 'Use sudo' check box? I have the write permissions into the gems folders
but anyway I got:

ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions into the /usr/bin directory.

Using the Mac OS.
Comment 6 Martin Krauskopf 2008-11-24 13:54:51 UTC
You've probably changed the permission of your GEM_HOME and GEM_PATH directories, but installation of a gem might also
want to write into the /usr/bin directory to install executable like 'rake', 'rails', etc.

'Use Sudo' checkbox sound fine. Could you file a separate issue for it. I guess we will bring it when (and if) the
terminal emulator is available. Thanks.
Comment 7 Martin Krauskopf 2009-08-21 10:34:56 UTC
*** Issue 170740 has been marked as a duplicate of this issue. ***