How to Edit a write protected read only file

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I am using Ubuntu 16.04 VM image.I want to edit a file which is owned by root.I tried using sudo chown as well chmod to change the permissions.It was denied.I also tried mount and remount, gksu nautilus, sudo gedit,sudo nano as well as vim editor.Nothing worked.The file read and modify permission can be done only by root owner.The file was installed using snap.Please help me out how to edit the file.










share|improve this question





















  • i tried it now.it cannot save the file.it gives can't open file for writing
    – Samuel John
    Apr 3 at 14:31










  • If you want to edit a file inside a snap you need to rebuild it but the config for "thinger" is not inside a snap. It is /var/snap/thinger-maker-server/common/. (or better sudo service snap.thinger-maker-server.thingerd status should tell you where the config file is)
    – Rinzwind
    Apr 3 at 14:38











  • How to edit the snap and rebuild it?I am new to it, so please if you can guide me, it would be great.I want to edit the index.html file located at snap/thinger-maker-server/19/console/index.html
    – Samuel John
    Apr 3 at 14:41










  • Why? The config for thinger is not inside the snap but is in the directory posted before. By the way: it is open source but not free thinger.io/pricing So you probably can't edit that file.
    – Rinzwind
    Apr 3 at 15:06










  • pricing is for people who want to use thinger.io's server.They have no pricing for people using their own server.So as per you is it not possible to edit the index.html file?
    – Samuel John
    Apr 3 at 15:12














up vote
0
down vote

favorite












I am using Ubuntu 16.04 VM image.I want to edit a file which is owned by root.I tried using sudo chown as well chmod to change the permissions.It was denied.I also tried mount and remount, gksu nautilus, sudo gedit,sudo nano as well as vim editor.Nothing worked.The file read and modify permission can be done only by root owner.The file was installed using snap.Please help me out how to edit the file.










share|improve this question





















  • i tried it now.it cannot save the file.it gives can't open file for writing
    – Samuel John
    Apr 3 at 14:31










  • If you want to edit a file inside a snap you need to rebuild it but the config for "thinger" is not inside a snap. It is /var/snap/thinger-maker-server/common/. (or better sudo service snap.thinger-maker-server.thingerd status should tell you where the config file is)
    – Rinzwind
    Apr 3 at 14:38











  • How to edit the snap and rebuild it?I am new to it, so please if you can guide me, it would be great.I want to edit the index.html file located at snap/thinger-maker-server/19/console/index.html
    – Samuel John
    Apr 3 at 14:41










  • Why? The config for thinger is not inside the snap but is in the directory posted before. By the way: it is open source but not free thinger.io/pricing So you probably can't edit that file.
    – Rinzwind
    Apr 3 at 15:06










  • pricing is for people who want to use thinger.io's server.They have no pricing for people using their own server.So as per you is it not possible to edit the index.html file?
    – Samuel John
    Apr 3 at 15:12












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am using Ubuntu 16.04 VM image.I want to edit a file which is owned by root.I tried using sudo chown as well chmod to change the permissions.It was denied.I also tried mount and remount, gksu nautilus, sudo gedit,sudo nano as well as vim editor.Nothing worked.The file read and modify permission can be done only by root owner.The file was installed using snap.Please help me out how to edit the file.










share|improve this question













I am using Ubuntu 16.04 VM image.I want to edit a file which is owned by root.I tried using sudo chown as well chmod to change the permissions.It was denied.I also tried mount and remount, gksu nautilus, sudo gedit,sudo nano as well as vim editor.Nothing worked.The file read and modify permission can be done only by root owner.The file was installed using snap.Please help me out how to edit the file.







16.04 permissions gedit snap






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 3 at 14:07









Samuel John

1




1











  • i tried it now.it cannot save the file.it gives can't open file for writing
    – Samuel John
    Apr 3 at 14:31










  • If you want to edit a file inside a snap you need to rebuild it but the config for "thinger" is not inside a snap. It is /var/snap/thinger-maker-server/common/. (or better sudo service snap.thinger-maker-server.thingerd status should tell you where the config file is)
    – Rinzwind
    Apr 3 at 14:38











  • How to edit the snap and rebuild it?I am new to it, so please if you can guide me, it would be great.I want to edit the index.html file located at snap/thinger-maker-server/19/console/index.html
    – Samuel John
    Apr 3 at 14:41










  • Why? The config for thinger is not inside the snap but is in the directory posted before. By the way: it is open source but not free thinger.io/pricing So you probably can't edit that file.
    – Rinzwind
    Apr 3 at 15:06










  • pricing is for people who want to use thinger.io's server.They have no pricing for people using their own server.So as per you is it not possible to edit the index.html file?
    – Samuel John
    Apr 3 at 15:12
















  • i tried it now.it cannot save the file.it gives can't open file for writing
    – Samuel John
    Apr 3 at 14:31










  • If you want to edit a file inside a snap you need to rebuild it but the config for "thinger" is not inside a snap. It is /var/snap/thinger-maker-server/common/. (or better sudo service snap.thinger-maker-server.thingerd status should tell you where the config file is)
    – Rinzwind
    Apr 3 at 14:38











  • How to edit the snap and rebuild it?I am new to it, so please if you can guide me, it would be great.I want to edit the index.html file located at snap/thinger-maker-server/19/console/index.html
    – Samuel John
    Apr 3 at 14:41










  • Why? The config for thinger is not inside the snap but is in the directory posted before. By the way: it is open source but not free thinger.io/pricing So you probably can't edit that file.
    – Rinzwind
    Apr 3 at 15:06










  • pricing is for people who want to use thinger.io's server.They have no pricing for people using their own server.So as per you is it not possible to edit the index.html file?
    – Samuel John
    Apr 3 at 15:12















i tried it now.it cannot save the file.it gives can't open file for writing
– Samuel John
Apr 3 at 14:31




i tried it now.it cannot save the file.it gives can't open file for writing
– Samuel John
Apr 3 at 14:31












If you want to edit a file inside a snap you need to rebuild it but the config for "thinger" is not inside a snap. It is /var/snap/thinger-maker-server/common/. (or better sudo service snap.thinger-maker-server.thingerd status should tell you where the config file is)
– Rinzwind
Apr 3 at 14:38





If you want to edit a file inside a snap you need to rebuild it but the config for "thinger" is not inside a snap. It is /var/snap/thinger-maker-server/common/. (or better sudo service snap.thinger-maker-server.thingerd status should tell you where the config file is)
– Rinzwind
Apr 3 at 14:38













How to edit the snap and rebuild it?I am new to it, so please if you can guide me, it would be great.I want to edit the index.html file located at snap/thinger-maker-server/19/console/index.html
– Samuel John
Apr 3 at 14:41




How to edit the snap and rebuild it?I am new to it, so please if you can guide me, it would be great.I want to edit the index.html file located at snap/thinger-maker-server/19/console/index.html
– Samuel John
Apr 3 at 14:41












Why? The config for thinger is not inside the snap but is in the directory posted before. By the way: it is open source but not free thinger.io/pricing So you probably can't edit that file.
– Rinzwind
Apr 3 at 15:06




Why? The config for thinger is not inside the snap but is in the directory posted before. By the way: it is open source but not free thinger.io/pricing So you probably can't edit that file.
– Rinzwind
Apr 3 at 15:06












pricing is for people who want to use thinger.io's server.They have no pricing for people using their own server.So as per you is it not possible to edit the index.html file?
– Samuel John
Apr 3 at 15:12




pricing is for people who want to use thinger.io's server.They have no pricing for people using their own server.So as per you is it not possible to edit the index.html file?
– Samuel John
Apr 3 at 15:12










1 Answer
1






active

oldest

votes

















up vote
1
down vote













Installed by snap i.e. a file contained in /snap/<snapname>/<revision>/ somewhere? Snaps are squashfs images, which by definition are read-only. No amount of permissions will change that, I'm afraid.






share|improve this answer




















  • I am trying to edit the index.html file which is installed by the following server deployment. docs.thinger.io/deployment File is located at snap/thinger-maker-server/19/console/index.html
    – Samuel John
    Apr 3 at 14:25











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1021633%2fhow-to-edit-a-write-protected-read-only-file%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













Installed by snap i.e. a file contained in /snap/<snapname>/<revision>/ somewhere? Snaps are squashfs images, which by definition are read-only. No amount of permissions will change that, I'm afraid.






share|improve this answer




















  • I am trying to edit the index.html file which is installed by the following server deployment. docs.thinger.io/deployment File is located at snap/thinger-maker-server/19/console/index.html
    – Samuel John
    Apr 3 at 14:25















up vote
1
down vote













Installed by snap i.e. a file contained in /snap/<snapname>/<revision>/ somewhere? Snaps are squashfs images, which by definition are read-only. No amount of permissions will change that, I'm afraid.






share|improve this answer




















  • I am trying to edit the index.html file which is installed by the following server deployment. docs.thinger.io/deployment File is located at snap/thinger-maker-server/19/console/index.html
    – Samuel John
    Apr 3 at 14:25













up vote
1
down vote










up vote
1
down vote









Installed by snap i.e. a file contained in /snap/<snapname>/<revision>/ somewhere? Snaps are squashfs images, which by definition are read-only. No amount of permissions will change that, I'm afraid.






share|improve this answer












Installed by snap i.e. a file contained in /snap/<snapname>/<revision>/ somewhere? Snaps are squashfs images, which by definition are read-only. No amount of permissions will change that, I'm afraid.







share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 3 at 14:19









Kyle

3,9081219




3,9081219











  • I am trying to edit the index.html file which is installed by the following server deployment. docs.thinger.io/deployment File is located at snap/thinger-maker-server/19/console/index.html
    – Samuel John
    Apr 3 at 14:25

















  • I am trying to edit the index.html file which is installed by the following server deployment. docs.thinger.io/deployment File is located at snap/thinger-maker-server/19/console/index.html
    – Samuel John
    Apr 3 at 14:25
















I am trying to edit the index.html file which is installed by the following server deployment. docs.thinger.io/deployment File is located at snap/thinger-maker-server/19/console/index.html
– Samuel John
Apr 3 at 14:25





I am trying to edit the index.html file which is installed by the following server deployment. docs.thinger.io/deployment File is located at snap/thinger-maker-server/19/console/index.html
– Samuel John
Apr 3 at 14:25


















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1021633%2fhow-to-edit-a-write-protected-read-only-file%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Trouble downloading packages list due to a “Hash sum mismatch” error

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Cutting all the characters after the last /