Why can't I 'startx' except as 'root'?

Why can't I 'startx' except as 'root'?

Post by M.Buchenried » Thu, 14 Mar 1996 04:00:00




>I have no trouble starting X windows when I log in as 'root', but when I
>login as me to my '/home/ottusch' user account and do 'startx' I get this:
>---------------------------------------------------------------------------
>TRANS(SocketCreateListener): failed to bind listener
>TRANS(SocketUNIXCreateListener): TRANS(SocketCreateListener) () failed
>TRANS(MakeAllCOTSServerListeners) failed to create listener for local
>XFree86 Version 3.1.2 / X Window System
>(protocol Version 11, revision 0, vendor release 6000)
>Operating System: Linux
>Configured drivers:
>  S3: accelerated server for S3 graphics adaptors (Patchlevel 0)
>      mmio_928, s3_generic
>Fatal server error:
>xf86OpenConsole: Server must be suid root

                  ^^^^^^^^^^^^^^^^^^^^^^^^

That's it. The server must be suid root to allow normal users to start
X . Go into /usr/X11R6/bin and change the permissions for the Xserver
executable accordingly - e.g. if using the S3 server, that would be
XF86_S3 .

Michael

--

**************************************************************************
* "Real computer scientists don't program in assembler. They don't write *
*  in anything less portable than a number two pencil."                  *

 
 
 

Why can't I 'startx' except as 'root'?

Post by Ricardo Manuel Antunes Vinag » Fri, 15 Mar 1996 04:00:00


: I have no trouble starting X windows when I log in as 'root', but when I
: login as me to my '/home/ottusch' user account and do 'startx' I get this:

: TRANS(SocketCreateListener): failed to bind listener
: TRANS(SocketUNIXCreateListener): TRANS(SocketCreateListener) () failed
: TRANS(MakeAllCOTSServerListeners) failed to create listener for local

[stuff deleted]

: Fatal server error:
: xf86OpenConsole: Server must be suid root

[more stuff deleted]

: Is there some file I'm missing or some permission set wrong?  I pretty much
: followed the standard Slackware 2.3 installation for Linux 1.2.8 and then
: got X all set up and working correctly as 'root'.

Your X-server is basically an executable file that needs to do some
reserved operations - so it must be root to do them.

There's 2 ways to do this:
1) run the server as root
2) setuid the server executable to root

You want to try the second - ok here goes:
- First find out your X-server executable - it's a simbolic link with the name
X - see what file it points to ( ls -l X  will do the trick )

- Go to that files directory and do the following ( i will use the name X_S3 as
the name for your file, but that's just as an example ):
 chown root:root X_S3
 chmod 6755 X_S3

( note: you must be root to execute this operations )
This should do it! Send me E-mail if this doesn't work.

--
*-----------------------------------------------------------------------*
| RRRRR V       VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV  |
| R   R  V     V                                                        |
| RRRR    V   V       A Student of Electronics at Instituto Superior    |
| R  R     V V          Tecnico - LISBON - PORTUGAL                     |
| R   R     VINAGRE                                                     |
|                                                                       |
|     Try out my WWW Home page - http://alfa.ist.utl.pt/~l36686/        |
\_______________________________________________________________________/
|   Tired of Microsoft OS's - Try out Linux!!! - it doesn't have that   |
|               much advertising but it's great anyway                  |
*-----------------------------------------------------------------------*

 
 
 

1. Difference between 'startx', 'xdm', and 'xinit' ?

Hi, I have just installed Debian and installed several xwindow servers
not knowing which one I should install.  The one that seems to be
defaulted is XF86...something(i'm at work and can not remeber exactly
what) , however it said when I configured it(incorrectly of  course)
that I could start xwindows by typing one fo the three commands
above(subject line).

What is the difference between them ? And does anyone suggest an xserver
that I should be using ?

I have a Sony Trinitron 17"(Dell manufactured), Diamond Fire GL 100 Pro
with 8MB.  Also, if anyone could send me a config file to get me started
I would really appreciate it :)

Thanks,

Carey

  Carey_Bingham.vcf
< 1K Download

2. Sync tool

3. Why is mail for 'news' not sent to 'root'?

4. Status of quotas on ext3 and reiser?

5. why aren't 'esc' ~ 'break' recognized?

6. AFS and Kerberos

7. change group 0's name from 'root' to 'staff'

8. building mod_ssl on OpenBSD

9. Why did 'nobody' do a 'find'

10. Why does 'ls' give '/' as the output?

11. why does 'admintool' hide my 'auto_master' table ?

12. 'double' or 'dbl' or 'dble', the disk space utilty

13. sed -e 's/\'a\'/\';\'/' ?