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.

  • i tried it now.it cannot save the file.it gives can't open file for writing Apr 3, 2018 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, 2018 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 Apr 3, 2018 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, 2018 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? Apr 3, 2018 at 15:12

1 Answer 1


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.

  • 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 Apr 3, 2018 at 14:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .