Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Mar 1998 12:21:34 +1030
From:      Greg Lehey <grog@lemis.com>
To:        anthony@sohopros.com
Cc:        FreeBSD Questions <questions@FreeBSD.ORG>
Subject:   Re: xinit with non root login?
Message-ID:  <19980313122134.18401@freebie.lemis.com>
In-Reply-To: <3.0.32.19980312195038.00805a80@pop.flash.net>; from anthony@sohopros.com on Thu, Mar 12, 1998 at 07:50:41PM -0600
References:  <3.0.32.19980312195038.00805a80@pop.flash.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 12 March 1998 at 19:50:41 -0600, anthony@sohopros.com wrote:
> At 11:15 AM 3/13/98 +1030, you wrote:
>> On Thu, 12 March 1998 at 14:21:22 -0800, Doug White wrote:
>>> On Wed, 11 Mar 1998, Anthony E. Coley wrote:
>>>
>>>> I can not start my X server from a non root login.  Can someone give me
>>>> an idea where I should start looking to correct this problem?
>>>
>>> Check the X error messages first.
>>
>> Make sure your X server is setuid root:
>>
>> # chown root.sys  /usr/X11R6/bin/X
>> # chmod 4755 /usr/X11R6/bin/X
>
> Greg, I think my problem is a path problem.  When I execute
> xinit I get this message:
>
> #xinit
> xinit: not found
>
> Could you help me set the correct path?  I'm also not sure
> where the path goes.  I have your book but I'm unable to
> find out exactly what I need to set to make this work.

Depends on the shell you're running.  For sh, bash, ksh, zsh, put
something like this in your .profile file:

  PATH=$PATH:/usr/X11R6/bin

I'll leave somebody else (Doug, are you listening?) to tell you the
syntax for csh and tcsh.

Greg

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980313122134.18401>