Skip to content

Commit

Permalink
Switch sshfs mount options -o allow_root to -o allow_other
Browse files Browse the repository at this point in the history
Signed-off-by: Yangyang Zhao <yangyang.zhao@houzz.com>
  • Loading branch information
yangyang198703 committed Sep 16, 2021
1 parent 72aea5c commit 20fde60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/hostagent/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (a *HostAgent) setupMount(ctx context.Context, m limayaml.Mount) (*mount, e
RemotePath: expanded,
Readonly: !m.Writable,
// NOTE: allow_root requires "user_allow_other" in /etc/fuse.conf
SSHFSAdditionalArgs: []string{"-o", "allow_root"},
SSHFSAdditionalArgs: []string{"-o", "allow_other"},
}
if err := rsf.Prepare(); err != nil {
return nil, fmt.Errorf("failed to prepare reverse sshfs for %q: %w", expanded, err)
Expand Down

0 comments on commit 20fde60

Please sign in to comment.