1

I am new to Linux, but I was under the impression that you can use GUI to edit text files I mean that is why GUI exists. I opened xrdp.ini and tried to edit it with Mousepad. When I try to save it I get Failed to save document. Permission denied.. I already used this method (How do I grant sudo privileges to an existing user?) to assign myself sudo permissions but I still can't edit this text file using GUI.

Uplink10
  • 21
  • 1
  • 1
  • 5

1 Answers1

1

If you want to edit configuration files which require root privileges, you have to open application with root privileges. I opened Mousepad with root privileges by typing in terminal:

gksudo mousepad
Melebius
  • 11,121
  • 8
  • 50
  • 77
Uplink10
  • 21
  • 1
  • 1
  • 5
  • gksudo is being removed from Ubuntu because Wayland has no close counterpart. For workarounds, see [pkexec recipe](https://askubuntu.com/a/1067364/232993) and [opening `admin:///etc/...' in apps using gvfs](https://askubuntu.com/a/999913/232993). – Damian Yerrick Apr 15 '20 at 21:55