How to mount psf shared home folder as a non root user?

Discussion in 'Linux Virtual Machine' started by sbarnea, Sep 15, 2016.

  1. sbarnea

    sbarnea Junior Member

    Messages:
    13
    I am using Parallels 11 and I really need to be able to use the shared home folder (or another shared folder) using non-root accounts in my Linux VM (Ubuntu 16.04).
    This is clearly not a good security practice and also prevents me from discovering bugs that would be visible only when running as a normal user.
    How can I address this problem?
    Update: I tried to add a fstab line similar to the example from http://download.parallels.com/doc/pcs/html/Parallels_Cloud_Server_Users_Guide/35698.htm but when I tried to "mount -a" I got:
    Code:
    mount: wrong fs type, bad option, bad superblock on none,
           missing codepage or helper program, or other error
    
           In some cases useful info is found in syslog - try
           dmesg | tail or so.
     
    Last edited: Sep 15, 2016
  2. sbarnea

    sbarnea Junior Member

    Messages:
    13
    It seems that I was able to do this using
    Code:
    mount -t prl_fs -o uid=1001,gid=1001 Home /home/sorins
     
  3. sbarnea

    sbarnea Junior Member

    Messages:
    13
  4. sbarnea

    sbarnea Junior Member

    Messages:
    13
  5. Hi,
    Have you tried adding this line to `/etc/fstab` ?
    Code:
    Home /home/sorins prl_fs sync,nosuid,nodev,noatime,share 0 0
    It should works with "mount -a"
     
  6. sbarnea

    sbarnea Junior Member

    Messages:
    13
    I was able to solve the problem using this approach:
    cat `/etc/mtab` and copy the line from there to `/etc/fstab` and adding `uid=xxx,gid=xxx`. Doing a `mount -a` and I am done.
     
  7. Great! Yeah, that should work too.
    I guess there is a line similar to the one I've posted above :)
     

Share This Page