From owner-freebsd-questions@FreeBSD.ORG Thu Sep 18 10:57:54 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D8CD16A4B3 for ; Thu, 18 Sep 2003 10:57:54 -0700 (PDT) Received: from priv-edtnes44.telusplanet.net (outbound05.telus.net [199.185.220.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5521843FCB for ; Thu, 18 Sep 2003 10:57:53 -0700 (PDT) (envelope-from cpressey@catseye.mine.nu) Received: from kallisti.ca ([207.81.23.108]) by priv-edtnes44.telusplanet.netSMTP <20030918175752.HSZM2015.priv-edtnes44.telusplanet.net@kallisti.ca> for ; Thu, 18 Sep 2003 11:57:52 -0600 Date: Thu, 18 Sep 2003 11:00:25 -0700 From: Chris Pressey To: freebsd-questions@FreeBSD.org Message-Id: <20030918110025.5b15edfa.cpressey@catseye.mine.nu> Organization: Cat's Eye Technologies X-Mailer: Sylpheed version 0.9.4 (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: svgalib program is setuid root but still can't seem to allocate graphics console X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Sep 2003 17:57:54 -0000 Hi, I'm trying to write some code that uses /usr/ports/graphics/svgalib. I've started off with the first example program on: http://www.svgalib.org/jay/beginners_guide/beginners_guide.html As root, I can compile and run it fine, and I get the message: [svgalib: allocated virtual console #10] And if I try to run it as a normal user, I get: svgalib: Cannot get I/O permissions. This is expected, because the program is not setuid root. So as root I chmod u+s it, but then when I run it as a normal user I get: You must be the owner of the current console to use svgalib. Not running in a graphics capable console, and unable to find one. Using RAGE driver, 8192KB. ChipID:35 MemType:6 Rage: BIOS reports base frequency=28.636MHz Denominator= 31 svgalib 1.4.3 You must be the owner of the current console to use svgalib. Not running in a graphics capable console, and unable to find one. Not running in a graphics capable console, and unable to find one. This is on ttyv0, btw. I'm running X on ttyv9. I've googled for the past hour or so, but have been unable to find anything particularly enlightening in regards to why (most pages refer to Linux, and I've yet to find one that gives any advice beyond chmod u+s.) TIA for any help you can send my way! -Chris