Solved

FreeBSD X-Windows for Non-Root

Posted on 2002-07-25
2
346 Views
Last Modified: 2010-04-21
I recently installed FreeBSD and X-Windows.  After running XF86config I can startx and run KDE or Gnome as root with no problems.  

However, if I log out and try to run startx as any other user the X-Windows server shuts down.  

Any ideas?  More detail needed?  Please let me know!
0
Comment
Question by:nathan8
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
bushmannt earned 100 total points
ID: 7180577
freebsd, being a good, secure os, comes with X with suid bit turned off, so you can use it as root, but not as any other user.  so if you need it for different users, find your X server (there's usually a link from X -> XFree86)
and set the suid bit on, i have these permissions:
[root@beastie /usr/X11R6/bin ]# ll XFree86
-rwsr-xr-x  1 root  wheel  1602500 Jun 10 00:08 XFree86*

you can do that by doing chmod 4755 XFree86
0
 
LVL 1

Author Comment

by:nathan8
ID: 7183775
Thank you.

Now I can use my non-root account to access KDE.  

-Nate
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question