5 ms·
% ls -l /bin/Xorg -rwxr-xr-x 1 root root 271 Oct 25 18:42 /bin/Xorg
by megous 8y ago
% ls -l /bin/Xorg
-rwxr-xr-x 1 root root 271 Oct 25 18:42 /bin/Xorg
- caf 8y agoThat 271 byte file is just a shell script that execs either Xorg.wrap or Xorg from the X basedir (eg /usr/lib/xorg/). One of those target files is usually setuid. If you have Xorg.wrap, it will be the setuid file and it is usually configured to drop root before executing the real Xorg if root isn't needed (eg. KMS is available).