0

I am on a Windows PC and tried connecting to AWS running Ubuntu. I tried opening a file using gedit, was unsuccessful. Someone suggested MobaExtreme. Then I had to install gksudo in the server and tried gedit in the MobaExtreme shell and this solved the problem.

What I am really wondering is:

  1. Why couldn't I open gedit in the first place(This involved discussion about using ssh -X, and something regarding display not set)
  2. What does gksudo establish? (Can you elaborate on 'Owner is not the root'? I have no understanding of this concept).

Edit: Suggested merge answer only part of the question. I can accept the merge but I feel I'll not know other parts which I am curious about!

1 Answers1

1

For point#2:

  1. gksudo is used to pop up the password prompt in a GUI window, no matter whether the application is GUI or CLI.
  2. sudo, asks for the password at the terminal instead of in a GUI window, regardless of the type of application being run.
  3. In scripts that don't run in an interactive terminal, gksu is the easiest way to get a user-entered password straight to sudo.
Nisheet
  • 973
  • Thanks for your answer @Nisheet, but you have elaborated more about sudo vs gksudo. Can you tell me why I have to use gksudo and not sudo gedit file_name – Anirudh Ramesh Jan 17 '17 at 16:15