You are not logged in.
Two users
jm
mag_ja
The Structure looks like this:
~/home/jm/Vbox/vmmachine.vbox
I would like to give mag_ja an acces to Vbox directory.
I changed ownership for Vbox from jm:jm to jm:vboxusers
jm and mag_ja are in vboxusers group
I would like to run VirtualBox on mag_ja accout and add there vmmachine.vbox
But jm home has an ownership set to jm:jm
Is it possible to make this work withot changing full path "~/home/jm/Vbox/vmmachine.vbox" to jm:vboxusers
?
Last edited by 860lacov (2021-02-08 23:02:06)
Offline
You can be *in* that directory, but you can't traverse the directory you don't have sufficient permissions for.
You could bind-mount ~/home/jm/Vbox (sidebar: is that the *actual* path, ie. do you have a directory /home/jm/home/jm ? - "~" is shorthand for $HOME which is typically /home/<your user name> …)
sudo mount -o bind /home/jm/Vbox /home/mag_ja/VBox # this assumes /home/mag_ja/VBox exists and sane $HOME directoriesnb. that mag_ja will also require proper access to all files in there, eg. vmmachine.vbox
Online
You can be *in* that directory, but you can't traverse the directory you don't have sufficient permissions for.
You could bind-mount ~/home/jm/Vbox (sidebar: is that the *actual* path, ie. do you have a directory /home/jm/home/jm ? - "~" is shorthand for $HOME which is typically /home/<your user name> …)
sudo mount -o bind /home/jm/Vbox /home/mag_ja/VBox # this assumes /home/mag_ja/VBox exists and sane $HOME directoriesnb. that mag_ja will also require proper access to all files in there, eg. vmmachine.vbox
The directory is VirtualBox VMs and actuall path is:
~/VirtualBox VMs
As you said mag_ja
will also require proper access to all files in there, eg. vmmachine.vbox
mag_ja is in vboxusers gruop
I did
sudo mount -o bind /home/jm/VirtualBox\ VMs/ /home/mag_ja/VirtualBox\ VMs/and
chown jm:vboxusers -R /home/jm/VirtualBox\ VMs/I can access Virtual Box machines on both accounts but mag_ja can't open machine in virtual box because of privileges problem. Any advice about this?
p.s.
By mistake, I reported your answer. Sorry for that.
Offline
p.s.
By mistake, I reported your answer. Sorry for that.
No worries ![]()
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
I'd guess the relevant files are not group writable. Post the actual error messages as well as the current permissions of the file(s) in question.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I'd guess the relevant files are not group writable. Post the actual error messages as well as the current permissions of the file(s) in question.
Of course, you are right.
vboxusers group didn't have write permission.
I managed after change to 660 I was able to add virtual machine to virtual box on mag_ja accout but I wasnt able to run it.
After reboot machine diapered from mag_ja VirtualBox VMs directory.
Is
mount -o bindonly temporary?
Offline
Every mount is "temporary" (transient) - you'll have to add an entry to /etc/fstab (the order is important! if there's a mount for /home, put the bind mount below that line)
https://wiki.archlinux.org/index.php/Fstab
Online