|
Lines 7238-7243
Link Here
|
| 7238 |
</qandaentry> |
7238 |
</qandaentry> |
| 7239 |
|
7239 |
|
| 7240 |
<qandaentry> |
7240 |
<qandaentry> |
|
|
7241 |
<question id="xfree86-root"> |
| 7242 |
<para>I used to run XFree86 as a regular user, but now when |
| 7243 |
I start it it says I must be root!</para> |
| 7244 |
</question> |
| 7245 |
|
| 7246 |
<answer> |
| 7247 |
<para>All X servers need to be run as root in order to get direct |
| 7248 |
access to your video hardware. Older versions of XFree86 |
| 7249 |
(<= 3.3.6) installed all bundled servers to be automatically |
| 7250 |
run as root (setuid to root). This is obviously a security |
| 7251 |
hazard because X servers are large, complicated programs. |
| 7252 |
Newer versions of XFree86 do not install the servers setuid to |
| 7253 |
root for just this reason.</para> |
| 7254 |
|
| 7255 |
<para>Obviously, running an X server as the root user is not |
| 7256 |
acceptable, nor a good idea security-wise. There are two ways |
| 7257 |
to be able to use X as a regular user. The first is to use |
| 7258 |
<ulink |
| 7259 |
url="http://www.FreeBSD.org/cgi/man.cgi?manpath=xfree86&query=xdm"> |
| 7260 |
<command>xdm</command></ulink> or another display manager |
| 7261 |
(e.g., <command>kdm</command>); the second is to use the |
| 7262 |
<command>Xwrapper</command>.</para> |
| 7263 |
|
| 7264 |
<para><command>xdm</command> is a daemon that handles graphical |
| 7265 |
logins. It is usually started at boot time, and is responsible |
| 7266 |
for authenticating users and starting their sessions; it is |
| 7267 |
essentially the graphical counterpart of |
| 7268 |
<command>getty</command> and <command>login</command>. For |
| 7269 |
more information on <command>xdm</command> see <ulink |
| 7270 |
url="http://www.FreeBSD.org/cgi/man.cgi?manpath=xfree86&query=xdm"> |
| 7271 |
its manual page</ulink>, <ulink |
| 7272 |
url="http://www.xfree86.org/support.html">the XFree86 |
| 7273 |
documentation</ulink>, and the <link linkend="xdm-boot">the FAQ |
| 7274 |
entry</link> on it.</para> |
| 7275 |
|
| 7276 |
<para><command>Xwrapper</command> is the X server wrapper; it is |
| 7277 |
a small utility to enable one to manually run an X server while |
| 7278 |
maintaining reasonable safety. It performs some sanity checks |
| 7279 |
on the command line arguments given, and if they pass, runs the |
| 7280 |
appropriate X server. If you do not want to run a display |
| 7281 |
manger for whatever reason, this is for you. If you have |
| 7282 |
installed the complete <ulink url="../ports/">ports |
| 7283 |
collection</ulink>, you can find the port in |
| 7284 |
<filename>/usr/ports/x11/wrapper</filename>. If you have not, |
| 7285 |
follow the previous link for information on how to obtain just |
| 7286 |
this specific port.</para> |
| 7287 |
</answer> |
| 7288 |
</qandaentry> |
| 7289 |
|
| 7290 |
<qandaentry> |
| 7241 |
<question id="ps2-x"> |
7291 |
<question id="ps2-x"> |
| 7242 |
<para>My PS/2 mouse doesn't behave properly under X.</para> |
7292 |
<para>My PS/2 mouse doesn't behave properly under X.</para> |
| 7243 |
</question> |
7293 |
</question> |