Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

owner and group not working #127

Closed
rednaks opened this issue Aug 19, 2021 · 7 comments
Closed

owner and group not working #127

rednaks opened this issue Aug 19, 2021 · 7 comments

Comments

@rednaks
Copy link

rednaks commented Aug 19, 2021

it seems that sshfs is not mounting the folders with the given owner and group. is it supported by the plugin ? if not maybe it's worth logging a warning or an error to say that they're not supported.

Thanks.

@tuupola
Copy link

tuupola commented Nov 1, 2021

Also currently with libvirt provider files get mounted as vagrant:vagrant but with VirtualBox provider files get mounted as 53:games. Tested with centos/7 box. The vagrant:vagrant ownership works for me, but currently with VirtualBox this is impossible because owner and group settings are not honored.

@rednaks
Copy link
Author

rednaks commented Nov 8, 2021

@tuupola I submitted a patch but the project seems dead : #128

@tuupola
Copy link

tuupola commented Nov 8, 2021

There has been some activity this year so lets wait for a while. It is pity many Vagrant related projects often get forgotten because it is not as sexy as Docker.

@dustymabe
Copy link
Owner

Hey @rednaks @tuupola - regarding setting the -o uid and -o gid option for the SSHFS mount you should be able to do this via the generic sshfs_opts_append option.

I'm trying to understand the problem a bit more here though. @rednaks, you mention

not mounting the folders with the given owner and group

Where are you providing owner and group? Can you give more details?

@tuupola, I'd like to understand the issue with VirtualBox more. Unfortunately I don't currently have a VBox setup. What Host OS are you on? What does your Vagrantfile look like? What does the mount look like in the guest (ls -l on the mountpoint).

@rednaks
Copy link
Author

rednaks commented May 30, 2022

Hi @dustymabe , the owner and group options are provided to sync_folders described here: https://www.vagrantup.com/docs/synced-folders/basic_usage#options

config.vm.synced_folder "/home/xxxx/my_local_folder", "/home/ubuntu/my_remote_folder", owner: "ubuntu", group: "ubuntu", type: "sshfs"

@dustymabe
Copy link
Owner

Thanks @rednaks - I was unaware of that. I'll dig in further.

Thank you for the pointer.

@tuupola
Copy link

tuupola commented Aug 25, 2022

I had missed all this discussion. In any case thanks for the new release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants