How to open gedit as root?

In Ubuntu, beginners often face this problem of saving or editing document having permission of read and write only to root.

This problem can be solved in two ways :

1.  Open Terminal ( Ctrl + Alt + t) , then open the file using "sudo" , for example if I want to open file "xyz", I can open it using sudo gedit xyz .

2. Or you can change permission of this file using chmod command.After changing permission for all users to 777 . You can able to edit that file without any problem.

I hope it helps!

No comments:

Post a Comment