new smb remote fails
-
I have a clean install from sources in debian of Xen Orchestra. The product is not running as root.
When I create a new smb remote to a Windows Share (with remote username and password) It fails with the following error{ "errno": -13, "code": "EACCES", "syscall": "mkdir", "path": "/run/xo-server" }
What can I do? Thanks
-
Did you follow the documentation for running as a non-root user?
-
@Danp Yes, I have tried all this stuff. Have modified all config.toml files found in the whole filesystem with useSudo = true add added in sudoers, xo_username ALL=(root) NOPASSWD: /bin/mount, /bin/umount, /bin/findmnt. Removed and recreated the remote, and same error
remote.test { "id": "3ee175c8-41b7-410e-9607-463ca468a980" } { "errno": -13, "code": "EACCES", "syscall": "mkdir", "path": "/run/xo-server", "message": "EACCES: permission denied, mkdir '/run/xo-server'", "name": "Error", "stack": "Error: EACCES: permission denied, mkdir '/run/xo-server'" }
Is there any filesystem permission missing?
-
@gonzametal I modified sudoers and could create the folder in the terminar but the error still there (I think because the syscall). I will install as root again to avoid this kind of issues in the future