From owner-freebsd-questions@freebsd.org Wed Nov 6 05:40:39 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A6F3617DBD2 for ; Wed, 6 Nov 2019 05:40:39 +0000 (UTC) (envelope-from nick.papadonis.ml@gmail.com) Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 477FkG6GNkz4p61 for ; Wed, 6 Nov 2019 05:40:38 +0000 (UTC) (envelope-from nick.papadonis.ml@gmail.com) Received: by mail-oi1-x235.google.com with SMTP id e9so16004655oif.8 for ; Tue, 05 Nov 2019 21:40:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=bADQ3Eo+owfrrbsZeV8i6Ls5i/4bLl9zYtLHY7Aq6co=; b=fsj5BsA05kMLYNF4MDUiI+YC295IrApRYxUpqVZNN38RGHkNX1I6xoZVV9Vp6btpVq wVC7yga2kWiRXJlulc46pzXaYJ5zCHOKXgqZVaLUxKLn/xIQrkeAB14mYRhXuhHNPpHw Hxq57KIVhyTMZp7RTemYOsPyOln80WqLGSVoA2oi7qO+vRG6bxVURHVGUjwnbcHZFigM Pux2j8ex2FVNlNvg08UADRLK2uz74kApsldxCM2a8x0ByPIhkESu+40S4TRuOspFWqsm sNXDaA58KQsUaoU0yo7dbIrkz8hxsBM7ADFVmx5ggZTBCO+NCLrYcFPlmwQX0ago5NP/ b8CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bADQ3Eo+owfrrbsZeV8i6Ls5i/4bLl9zYtLHY7Aq6co=; b=mr/iLtTmRHXmj1gdGBVLnN7BgWB0mEcohqZ4V0sQ4heKglFiUusKpKlIw6UHflGmGZ paZAFUXQUVGxFnPwzSXeqoo4HeYaHll9fbGfS3VapNIw/5YQM+QjpkjfGwugGoO6Qq4D ktfLjRStcU1AyLlU7PStTDr8r2T1LXANL8JigJqobYLzMjOi+Z1MBGbT6O9ON43TFC9R WC/tGnzgqQXF6mOrWw2xNoN4lJGtv0y7Y7jSUIopZ2HyLUTHFjlEj3mgPGMtYqT6qvHe t8rgMFtwePe/XtW/v8cx7ltZH1RtWG0gDxKAyv5KtxVOV0Tpadxb3tFi1rJNlEczhLyv kxnw== X-Gm-Message-State: APjAAAVzXzlVsjadCE8oGy7ODPbpfUZqScgThq9gUUHmLSmU56AA/m1P 5flUiN0FlEsPn76WYAYYm81PLJME0z4DO7OhOPoQIhOdKfU= X-Google-Smtp-Source: APXvYqznKxHBXgx5SyJeXPH9UJHMvZU1SDVOSq/4+6vEaYOcnNK2+grIr9QY+EF4dTIZiYpUrLFdApWWzZiq6h+NhzU= X-Received: by 2002:a05:6808:182:: with SMTP id w2mr632945oic.55.1573018837173; Tue, 05 Nov 2019 21:40:37 -0800 (PST) MIME-Version: 1.0 From: Nicholas Papadonis Date: Wed, 6 Nov 2019 00:40:26 -0500 Message-ID: Subject: How do you mount a Virtualbox shared folder? Group or permissions issue? To: freebsd-questions@freebsd.org X-Rspamd-Queue-Id: 477FkG6GNkz4p61 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=fsj5BsA0; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of nickpapadonisml@gmail.com designates 2607:f8b0:4864:20::235 as permitted sender) smtp.mailfrom=nickpapadonisml@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.00)[ip: (-8.86), ipnet: 2607:f8b0::/32(-2.36), asn: 15169(-2.02), country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[5.3.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Nov 2019 05:40:39 -0000 Does anyone know the procedure for a non-root user to gain access to Virtualbox shared folders? This was fairly straightforward in Debian, however I'm having challenges with FreeBSD. It looks like a group and permissions issue. In Debian, I simply created a group "vboxsf", added my unprivileged user to it, chgrp the mount folder and then mounted. I tried this in FreeBSD I used this procedure, however the group gets changed on the folder to "wheel" after mounting the shared folder. Your guidance appreciated. $ mkdir /mnt/srcr $ ls -ld /mnt/srcr drwxr-xr-x 2 root vboxsf 512 Nov 6 00:03 /mnt/srcr $ sudo mount -t vboxvfs Source /mnt/srcr $ ls -ld /mnt/srcr drwxr-xr-x 1 root wheel 576 Oct 14 21:45 /mnt/srcr $ whoami np $ pwd /mnt/srcr $ ls /mnt/src drwx------ 10 root wheel 320 Oct 14 21:35 X/ $ ls /mnt/src/X ls: X/: Permission denied