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.
Asked
Active
Viewed 2.0k times
1
1 Answers
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
-
gksudo is being removed from Ubuntu because Wayland has no close counterpart. For workarounds, see pkexec recipe and [opening `admin:///etc/...' in apps using gvfs](https://askubuntu.com/a/999913/232993). – Damian Yerrick Apr 15 '20 at 21:55
sudo -s
or starting it withsudo
at the beginning of the command )? – aastefanov Feb 11 '15 at 20:56