• Read and write in the shared folder

    From Gilberto F da Silva@2:250/1 to All on Sun Jun 20 20:12:45 2021
    I installed Mageia 8 on a virtual machine. I can read the shared folder
    files but I can not write as a normal user. Already attempting to change
    the owner of the files using the chown -R -v mageia8 /mnt/Matrix the
    command showed the normal message exchange but I still unable to write
    or erase the files as a normal user.

    --- MBSE BBS v1.0.7.22 (GNU/Linux-x86_64)
    * Origin: Aioe.org NNTP Server (2:250/1@fidonet)
  • From William Unruh@2:250/1 to All on Sun Jun 20 21:26:15 2021
    On 2021-06-20, Gilberto F da Silva <gfs1989@gmx.net> wrote:
    I installed Mageia 8 on a virtual machine. I can read the shared folder files but I can not write as a normal user. Already attempting to change
    the owner of the files using the chown -R -v mageia8 /mnt/Matrix the
    command showed the normal message exchange but I still unable to write
    or erase the files as a normal user.

    chmod a+w /mnt /mnt/Matrix
    as root (The w on mnt so that the file can be removed, and the w on
    Matrix so that the file can be written to.
    )


    --- MBSE BBS v1.0.7.22 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From David W. Hodgins@2:250/1 to All on Sun Jun 20 22:16:17 2021
    On Sun, 20 Jun 2021 15:12:45 -0400, Gilberto F da Silva <gfs1989@gmx.net> wrote:

    I installed Mageia 8 on a virtual machine. I can read the shared folder
    files but I can not write as a normal user. Already attempting to change
    the owner of the files using the chown -R -v mageia8 /mnt/Matrix the
    command showed the normal message exchange but I still unable to write
    or erase the files as a normal user.

    Is the user running vb a member of the vboxusers group, on the host? Don't forget
    to logout/in after any group changes, for the changes to take effect.

    It's working for me writing to files in my home directory on the host from the vb guest.

    Regards, Dave Hodgins

    --
    Change dwhodgins@nomail.afraid.org to davidwhodgins@teksavvy.com for
    email replies.

    --- MBSE BBS v1.0.7.22 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From TJ@2:250/1 to All on Wed Jun 23 14:01:40 2021
    On 6/20/21 3:12 PM, Gilberto F da Silva wrote:
    I installed Mageia 8 on a virtual machine. I can read the shared folder files but I can not write as a normal user. Already attempting to change
    the owner of the files using the chown -R -v mageia8 /mnt/Matrix the
    command showed the normal message exchange but I still unable to write
    or erase the files as a normal user.

    You identified your guest OS, but didn't mention your host OS. That
    could make a difference.

    Working OK here, with several Mageia VMs in a Mageia 8 host. While
    you've probably already checked, it's best to start with the basics -
    they'll trip you up more often than you care to admit...

    As David advised, the user on the host needs to be in the vboxusers
    group. In addition, check the settings on the shared folder to see that
    "full" access is allowed. And I've never checked this out, but I believe
    the host user needs full access to the shared folder, too. (If the host
    user only has read-only access to that folder, I would think that the
    same would be true of any VM he might be running.)

    Since your virtual user has read-only access, he probably is a member of
    the VM's vboxsf group, but it wouldn't hurt to check that, too.

    TJ

    --- MBSE BBS v1.0.7.22 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Gilberto F da Silva@2:250/1 to All on Wed Jul 21 14:45:29 2021
    TJ wrote:
    On 6/20/21 3:12 PM, Gilberto F da Silva wrote:
    I installed Mageia 8 on a virtual machine. I can read the shared
    folder files but I can not write as a normal user. Already attempting
    to change the owner of the files using the chown -R -v mageia8
    /mnt/Matrix the command showed the normal message exchange but I still
    unable to write or erase the files as a normal user.

    You identified your guest OS, but didn't mention your host OS. That
    could make a difference.

    I use two Linux distributions. Slackware and openSUSE. Installing the virtual machine on Slackware does not prompt you to create specific
    groups for virtualbox. Right now I'm using Slackware 14.2 as a host and
    I'm not even able to read the /mnt/Matrix directory as a normal user.

    --- MBSE BBS v1.0.7.22 (GNU/Linux-x86_64)
    * Origin: Aioe.org NNTP Server (2:250/1@fidonet)
  • From Bit Twister@2:250/1 to All on Wed Jul 21 18:10:17 2021
    On Wed, 21 Jul 2021 10:45:29 -0300, Gilberto F da Silva wrote:
    TJ wrote:
    On 6/20/21 3:12 PM, Gilberto F da Silva wrote:
    I installed Mageia 8 on a virtual machine. I can read the shared
    folder files but I can not write as a normal user. Already attempting
    to change the owner of the files using the chown -R -v mageia8
    /mnt/Matrix the command showed the normal message exchange but I still
    unable to write or erase the files as a normal user.

    You identified your guest OS, but didn't mention your host OS. That
    could make a difference.

    I use two Linux distributions. Slackware and openSUSE. Installing the virtual machine on Slackware does not prompt you to create specific
    groups for virtualbox.

    Yep, VB does not prompt to create specific groups on Mageia install either.
    The downloaded run file appeared to create vboxusers:x:1599 group
    and I added the vboxusers group to users using VirtualBox

    Right now I'm using Slackware 14.2 as a host and
    I'm not even able to read the /mnt/Matrix directory as a normal user.

    I assume you installed the extension pack on each of your VB guests
    and you have to have privileges to read /mnt/Matrix.

    Show us the results of
    ls -al /mnt/Matrix





    --- MBSE BBS v1.0.7.22 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Gilberto F da Silva@2:250/1 to All on Thu Jul 22 15:59:32 2021
    Bit Twister wrote:
    On Wed, 21 Jul 2021 10:45:29 -0300, Gilberto F da Silva wrote:
    TJ wrote:
    On 6/20/21 3:12 PM, Gilberto F da Silva wrote:
    I installed Mageia 8 on a virtual machine. I can read the shared
    folder files but I can not write as a normal user. Already attempting
    to change the owner of the files using the chown -R -v mageia8
    /mnt/Matrix the command showed the normal message exchange but I still >>>> unable to write or erase the files as a normal user.

    You identified your guest OS, but didn't mention your host OS. That
    could make a difference.

    I use two Linux distributions. Slackware and openSUSE. Installing the
    virtual machine on Slackware does not prompt you to create specific
    groups for virtualbox.

    Yep, VB does not prompt to create specific groups on Mageia install either. The downloaded run file appeared to create vboxusers:x:1599 group
    and I added the vboxusers group to users using VirtualBox

    Right now I'm using Slackware 14.2 as a host and
    I'm not even able to read the /mnt/Matrix directory as a normal user.

    I assume you installed the extension pack on each of your VB guests
    and you have to have privileges to read /mnt/Matrix.

    Show us the results of
    ls -al /mnt/Matrix


    Using Slackware as host I get the following:

    [mageia8@localhost ~]$ uname -a
    Linux localhost 5.10.48-desktop-1.mga8 #1 SMP Wed Jul 7 14:29:42 UTC
    2021 x86_64 x86_64 x86_64 GNU/Linux
    [mageia8@localhost ~]$ ls -al /mnt/Matrix
    ls: cannot open directory '/mnt/Matrix': Permission denied
    [mageia8@localhost ~]$ su
    Password:
    [root@localhost mageia8]# ls -al /mnt/Matrix
    total 6021992
    drwxrwx--- 1 root vboxsf 4096 Jul 8 15:14 ./
    drwxrwxrwx 3 root root 4096 Jul 20 22:41 ../
    drwxrwx--- 1 root vboxsf 4096 Apr 9 20:03 0/
    -rwxrwx--- 1 root vboxsf 5470 Feb 24 18:02 2459270_326*
    -rwxrwx--- 1 root vboxsf 14101 Feb 24 19:17 2459270_381*
    -rwxrwx--- 1 root vboxsf 13978 Feb 24 19:35 2459270_429*
    -rwxrwx--- 1 root vboxsf 13043 Feb 24 19:57 2459270_446*
    -rwxrwx--- 1 root vboxsf 13034 Feb 24 20:53 2459270_456*
    lrwxrwx--- 1 root vboxsf 19 Apr 3 13:38 AppImage -> /mnt/comum/AppImage/
    drwxrwx--- 1 root vboxsf 4096 Nov 11 2020 ArcaOS/
    -rwxrwx--- 1 root vboxsf 449089094 Feb 10 11:39 'AULA ECA6 - MODELAGEM
    DE SISTEMAS DINÂMICOS-20210210_090029-Gravação de Reunião.mp4'*
    -rwxrwx--- 1 root vboxsf 9728 Apr 15 22:37 AulasGravadas09.xls* -rwxrwx--- 1 root vboxsf 10240 Apr 16 09:36 AulasGravadas10.xls* -rwxrwx--- 1 root vboxsf 10752 Apr 16 14:52 AulasGravadas11.xls* -rwxrwx--- 1 root vboxsf 10752 Apr 16 15:28 AulasGravadas12.xls* -rwxrwx--- 1 root vboxsf 11776 Apr 16 18:24 AulasGravadas13.xls* -rwxrwx--- 1 root vboxsf 12288 Apr 23 18:24 AulasGravadas14.xls* -rwxrwx--- 1 root vboxsf 12800 Apr 27 09:29 AulasGravadas15.xls* -rwxrwx--- 1 root vboxsf 3323 Apr 21 11:34 AulasGravadasDVD-RAM.lyx* -rwxrwx--- 1 root vboxsf 1824793055 Nov 25 2020 'AutoCAD_2020_Brazilian_English_x64 PHDowns.rar'*
    -rwxrwx--- 1 root vboxsf 57337 Aŭg 23 2020 Brave_Browser.png* -rwxrwx--- 1 root vboxsf 105414632 Aŭg 21 2020 Brave_Browser-x86_64.AppImage*
    -rwxrwx--- 1 root vboxsf 351 Aŭg 25 2016
    bsd-games-login-fortune.sh*
    drwxrwx--- 1 root vboxsf 4096 Feb 26 2018 'cadesimu 3.0 pt-br'/ drwxrwx--- 1 root vboxsf 4096 Okt 11 2020 'Ciência dos materiais'/ -rwxrwx--- 1 root vboxsf 7457904 Feb 28 13:42 ConEmuSetup.210206.exe* drwxrwx--- 1 root vboxsf 4096 Okt 1 2018 CONFIGS/
    drwxrwx--- 1 root vboxsf 4096 Jun 17 01:36 Configuracoes/
    drwxrwx--- 1 root vboxsf 4096 Okt 9 2020 'Controladoes
    Programáveis'/
    drwxrwx--- 1 root vboxsf 4096 Jul 20 22:36 diario.1/
    drwxrwx--- 1 root vboxsf 4096 Nov 8 2020 'ECA 5'/
    drwxrwx--- 1 root vboxsf 4096 Apr 28 16:01 ECA6/
    -rwxrwx--- 1 root vboxsf 3177937705 Feb 19 07:50 Edgecam.rar*
    -rwxrwx--- 1 root vboxsf 8499 Dec 14 2020 .emacs*
    drwxrwx--- 1 root vboxsf 4096 Okt 29 2020 emacs/
    -rwxrwx--- 1 root vboxsf 15872162 Nov 11 2020 EMACS19.ARJ*
    -rwxrwx--- 1 root vboxsf 42995288 Nov 11 2020 EMACS23.ARJ*
    -rwxrwx--- 1 root vboxsf 11312022 Okt 31 2020 'Fix6_1 - Brazilian
    Por.exe'*
    -rwxrwx--- 1 root vboxsf 3996 Jan 1 2015 florize16.ini*
    -rwxrwx--- 1 root vboxsf 1059 Jan 4 2017 frases.agenda.utf8* -rwxrwx--- 1 root vboxsf 112 Aŭg 18 2018 frases.agenda.utf8.dat* -rwxrwx--- 1 root vboxsf 13714 Jan 4 2017 frases.ateias.utf8* -rwxrwx--- 1 root vboxsf 712 Aŭg 18 2018 frases.ateias.utf8.dat* -rwxrwx--- 1 root vboxsf 1488 Jan 4 2017 frases.esperanto.utf8* -rwxrwx--- 1 root vboxsf 96 Aŭg 18 2018 frases.esperanto.utf8.dat* -rwxrwx--- 1 root vboxsf 299781 Jan 4 2017
    frases.GuiaDosCuriosos.utf8*
    -rwxrwx--- 1 root vboxsf 664 Aŭg 18 2018 frases.GuiaDosCuriosos.utf8.dat*
    -rwxrwx--- 1 root vboxsf 450 Jan 4 2017 frases.idiotismos.utf8* -rwxrwx--- 1 root vboxsf 112 Aŭg 18 2018
    frases.idiotismos.utf8.dat*
    -rwxrwx--- 1 root vboxsf 3664 Jan 4 2017 frases.netiqueta.utf8* -rwxrwx--- 1 root vboxsf 232 Aŭg 18 2018 frases.netiqueta.utf8.dat* -rwxrwx--- 1 root vboxsf 6751 Jan 4 2017 frases.palindromos.utf8* -rwxrwx--- 1 root vboxsf 1040 Aŭg 18 2018
    frases.palindromos.utf8.dat*
    -rwxrwx--- 1 root vboxsf 186986 Jan 4 2017 frases.utf8*
    -rwxrwx--- 1 root vboxsf 13240 Aŭg 18 2018 frases.utf8.dat*
    -rwxrwx--- 1 root vboxsf 50671 Jan 4 2017 frases.veiga.utf8*
    -rwxrwx--- 1 root vboxsf 6800 Aŭg 18 2018 frases.veiga.utf8.dat* drwxrwx--- 1 root vboxsf 4096 Okt 2 2018 Home/
    drwxrwx--- 1 root vboxsf 4096 Maj 24 20:23 iPod/
    lrwxrwx--- 1 root vboxsf 16 Maj 24 19:25 iPod2 -> /mnt/comum/iPod2 -rwxrwx--- 1 root vboxsf 1448 Aŭg 25 2016 lang.sh*
    drwxrwx--- 1 root vboxsf 4096 Apr 22 14:50 Latex/
    -rwxrwx--- 1 root vboxsf 6923 Feb 28 12:33 logging.rtf*
    drwxrwx--- 1 root vboxsf 4096 Nov 19 2020 lotus/
    -rwxrwx--- 1 root vboxsf 154048391 Okt 31 2020 Lotus.exe*
    drwxrwx--- 1 root vboxsf 4096 Sep 6 2017 'MBR Regenerator v4.5'/ -rwxrwx--- 1 root vboxsf 84803559 Maj 31 20:43 'Netflix Downloader TD v1.0.zip'*
    lrwxrwx--- 1 root vboxsf 35 Mar 31 21:35 'Normalização de MP3'
    '/home/leap152/Normalização de MP3'
    drwxrwx--- 1 root vboxsf 4096 Feb 28 15:44 PicsimLab_0_7_5/
    drwxrwx--- 1 root vboxsf 4096 Mar 12 19:50 PicsimLab_0_7_5_b/
    drwxrwx--- 1 root vboxsf 4096 Mar 12 20:10 'Projetos PIC FTT'/
    drwxrwx--- 1 root vboxsf 4096 Mar 12 19:57 'PROTEUS PORTABLE 7.8_b'/ drwxrwx--- 1 root vboxsf 4096 Okt 12 2020 provas/
    -rwxrwx--- 1 root vboxsf 295 Sep 18 2017 rc.local*
    -rwxrwx--- 1 root vboxsf 320 Nov 29 2020 reconfigure.sh*
    -rwxrwx--- 1 root vboxsf 580 Apr 18 18:57 Robot.txt*
    drwxrwx--- 1 root vboxsf 4096 Jun 2 2020 'S7_200 simulador -
    senha 6596'/
    drwxrwx--- 1 root vboxsf 4096 Mar 14 22:17 sábado/
    drwxrwx--- 1 root vboxsf 4096 Jan 24 12:57 scripts/
    -rwxrwx--- 1 root vboxsf 3446 Nov 2 2020 SemaforoTrem.mwp*
    -rwxrwx--- 1 root vboxsf 4719 Nov 5 2020 SemaforoTremV13.awl* -rwxrwx--- 1 root vboxsf 4770 Nov 5 2020 SemaforoTremV13.mwp* drwxrwx--- 1 root vboxsf 4096 Okt 10 2020 Simuladores/
    drwxrwx--- 1 root vboxsf 4096 Okt 19 2020 'Sistemas
    Microprocessados'/
    -rwxrwx--- 1 root vboxsf 286893775 Okt 10 2020 'STEP 7 MicroWIN V4.0 SP9.zip'*
    -rwxrwx--- 1 root vboxsf 219331 Okt 2 2020 SUB_OUT_ECAP5123_FABIONI.docx*
    drwxrwx--- 1 root vboxsf 4096 Feb 28 11:19 'System Volume
    Information'/
    drwxrwx--- 1 root vboxsf 4096 Jun 20 14:54 teste/
    -rwxrwx--- 1 root vboxsf 1746 Apr 24 21:53 'timer 0.txt'*
    drwxrwx--- 1 root vboxsf 4096 Maj 22 18:26 Trabalhos/
    drwxrwx--- 1 root vboxsf 4096 Nov 9 2020 'Turbo C'/
    drwxrwx--- 1 root vboxsf 12288 Okt 2 2018 utilaj/
    drwxrwx--- 1 root vboxsf 4096 Okt 2 2018 utjos2/
    drwxrwx--- 1 root vboxsf 4096 Sep 6 2017 'Windows Loader'/
    -rwxrwx--- 1 root vboxsf 624 Okt 26 2020 'WP ROOT. SF'*
    -rwxrwx--- 1 root vboxsf 4557621 Jun 13 21:43 wt552748.zip*
    [root@localhost mageia8]#

    --- MBSE BBS v1.0.7.22 (GNU/Linux-x86_64)
    * Origin: Aioe.org NNTP Server (2:250/1@fidonet)
  • From Bit Twister@2:250/1 to All on Thu Jul 22 17:30:50 2021
    On Thu, 22 Jul 2021 11:59:32 -0300, Gilberto F da Silva wrote:
    Bit Twister wrote:
    On Wed, 21 Jul 2021 10:45:29 -0300, Gilberto F da Silva wrote:
    TJ wrote:
    On 6/20/21 3:12 PM, Gilberto F da Silva wrote:
    I installed Mageia 8 on a virtual machine. I can read the shared
    folder files but I can not write as a normal user. Already attempting >>>>> to change the owner of the files using the chown -R -v mageia8
    /mnt/Matrix the command showed the normal message exchange but I still >>>>> unable to write or erase the files as a normal user.

    You identified your guest OS, but didn't mention your host OS. That
    could make a difference.

    I use two Linux distributions. Slackware and openSUSE. Installing the >>> virtual machine on Slackware does not prompt you to create specific
    groups for virtualbox.

    Yep, VB does not prompt to create specific groups on Mageia install either. >> The downloaded run file appeared to create vboxusers:x:1599 group
    and I added the vboxusers group to users using VirtualBox

    Right now I'm using Slackware 14.2 as a host and
    I'm not even able to read the /mnt/Matrix directory as a normal user.

    I assume you installed the extension pack on each of your VB guests
    and you have to have privileges to read /mnt/Matrix.

    Show us the results of
    ls -al /mnt/Matrix


    Using Slackware as host I get the following:

    [mageia8@localhost ~]$ uname -a
    Linux localhost 5.10.48-desktop-1.mga8 #1 SMP Wed Jul 7 14:29:42 UTC
    2021 x86_64 x86_64 x86_64 GNU/Linux
    [mageia8@localhost ~]$ ls -al /mnt/Matrix
    ls: cannot open directory '/mnt/Matrix': Permission denied
    [mageia8@localhost ~]$ su
    Password:
    [root@localhost mageia8]# ls -al /mnt/Matrix
    total 6021992
    drwxrwx--- 1 root vboxsf 4096 Jul 8 15:14 ./
    drwxrwxrwx 3 root root 4096 Jul 20 22:41 ../
    drwxrwx--- 1 root vboxsf 4096 Apr 9 20:03 0/
    -rwxrwx--- 1 root vboxsf 5470 Feb 24 18:02 2459270_326*


    And there is the problem with your access.
    only root and anyone in the vboxsf group have access to /mnt/Matrix

    As root, add the vboxsf group to your login id.
    After that is done, you have to log out/into your account to pick
    up the vboxsf privileges.





    --- MBSE BBS v1.0.7.22 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Gilberto F da Silva@2:250/1 to All on Thu Jul 22 19:03:08 2021
    Bit Twister wrote:
    On Thu, 22 Jul 2021 11:59:32 -0300, Gilberto F da Silva wrote:
    Bit Twister wrote:
    On Wed, 21 Jul 2021 10:45:29 -0300, Gilberto F da Silva wrote:
    TJ wrote:
    On 6/20/21 3:12 PM, Gilberto F da Silva wrote:
    I installed Mageia 8 on a virtual machine. I can read the shared
    folder files but I can not write as a normal user. Already attempting >>>>>> to change the owner of the files using the chown -R -v mageia8
    /mnt/Matrix the command showed the normal message exchange but I still >>>>>> unable to write or erase the files as a normal user.

    You identified your guest OS, but didn't mention your host OS. That
    could make a difference.

    I use two Linux distributions. Slackware and openSUSE. Installing the >>>> virtual machine on Slackware does not prompt you to create specific
    groups for virtualbox.

    Yep, VB does not prompt to create specific groups on Mageia install either. >>> The downloaded run file appeared to create vboxusers:x:1599 group
    and I added the vboxusers group to users using VirtualBox

    Right now I'm using Slackware 14.2 as a host and
    I'm not even able to read the /mnt/Matrix directory as a normal user.

    I assume you installed the extension pack on each of your VB guests
    and you have to have privileges to read /mnt/Matrix.

    Show us the results of
    ls -al /mnt/Matrix


    Using Slackware as host I get the following:

    [mageia8@localhost ~]$ uname -a
    Linux localhost 5.10.48-desktop-1.mga8 #1 SMP Wed Jul 7 14:29:42 UTC
    2021 x86_64 x86_64 x86_64 GNU/Linux
    [mageia8@localhost ~]$ ls -al /mnt/Matrix
    ls: cannot open directory '/mnt/Matrix': Permission denied
    [mageia8@localhost ~]$ su
    Password:
    [root@localhost mageia8]# ls -al /mnt/Matrix
    total 6021992
    drwxrwx--- 1 root vboxsf 4096 Jul 8 15:14 ./
    drwxrwxrwx 3 root root 4096 Jul 20 22:41 ../
    drwxrwx--- 1 root vboxsf 4096 Apr 9 20:03 0/
    -rwxrwx--- 1 root vboxsf 5470 Feb 24 18:02 2459270_326*


    And there is the problem with your access.
    only root and anyone in the vboxsf group have access to /mnt/Matrix

    As root, add the vboxsf group to your login id.
    After that is done, you have to log out/into your account to pick
    up the vboxsf privileges.

    It's working now. Thanks.





    --- MBSE BBS v1.0.7.22 (GNU/Linux-x86_64)
    * Origin: Aioe.org NNTP Server (2:250/1@fidonet)
  • From David W. Hodgins@2:250/1 to All on Thu Jul 22 19:29:36 2021
    On Thu, 22 Jul 2021 10:59:32 -0400, Gilberto F da Silva <gfs1989@gmx.net> wrote:
    [mageia8@localhost ~]$ su
    Password:
    [root@localhost mageia8]# ls -al /mnt/Matrix
    total 6021992
    drwxrwx--- 1 root vboxsf 4096 Jul 8 15:14 ./

    Bit Twister already answered about the permission for shared folders being limited
    to users in the vboxsf group.

    https://wiki.mageia.org/en/Never_use_just_su

    Either get into the habit of using "su --login root" or it's abbreviated form "su -", not just su.

    Regards, Dave Hodgins

    --
    Change dwhodgins@nomail.afraid.org to davidwhodgins@teksavvy.com for
    email replies.

    --- MBSE BBS v1.0.7.22 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)