Skip to content

virtiofs: file ownerships dynamically changes depending on the caller's UID #1513

Open
@AkihiroSuda

Description

@AkihiroSuda
suda@lima-vz:~$ whoami
suda

suda@lima-vz:~$ ls -ld /Users/suda/
drwxr-xr-x 106 suda suda 3392 Apr 27 05:04 /Users/suda/

suda@lima-vz:~$ sudo ls -ld /Users/suda/
drwxr-xr-x 106 root root 3392 Apr 27 05:04 /Users/suda/

suda@lima-vz:~$ sudo -u foo ls -ld /Users/suda/
drwxr-xr-x 106 foo foo 3392 Apr 27 05:04 /Users/suda/

Lima v0.15.1, macOS 13.3.1 (Intel)

Probably Apple intentionally designed this behavior, but I can't find a documentation for this.

Similar issue in Docker for Mac:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions