2

I have set up sssd and joined my 18.04 LTS workstation to the company domain. Most things work OK except for a couple of snap applications. When trying to run them I get errors creating files in ~/snap.

:~$ skype cannot create user data directory: /home/[domain]/[user]/snap/skype/48: Permission denied

Skype works if I run it as root, however I would prefer not to do that.

The mail app hiri however refuses to let me write in it even if I club it with chmod -R 777

~$ hiri cannot create user data directory: /home/[domain]/[user]/snap/hiri/55: Permission denied

What am I missing?

  • Are [domain] and [user] actually there, ,[] and all, or is this an obfuscation? – waltinator Aug 10 '18 at 5:31
  • My pathlld script will show you more information. github.com/waltinator/pathlld.git - Bash script to answer "Why can't I read/write that file?" – waltinator Aug 10 '18 at 5:33
  • Hi waltinator, thanks for the respone. [doman] and [user] are indeed obfuscations. Perhaps I'm being overly cautious there? Output: pastebin.com/WZYstUb6 – Paul O'Rorke Aug 10 '18 at 21:28
  • I am seeing this permissions failure with more and more snap apps. Inkscape now. Does anyone know how to fix this? Am I the only one with this issue? – Paul O'Rorke Aug 30 '18 at 21:07
2

The issue is due to the user home folder being part of the domain.

$ sudo dpkg-reconfigure apparmor

Then, specify "/home/[DOMAIN]/" as an additional user home directory. This should resolve the permission issue for all the applications

| improve this answer | |
  • Shravya - you are officially my new hero! I am now happily running snap apps in my domain account. Thank you. – Paul O'Rorke May 1 '19 at 21:58
  • I really can't take the credit for it. One of my teammates told me this solution :) – Shravya Boggarapu May 7 '19 at 12:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.