26

Tried to start Calculator in Ubuntu, but received the following message:

/var/lib/snapd has 'other' write 40777

Not sure what that means. I just want to start Calculator. Weird. Any ideas?

James
  • 529
  • 1
  • 7
  • 16

3 Answers3

57

Happened to me also. I changed the permissions of /var/lib/snapd from 777 to 755, so just do:

sudo chmod -R 0755 /var/lib/snapd

Sven
  • 686
  • 6
  • 11
  • 1
    is there any other solution? Because if i give /var/lib/snapd 755 permission my docker won't start as docker need 777 permission. – chirag dodia Dec 07 '18 at 06:31
  • This actually solves the problem of all the other snap apps that were not starting: slack, postman, spotify. Thanks lots man. – kawerewagaba Aug 03 '19 at 18:16
26

In fact, to resolve the problem for all the applications related snap you must do:

sudo chmod 755 /
poramo
  • 546
  • 5
  • 7
  • 7
    Don't do that. This command can destroy your OS for changing permissions of protected files. @Sven answer should be flagged as the correct one. – JMoura Sep 18 '20 at 22:31
  • 2
    Agree w/ @JMoura - I did, in fact, hose my Chrome OS Linux container by running `sudo chmod 755 /` #LessonLearned lol. any other thoughts, then? I'm specifically seeing `/ has 'other' write 40777`, even after running the recommended answer. – Joshua Pelton-Stroud Feb 04 '21 at 21:32
  • 1
    @JoshuaPelton-Stroud. It shouldn't be possible to hose your system by just running chmod 755 /. It is just the root directory. If you do -R then it might be a problem, so just don't recurse. – Yasha Jun 10 '21 at 17:25
  • I read @JMoura comment but went ahead with it anyways. Worked for me. Like Yasha has mentioned in the comment, this is not recursive. – ambassallo Sep 21 '21 at 06:24
4

I was face "/has 'other' write 40777" problem when try to open vscode from terminal. That was fixed by "sudo chmod 755 /" command.

devsazedur
  • 41
  • 2