Index: /trunk/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp
===================================================================
--- /trunk/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp	(revision 37831)
+++ /trunk/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp	(revision 37832)
@@ -261,13 +261,17 @@
     {
 #ifdef RT_OS_SOLARIS
-        int flags = 0; /* No flags used yet. */
+        char achOptBuf[MAX_MNTOPT_STR] = { '\0', };
+        int flags = 0;
+        if (pOpts->ronly)
+            flags |= MS_RDONLY;
+        RTStrPrintf(achOptBuf, sizeof(achOptBuf), "uid=%d,gid=%d", pOpts->uid, pOpts->gid);
         int r = mount(pszShareName,
                       pszMountPoint,
-                      flags,
+                      flags | MS_OPTIONSTR,
                       "vboxfs",
                       NULL,                     /* char *dataptr */
                       0,                        /* int datalen */
-                      NULL,                     /* char *optptr */
-                      0);                       /* int optlen */
+                      achOptBuf,
+                      sizeof(achOptBuf));
         if (r == 0)
         {
