Open Oracle VM Virtual Box Manager
Right Click On Linux VM, Then click on Settings
Select “Shared Folders” tab and click on “Adds new shared folder”
In “Add Share” window, specify folder path and folder name.
if you want to make folder read only then check read only
if you want to make folder auto mount then check auto-mount
specify mount point and check make permanent if this has to be done permanently.
Run OS, After boot up run terminal. Your shared folder will be visible as per mount point. Its group would be “vboxsf”
[xxxxxx@localhost ~]$ ls -ltr /
total 32
drwxr-xr-x. 2 root root 6 Apr 11 2018 srv
drwxr-xr-x. 2 root root 6 Apr 11 2018 mnt
drwxr-xr-x. 2 root root 6 Apr 11 2018 media
drwxrwx---. 1 root vboxsf 4096 Mar 24 10:46 shared
lrwxrwxrwx. 1 root root 7 Mar 24 21:49 bin -> usr/bin
lrwxrwxrwx. 1 root root 8 Mar 24 21:49 sbin -> usr/sbin
lrwxrwxrwx. 1 root root 9 Mar 24 21:49 lib64 -> usr/lib64
lrwxrwxrwx. 1 root root 7 Mar 24 21:49 lib -> usr/lib
drwxr-xr-x. 13 root root 155 Mar 24 21:49 usr
drwxr-xr-x. 3 root root 20 Mar 24 21:59 home
drwxr-xr-x. 24 root root 4096 Mar 24 22:06 var
drwxr-xr-x. 4 root root 49 Mar 24 22:16 opt
dr-xr-xr-x. 6 root root 4096 Mar 24 22:16 boot
dr-xr-x---. 7 root root 232 Mar 24 22:31 root
dr-xr-xr-x. 13 root root 0 Mar 24 22:31 sys
dr-xr-xr-x. 222 root root 0 Mar 24 22:32 proc
drwxr-xr-x. 20 root root 3200 Mar 24 22:32 dev
drwxr-xr-x. 178 root root 12288 Mar 24 22:32 etc
drwxr-xr-x. 55 root root 1580 Mar 24 22:33 run
drwxrwxrwt. 24 root root 4096 Mar 24 22:42 tmp
xxxxxxx@localhost ~]$
now your user has to be added to this group using following command
sudo usermod -G vboxsf -a username
reboot to make this change into effect. Post reboot, user would be able to access this shared folder.