0

Every time I try to edit a file in /etc I get "access denied".

I tried using different text editors and nautilus and I couldn't save or change any files there.

I don't understand. Am I not supposed to have this access?

What do I do now?

Zanna
  • 70,465

2 Answers2

2

Make sure you have root privilege.

Try:

sudo -H gedit /etc/file.txt
Zanna
  • 70,465
Saad
  • 613
  • 1
  • 6
  • 10
0

You can have root access with the command

gksu nautilus

This gives you a GUI access of the files in root.But be careful with what you change in there.

ganezdragon
  • 274
  • 1
  • 3
  • 13
  • gksu provided me with a warning that.. (gksu:4370): Gtk-WARNING **: cannot open display – user274143 Apr 27 '14 at 15:21
  • You are probably running this command as root, and root probably doesn't have an active desktop session. – sknt May 23 '17 at 08:07