snap creates (or tries to create) a directory in /root/snap/

Bug #1884929 reported by Laurent Bonnaud
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi,

here is the problem:

# snap refresh
error: cannot perform the following tasks:
- Run configure hook of "zoom-client" snap if present (run hook "configure":
-----
cmd_run.go:918: WARNING: cannot create user data directory: cannot create "/root/snap/zoom-client/89": mkdir /root/snap/zoom-client: required key not available
cannot create user data directory: /root/snap/zoom-client/89: Required key not available
-----)

snap tries to create a directory in /root/snap/ and is prevented from doing so because of bug #1877764.

But the problem is that snap tries to create this directory in the first place. Why on earth is this directory needed? Why would anybody want to run zoom in the root account?

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: snapd 2.45.1+20.04
Uname: Linux 5.7.5-050705-lowlatency x86_64
ApportVersion: 2.20.11-0ubuntu27.3
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: KDE
Date: Wed Jun 24 12:30:45 2020
SourcePackage: snapd
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.sudoers.d.99-snapd.conf: [inaccessible: [Errno 13] Permission denied: '/etc/sudoers.d/99-snapd.conf']

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :
Changed in snapd (Ubuntu):
status: New → Confirmed
Revision history for this message
Maciej Borzecki (maciek-borzecki) wrote :

Running a configure hook triggers this. Makes me wonder, whether we should even try to do the desktopy stuff in the hooks.

tags: added: groovy hirsute
tags: added: jammy kinetic lunar mantic
removed: groovy hirsute package-from-proposed
Yosha872 (yosha)
summary: - snap creates (or tries to create) a direcotry in /root/snap/
+ snap creates (or tries to create) a directory in /root/snap/
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.