Is there any graphical “sudo” for Mac OS X?

前端 未结 9 758
后悔当初
后悔当初 2020-12-05 07:44

I\'m designing a little software in Java. I don\'t know the term/definition to what I\'m doing, but I\'m prompting commands from Java to the terminal. Something like this:

相关标签:
9条回答
  • 2020-12-05 08:04

    One should use the native OS X authorization services instead of looking at sudo and/or a graphical interface to it.

    Ref:

    • Introduction to Authorization Services Programming Guide (apple)

    • Authorization Services Tasks (apple)

    [I know it's a late answer ...]

    0 讨论(0)
  • 2020-12-05 08:05

    gksudo is the GTK+ version of sudo.

    You can use this clone for it especially for OS X.

    0 讨论(0)
  • 2020-12-05 08:07

    If you are using a terminal, then just use "sudo" instead, which will prompt for the user's password in the terminal itself (as opposed to gksudo which I believe uses a graphical popup). Sudo works on both Linux and OS X.

    0 讨论(0)
提交回复
热议问题