debvm-create fails to remove temporary directory when using unshare

Bug #2064924 reported by Benjamin Drung
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
debvm (Ubuntu)
New
Undecided
Unassigned

Bug Description

Running "debvm-create -r noble -z 2G" as normal user will fail to delete the temporary directory due to missing permissions:

```
$ debvm-create -r noble -z 2G
[...]
rm: cannot remove '/tmp/tmp.f7EohykzQc/etc/tmpfiles.d': Permission denied
rm: cannot remove '/tmp/tmp.f7EohykzQc/etc/networks': Permission denied
rm: cannot remove '/tmp/tmp.f7EohykzQc/etc/vconsole.conf': Permission denied
rm: cannot remove '/tmp/tmp.f7EohykzQc/lib64': Permission denied
rm: cannot remove '/tmp/tmp.f7EohykzQc/srv': Permission denied
```

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.