Skip to content

Unable to change owner/group of files using sshfs #17

@lcheylus

Description

@lcheylus

I created a GH workflow with vmactions/openbsd-vm v1.0.4 to run a job (build of a Rust project on OpenBSD 7.4/stable).

I'm using sshfs to sync files between OpenBSD guest and Ubuntu host (GH runner): sync: sshfs

In a shell script used by my job on OpenBSD guest, I need to change owner/group of files using chown command.

Using the chown command, the run task fails:

Run 'run' in VM
/usr/bin/bash /home/runner/work/_actions/vmactions/openbsd-vm/v1.0.4/run.sh execSSHSH
  Config file: openbsd-7.4.conf
  chown: /home/runner/work/cargo-nextest-openbsd/cargo-nextest-openbsd/build.sh: Permission denied
  (...)
  chown: /home/runner/work/cargo-nextest-openbsd/: Permission denied
  exec shell: bash run.sh showDebugInfo
  /usr/bin/bash
  Config file: openbsd-7.4.conf
  ==================Debug Info====================
  /home/runner/work/_actions/vmactions/openbsd-vm/v1.0.4
 (...)
 Error: The process '/usr/bin/bash' failed with exit code 1

See my workflow logs https://github.com/lcheylus/cargo-nextest-openbsd/actions/runs/7428338886/job/20215523263 for details.

In run.sh script, sshfs runs with some options for files persmissions:

sshfs -o reconnect,ServerAliveCountMax=2,allow_other,default_permissions host:work $HOME/work

Is it possible to change these options to authorize to change owner/group of files from the guest ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions