I’ve been trying to run a program on it’s own virtual display without a window manager.
It’s been forever since tried to do this-- I used to do it on AIX all the time. The syntax used to be something like
xhost +;export DISPLAY=8;xinit -- :8 command
Not working anymore. X seems to have changed so much over the past few years. I’m getting the error:
(EE) Cannot open log file “/var/log/Xorg.8.log”
Do I need to change the permissions in /var/log to let a user write to it?
Well, /var/log/ can indeed only be written to by root. So if you want to start Xorg as a user, you have to allow that user to write to /var/log/.
Or, probably better, specify a different location for the logfile via the “-logfile” option.
I haven’t ever tried to do something like you want to though, so I have no idea whether it will work then…
You probably would have to make /usr/bin/Xorg suid root (which would also “fix” the logfile problem), see /etc/permissions.local.
Oh well. There are plenty of other ways to destroy your system.
As I said, having Xorg suid root is considered a security risk, that’s why it isn’t any more since years.
But being able to overwrite your file system or partition table with the Xorg logfile is definitely not the reason for that change I suppose…