News for hackers. Stuff that matters.
Re:OpenBSD 6.5 by bigato on Wednesday April 24, 2019 @09:44AM (#19738218)
> Xorg(1), the X window server, is no longer installed setuid. xenodm(1) should be used to start X.

That is really great!

Re:OpenBSD 6.5 by snazz on Wednesday April 24, 2019 @09:47AM (#19738244)
Does this mean that I can’t startx on a machine that I rarely use X on? Is a display manager now required for running X?

From a security standpoint this makes sense, of course, but how are you supposed to deal with a half-desktop-half-server system?

Re:OpenBSD 6.5 by crest on Wednesday April 24, 2019 @10:17AM (#19738539)
No. It just means that startx no longer requires root to start X. It removes setuid root from one more executable.
Re:OpenBSD 6.5 by zmyrgel on Wednesday April 24, 2019 @10:59AM (#19738985)
I thought it means exactly that for X you need to run xenodm. But if you don't want to run it by default you can use "doas rcctl start -f xenodm" to start display manager when needed.
Re:OpenBSD 6.5 by snazz on Wednesday April 24, 2019 @10:34AM (#19738727)
Even better. Then it’s a win-win.
Re:OpenBSD 6.5 by snazz on Wednesday April 24, 2019 @08:13PM (#19743794)
I was incorrect: It appears that you do in fact need root to run startx now:

(quoting the faq page for upgrade65):

Xorg(1). The Xorg binary is no longer installed setuid, so startx(1) can no longer be used by non-root users. The xenodm(1) display manager has to be used instead.

Re:OpenBSD 6.5 by mises on Wednesday April 24, 2019 @09:54AM (#19738323)
You can still do this, just through the command mentioned above. SUID binaries are a serious risk; good on the openbsd folks for trying to remove one.