Skip to content

Commit a1eba4f

Browse files
Switch sshfs mount options -o allow_root to -o allow_other
Signed-off-by: Yangyang Zhao <[email protected]>
1 parent 72aea5c commit a1eba4f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/hostagent/mount.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ func (a *HostAgent) setupMount(ctx context.Context, m limayaml.Mount) (*mount, e
4747
Port: a.y.SSH.LocalPort,
4848
RemotePath: expanded,
4949
Readonly: !m.Writable,
50-
// NOTE: allow_root requires "user_allow_other" in /etc/fuse.conf
51-
SSHFSAdditionalArgs: []string{"-o", "allow_root"},
50+
// NOTE: allow_other requires "user_allow_other" in /etc/fuse.conf
51+
SSHFSAdditionalArgs: []string{"-o", "allow_other"},
5252
}
5353
if err := rsf.Prepare(); err != nil {
5454
return nil, fmt.Errorf("failed to prepare reverse sshfs for %q: %w", expanded, err)

pkg/limayaml/default.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ memory: "4GiB"
3535
# Default: "100GiB"
3636
disk: "100GiB"
3737

38-
# Expose host directories to the guest
38+
# Expose host directories to the guest, the mount point might be accessible from all UIDs in the guest
3939
# Default: none
4040
mounts:
4141
- location: "~"

0 commit comments

Comments
 (0)