Help save net neutrality! Learn more.
Close

#26 Super User mode

open
None
6
2017-11-21
2008-06-30
Anonymous
No

It would be nice if GP could offer the option of scanning all directories - regardless of ownership - in return for the admin password (as is usual for any program needing to run with "root" privs.)

I was trying to diagnose space utilisation on my shared

Discussion

  • Erwin Bonsma

    Erwin Bonsma - 2008-07-01

    Logged In: YES
    user_id=803935
    Originator: NO

    Thanks for the suggestion. Yes, it would indeed be nice to have the ability to let GrandPerspective scan with root priviliges. The main question would be how to offer this functionality in a user-friendly way, so that it is there when you need it, yet does not "distract" you during normal use of the application. That should be do-able though.

    In the meantime, for those not aware of it, you can as a workaround run the entire application as a root user. From an Administrator account, you can do so by invoking the application from the Terminal as follows:

    sudo GrandPerspective.app/Contents/MacOS/GrandPerspective

    Of course, you first need to "cd" to the folder where the application is located. Furthermore, be extra careful when deleting files from the view window. You will have root priviliges when doing so, so you there's a risk that you accidentally delete system files. So as a precaution, when running as root, you may want to disable file deletion from the Preferences.

    Cheers,
    Erwin

     
  • Nobody/Anonymous

    I second this. As a server administrator, I need to log in the machine as root in order to find out which of our users are using up our HD space, which makes me distinctly uncomfortable — we've had some severe permissions problems in the past that came from leaving servers logged in to root.

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2016-10-28

    The sudo GrandPerspective.app/Contents/MacOS/GrandPerspective trick no longer works on 10.11

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2017-06-23

    I also use(d) sudo. But this seems to no longer work:

    $ sudo /Applications/GrandPerspective.app/Contents/MacOS/GrandPerspective
    Illegal instruction: 4
    

    Using grandperspective version 1.9.1 on macOS 10.12.5

     
  • Erwin Bonsma

    Erwin Bonsma - 2017-06-25

    The comment to run the app via sudo seems to have changed. The following should now work though:

    sudo /bin/launchctl asuser 0 GrandPerspective.app/Contents/MacOS/GrandPerspective

    This is also documented in the help documentation. See http://grandperspectiv.sourceforge.net/HelpDocumentation/HowToIdentifyMiscellaneousUsedSpace.html

     
    • Comment has been marked as spam. 
      Undo

      You can see all pending comments posted by this user  here

      Anonymous - 2017-06-26

      Thank you!

       
  • Anonymous - 2017-11-21
    Post awaiting moderation.


Anonymous

Cancel  Add attachments