Solved

FreeBSD X-Windows for Non-Root

Posted on 2002-07-25
2
317 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
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now