From nobody@FreeBSD.org  Sat Aug  3 09:50:21 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6FE0C37B400
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  3 Aug 2002 09:50:21 -0700 (PDT)
Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3397C43E5E
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  3 Aug 2002 09:50:21 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g73GoJOT092601
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 3 Aug 2002 09:50:19 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.4/8.12.4/Submit) id g73GoJZi092600;
	Sat, 3 Aug 2002 09:50:19 -0700 (PDT)
Message-Id: <200208031650.g73GoJZi092600@www.freebsd.org>
Date: Sat, 3 Aug 2002 09:50:19 -0700 (PDT)
From: Buenaventura Carreras <bcarrera@ugr.es>
To: freebsd-gnats-submit@FreeBSD.org
Subject: startx works for root but not for users
X-Send-Pr-Version: www-1.0

>Number:         41288
>Category:       misc
>Synopsis:       startx works for root but not for users
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 03 10:00:11 PDT 2002
>Closed-Date:    Tue Aug 06 13:25:39 PDT 2002
>Last-Modified:  Tue Aug 06 13:25:39 PDT 2002
>Originator:     Buenaventura Carreras
>Release:        4.6
>Organization:
University of Granada
>Environment:
>Description:
      After installing freeBSD I could start XWindow only as root. When I tried startx as user I got the following message "Fatal server error: cannot open log file "/var/log/XFree86.0.log". 
I changed permissions of "var/log/XFree86.0.log" to 777. Then I got among other messages something like "set suid the server". After several trials (I did not know exactly which file was the server) I found and set suid "/usr/X11R6/bin/XFree86". Since then I can start XWindow as a user.
>How-To-Repeat:
      
>Fix:
      Could you not provide "/usr/X11R6/bin/XFree86" already set suid with the distribution of FreeBSD 4.6 ?. For the people like me who are new to FreeBSD that could save a lot of time or even be decisive to use FreeBSD.
I got my version of FreeBSD through the net as an ISO-IMAGE-i386 at ftp://ftp.es.FreeBSD.org/pub/FreeBSD.

Perhaps you can post this report at some place where other people with the same  (silly, I recognize) problem can see the easy solution: as root execute "chmod u+s /usr/X11R6/bin/XFree86", or in KDE use Konkeror to change the permissions in the properties of the file. 


>Release-Note:
>Audit-Trail:

From: Edwin Groothuis <edwin@mavetju.org>
To: Buenaventura Carreras <bcarrera@ugr.es>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/41288: startx works for root but not for users
Date: Sun, 4 Aug 2002 09:36:18 +1000

 On Sat, Aug 03, 2002 at 09:50:19AM -0700, Buenaventura Carreras wrote:
 > 
 > >Number:         41288
 > >Category:       misc
 > >Synopsis:       startx works for root but not for users
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       low
 > >Responsible:    freebsd-bugs
 > >State:          open
 > >Quarter:        
 > >Keywords:       
 > >Date-Required:
 > >Class:          change-request
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Sat Aug 03 10:00:11 PDT 2002
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Buenaventura Carreras
 > >Release:        4.6
 > >Organization:
 > University of Granada
 > >Environment:
 > >Description:
 >       After installing freeBSD I could start XWindow only as root. When I tried startx as user I got the following message "Fatal server error: cannot open log file "/var/log/XFree86.0.log". 
 > I changed permissions of "var/log/XFree86.0.log" to 777. Then I got among other messages something like "set suid the server". After several trials (I did not know exactly which file was the server) I found and set suid "/usr/X11R6/bin/XFree86". Since then I can start XWindow as a user.
 
 Try installing /usr/ports/x11/wrapper, it works better than doing
 the chmod. Also try -questions next time.
 
 Edwin
 
 -- 
 Edwin Groothuis      |            Personal website: http://www.MavEtJu.org
 edwin@mavetju.org    |    Weblog: http://www.mavetju.org/weblog/weblog.php 
 bash$ :(){ :|:&};:   | Interested in MUDs? http://www.FatalDimensions.org/
State-Changed-From-To: open->closed 
State-Changed-By: schweikh 
State-Changed-When: Tue Aug 6 13:21:32 PDT 2002 
State-Changed-Why:  
Please use the x11/wrapper port. If your system is running at a raised 
securelevel, it is, indeed, impossible to start X at a raised 
securelevel. To see why, look at the init(8) man page. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41288 
>Unformatted:
