XUbuntu: Can't edit text files: Permission denied
18,761
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
Related videos on Youtube
Author by
Uplink10
Updated on September 18, 2022Comments
-
Uplink10 almost 2 years
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 myselfsudo
permissions but I still can't edit this text file using GUI.-
aastefanov over 9 yearsDo you start the text editor with root privileges ( using
sudo -s
or starting it withsudo
at the beginning of the command )? -
Uplink10 over 9 yearsI start it using Whisker Menu or Applications Menu, that is through GUI.
-
aastefanov over 9 yearsAre you sure it's running with root permissions?
-
Uplink10 over 9 yearsI am new to Ubuntu, so I really do not know.
-
aastefanov over 9 yearsWell, it shows that mousepad isn't starting with root privileges when opening it from Whisker.
-
-
Damian Yerrick about 4 yearsgksudo is being removed from Ubuntu because Wayland has no close counterpart. For workarounds, see pkexec recipe and opening `admin:///etc/...' in apps using gvfs.