[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] xstart or x ?



> 
> On Wed, 17 Nov 1999, Anand Raman wrote:
> 
> > both are the same since x is just a symbolic link to startx
> 
> Only mistake hereis its 'X' and not 'x'.
> 

wrong.

****

[jaju@tachyon jaju]$ file `which startx`
/usr/X11R6/bin/startx: Bourne shell script text
[jaju@tachyon jaju]$ file `which X`
/usr/X11R6/bin/X: symbolic link to Xwrapper
[jaju@tachyon jaju]$

*****

Xwrapper in turn (it's a suid program) execs /etc/X11/X file, which is
again a symbolic link to the actual binary (say, /usr/X11R6/bin/XF86_SVGA)

You can't directly execute /usr/X11R6/bin/XF86_SVGA (because you need root
perms to get control over the comp to start X windows). The Xwrapper file
does some checks and then passes control to the binary.

regards,
jaju

--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.