canonical/multipass

[MacOS] permission denied for some parts of mounted home directory

Open

#1,389 建立於 2020年2月25日

在 GitHub 查看
 (29 留言) (1 反應) (0 負責人)C++ (6,956 star) (634 fork)batch import
documentationenhancementhelp wanted

描述

MacOS Catalina 10.15.3
multipass  1.0.0+mac
multipassd 1.0.0+mac

I've installed multipass as part of an effort to build a snapcraft package on MacOS, but I'm running into issues with the mount functionality. I can access parts of my mounted home directory, but some directories such as Desktop, Documents and Downloads give me a permission denied error. I also get an error if I try to multipass mount any path under those directories. See console output below.

I do have iCloud Drive enabled to sync my files, which could possibly be related somehow? Though I'd think that would only affect Documents and Desktop since they are the synced folders, Downloads is not synced.

$ multipass restart primary

$ multipass shell
Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-88-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Tue Feb 25 13:16:52 MST 2020

  System load:  0.62              Processes:             118
  Usage of /:   24.1% of 4.67GB   Users logged in:       0
  Memory usage: 11%               IP address for enp0s2: 192.168.64.16
  Swap usage:   0%


1 package can be updated.
1 update is a security update.


Last login: Tue Feb 25 13:16:14 2020 from 192.168.64.1
ubuntu@primary:~$ ls -l Home
drwx------ 1 ubuntu ubuntu   96 Jan 31  2017  Applications
drwx------ 1 ubuntu ubuntu  128 Feb 24 19:49  Desktop
drwx------ 1 ubuntu ubuntu 1504 Feb 24 20:49  Documents
drwx------ 1 ubuntu ubuntu  192 Feb 25 12:46  Downloads
drwx------ 1 ubuntu ubuntu 2976 Nov 21 18:03  Library
drwx------ 1 ubuntu ubuntu  224 Oct  9 13:44  Movies
drwx------ 1 ubuntu ubuntu  192 Oct  9 13:44  Music
drwx------ 1 ubuntu ubuntu  256 May 31  2019  Pictures
drwxr-xr-x 1 ubuntu ubuntu  160 Jan 20  2017  Public
drwxr-xr-x 1 ubuntu ubuntu   96 Feb 21 10:39 'VirtualBox VMs'
drwxr-xr-x 1 ubuntu ubuntu  480 Feb  3 18:42  miniconda3
ubuntu@primary:~$ ls Home/Music/
Music  iTunes
ubuntu@primary:~$ ls Home/Library/
...lots of output...
ubuntu@primary:~$ ls Home/Desktop/
ls: reading directory 'Home/Desktop/': Permission denied
ubuntu@primary:~$ ls Home/Documents/
ls: reading directory 'Home/Documents/': Permission denied
ubuntu@primary:~$ ls Home/Downloads/
ls: reading directory 'Home/Downloads/': Permission denied
ubuntu@primary:~$ ls Home/Pictures/
 'Photo Booth Library'  'Photos Library.photoslibrary'
ubuntu@primary:~$ logout

# back on MacOS host
$ multipass mount -vvv $HOME/Documents/Programming/pipeline primary:pipeline
[2020-02-25T13:23:53.591] [debug] [mount cmd] ../src/client/cli/cmd/mount.cpp:234 parse_args(): adding default uid/gid mapping
mount failed: source "/Users/brianp/Documents/Programming/pipeline" is not readable

貢獻者指南