Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Mar 1997 11:51:10 -0500 (EST)
From:      "Kenneth R. Westerback" <krw@tcn.net>
To:        freebsd-current@freebsd.org
Subject:   2.2R /usr/X11R6/lib/X11/xinit, /fonts permissions?
Message-ID:  <Pine.BSF.3.95q.970322114243.1509A-100000@Pkrw.tcn.net>

next in thread | raw e-mail | index | archive | help
After I had downloaded and installed (using /stand/sysinstall) the latest
recompiled XFree86 3.2 I found that doing a startx as root worked as I
expected, bringing up the familiar default twm screen.  However doing a
startx as my usual self brought up a completely default X Windows screen,
sans window manager.

A little investigation showed that the permissions for /usr/X11R6/lib/X11
to be 

total 142
drwxr-xr-x  18 root  10     -   512 Mar 22 00:14 ./
drwxr-xr-x   4 root  10     -  1024 Mar 20 21:12 ../
-r--r--r--   1 root  10     - 30791 Mar 16 20:23 Cards
-r--r--r--   1 root  10     - 25499 Mar 16 20:18 XErrorDB
-r--r--r--   1 root  10     - 20739 Mar 16 20:23 XF86Config.98
-r--r--r--   1 root  10     - 13874 Mar 16 20:22 XF86Config.eg
drwxr-xr-x   5 root  10     -   512 Mar 20 21:13 XF86Setup/
-r--r--r--   1 root  10     -  4767 Mar 16 20:18 XKeysymDB
drwxr-xr-x   2 root  10     -  1024 Mar 20 21:11 app-defaults/
drwxr-xr-x   2 root  10     -  2048 Mar 20 21:13 config/
drwxrwxr-x   4 root  wheel  -  1536 Mar 20 21:11 doc/
drwxr-xr-x   2 root  10     -   512 Mar 20 21:11 etc/
drwx------   8 root  wheel  -   512 Mar 20 21:10 fonts/
drwxr-xr-x   2 root  10     -   512 Mar 20 21:10 fs/
drwxr-xr-x  22 root  10     -   512 Mar 20 21:11 locale/
drwxr-xr-x   2 root  10     -   512 Mar 22 00:14 nls/
-r--r--r--   1 root  10     - 17375 Mar 16 20:19 rgb.txt
drwxr-xr-x   4 root  10     -   512 Mar 20 21:11 rstart/
drwxr-xr-x   2 root  10     -   512 Mar 20 21:11 twm/
drwxr-xr-x   2 root  10     -   512 Mar 20 21:11 x11perfcomp/
drwxr-xr-x   2 root  10     -   512 Mar 20 21:11 xdm/
drwx------   2 root  wheel  -   512 Mar 20 21:11 xinit/
drwxr-xr-x  11 root  10     -   512 Mar 20 21:11 xkb/
-r--r--r--   1 root  10     -  8344 Mar 16 20:29 xman.help
drwxr-xr-x   2 root  10     -   512 Mar 20 21:11 xsm/

note the permissions of xinit/ and fonts/, set to disallow access from
anyone but the owner.  Is this correct? Obviously with the defaults this
way my usual self is unable to see the system default xinitrc file.  Or
does this version/release now assume normal users will have this file
copied into their directory as .xinitrc?  I don't recall having to do this
in previous X installs but I haven't done a LOT of them...  I chmod'ed
both directories to 755 (the fonts/ I changed because it was the only
different permissions setting for all the directories I see in the list)
and everything is working.

Did I do right or am I transgressing an unwritten law?

---- Ken




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970322114243.1509A-100000>