Permissions with shared folders

Discussion in 'Linux Virtual Machine' started by OdysseusL, Dec 12, 2014.

  1. OdysseusL

    OdysseusL Bit poster

    Messages:
    1
    Hello

    I'm a little bit confused abut the access rights for shared folders. I run Mac OS 10.10.1 (host) and Parallels Desktop 10 (latest release and patches). As guest system I run the latest stable Debian 7.X.

    Now I share a Mac OS directory with my guest system with "read/write" permissions and "everything works fine". If I work in my guest system (Debian), depending which user I am (normal user, root, ...) the shared folder (in /media/psf) belongs to the user who makes "ls" of the directory. I mean, if root makes "ls" all the files and directories in the shared folders belongs to root. If another user, name it "test", makes "ls" all the files and directories in the shared folders belongs to "test".

    Code:
    lavrentios@vELK:/media/psf$ ll
    total 8
    dr-xr-xr-x 3 root       root       4096 Dec 12 07:31 .
    drwxr-xr-x 4 root       root       4096 Nov 12 14:05 ..
    drwxr-xr-x 1 lavrentios lavrentios  918 Nov 27 23:22 ownCloud
    lavrentios@vELK:/media/psf$ su -
    Password: 
    root@vELK:~# cd /media/psf/
    root@vELK:/media/psf# ls -al
    total 8
    dr-xr-xr-x 3 root root 4096 Dec 12 07:31 .
    drwxr-xr-x 4 root root 4096 Nov 12 14:05 ..
    drwxr-xr-x 1 root root  918 Nov 27 23:22 ownCloud
    root@vELK:/media/psf# 
    From my point of view this seems a security "hole", as long as I run the guest system as a server (for ownCloud).

    How is this possible and how may I change it in such a way, that the files and directories belongs to one user only.

    Thanks in advance for any help,
    OdysseusL
     

Share This Page