[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Difference between X and Xorg commands?



On Mon, May 25, 2009 at 04:11:28AM EDT, Foss User wrote:
> I installed xserver-xorg like this:
> 
> aptitude install xserver-xorg
> 
> I see two commands have appeared.
> 
> X from xserver-xorg
> Xorg from xserver-xorg-core
> 
> What is the difference between the two commands?

For what it's worth: /usr/bin/X is a wrapper that runs setuid root.
After doing minimal initialization that requires running setuid root it
drops root privileges and exec's the actual Xserver - /usr/bin/Xorg.

There may be other reasons, but one thing that comes to mind is that
this approach keeps the code that needs to run privileged to a minimum
to reduce the risk of security holes.

On debian "etch":

$ dpkg -S /usr/bin/X
x11-common: /usr/bin/X

Seems it was packaged differently on the version of debian that you are
running.

CJ





Reply to: