From owner-freebsd-questions@freebsd.org Sun Apr 9 19:22:04 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 87BE9D36E86 for ; Sun, 9 Apr 2017 19:22:04 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay11.qsc.de (mailrelay11.qsc.de [212.99.187.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0D731BE2 for ; Sun, 9 Apr 2017 19:22:03 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay11.qsc.de; Sun, 09 Apr 2017 21:21:55 +0200 Received: from r56.edvax.de (port-92-195-127-117.dynamic.qsc.de [92.195.127.117]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 03DE33CBF9; Sun, 9 Apr 2017 21:21:53 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v39JLrwM002039; Sun, 9 Apr 2017 21:21:53 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 9 Apr 2017 21:21:53 +0200 From: Polytropon To: Manish Jain Cc: "freebsd-questions@freebsd.org" , "jd1008@gmail.com" Subject: Re: Unable to add self to group vboxusers Message-Id: <20170409212153.bfd97dd9.freebsd@edvax.de> In-Reply-To: References: <58EA7C59.3010608@gmail.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay11.qsc.de with 716896A356A X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.2384 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2017 19:22:04 -0000 On Sun, 9 Apr 2017 18:30:33 +0000, Manish Jain wrote: > On 04/09/17 23:54, JD wrote: > > > > > > On 04/09/2017 12:04 PM, Manish Jain wrote: > >> Hi, > >> > >> > >> I am trying to run VirtualBVox under my under my system, a FreeBSD (p1) > >> 11 amd64 box with a radeon R5 230 (Caicos) card. > >> > >> > >> I did the following and rebooted : > >> > >> a) installed virtualbox-ose via pkg > >> > >> b) inserted vboxnet_enable="YES" in /etc/rc.conf > >> > >> c) added self to users vboxusers with : 'pw groupmod vboxusers -m ' > >> > >> d) added the following line to /etc/devfs.rules : > >> > >> add path 'usb/*' mode 0660 group operator > >> > >> Upon reboot, trying to run VirtualBox gets me : > >> > >> libGL error: MESA-LOADER: failed to retrieve device information > >> libGL error: image driver extension not found > >> libGL error: failed to load driver: radeon > >> libGL error: failed to open drm device: Permission denied > >> libGL error: failed to load driver: r600 > >> Effective UID is not root (euid=1001 egid=1001 uid=1001 > >> gid=1001) (rc=-10)

Please try reinstalling > >> VirtualBox.

where: SUPR3HardenedMain > >> what: 2 > >> VERR_PERMISSION_DENIED (-10) - Permission denied. > >> > >> ^C > >> > >> > >> When I run the groups command, I get different results based on > >> effective UID : > >> > >> > >> a) as root, when I run 'groups ', I spot vboxusers among the groups > >> for > >> > >> b) as normal user, when I run groups I do not see vboxusers among my > >> groups. > >> > >> > >> I am therefore unable to run VirtualBox. What exactly could be the > >> problem that leads me into vboxusers not being among my groups ? > >> > >> > >> Thanks for any help > >> > >> Manish Jain > >> > > I do not know how you tried to add users to a group, but here is the > > CLI command > > $ sudo |usermod -a -G wheel > > Unfortunately, the command only allows the addition of one user at a > > time :( > > > > Strangely, I do not seem to have the usermod command : > > bash: usermod: command not found It should probably be: $ sudo pw usermod -a -G wheel The "usermod" is a command option for the pw program; see "man pw" for details. Or add /etc/group manually. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...