[PLUG] umask issues with VirtualBox Machine files

Ken Stephens kens at cad2cam.com
Wed Jun 2 03:57:58 UTC 2010


Russell Senior wrote:
> I am setting up a Ubuntu machine on which multiple people share
> VirtualBox guest machines.  When guest machines are closed, various
> files, particularly in the Machines tree, get stored with the wrong
> permissions (0600, rather than 0660 that is needed).  The group
> ownership is set up so that newly created files are owned correctly.
> Setting umask to 002 doesn't seem to help.
>
> Anybody with experience in this kind of situation?  Potential
> solutions? 
>
>
>   
Russell,

Did you mean to set the parent directory with the GUID bit set? If you 
want files inside the
directory, then chmod the parent directory to 02770.  This will set the 
unix permissions to

 >chmod 02770 .
 >ls -la
drwxrws---  owner group 4895 .
Note the s in place of the x in the group triplet.

So when a file is created by a member of group group, the permisisons 
are set 660.

-rw-rw---- member group 463764  newfile

Caveats: member is member of group group.

Who's on first, anyway.

Ken Stephens



More information about the PLUG mailing list