Opening / saving a file with root permissions?
-
Hi all-
I want to modify a simple config file, but it is kept in a read-only directly (several layers under /opt/ ). I can open the file in Seabass2 (from File Manager). But after i make my edits i can't save, with it saying i don't have permissions. How can i open the file in Seabass2 such that i can then save my edits?
-Fizz
(PS: Don't worry- it's not a system file- it's for a downloaded app, it's not going to break the system... )
-
@Fizz I don't believe there are currently any apps that facilitate editing text files with elevated permissions.
To achieve what you want, you would need to edit the file from the command line.
-
@arubislander
I haven't found one either. So i edited the permissions from the command line and was then able to open in Seabass2 (through terminal).So i guess we can mark this one as solved. Thanks.
-Fizz
-
-
@Fizz That is an interesting way of going about it. But I guess it works.
In general though, changing ownership / permissions of system files is not recommended, so be sure to change them back to what they were when you are done editing them.