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
-
F Fizz has marked this topic as solved on
-
@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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register Login