News for hackers. Stuff that matters.
Re:Doas mastery by jacobvosmaer on Monday September 05, 2016 @10:53AM (#12430612)
I just locked myself out of an OpenBSD 6.0 box by putting the 'persist' keyword in doas.conf.

doas: syntax error at line 1

The word 'persist' does not occur in 'man doas.conf', so maybe this feature is so new it is not in OpenBSD 6.0? Watch out before you try it out yourself.

Re:Doas mastery by greggyb on Monday September 05, 2016 @02:09PM (#12431519)
Might want to use the technique in this excerpt from the article in the future before saving doas.conf to /etc. I typically work on my /etc files in a scratch directory and then mv them into /etc

> doas

> The doas command itself has a few options.

> Since we just finished looking at the config file syntax, the -C option can be used to syntax check a new file before installing.

Re:Doas mastery by ehouse on Monday September 05, 2016 @12:13PM (#12431006)
I also just learned this lesson. Assuming you're in wheel group `su -` should still work.
Re:Doas mastery by semarie on Monday September 05, 2016 @11:45AM (#12430863)
the 'persist' feature is in -current (will be 6.1)
Re:Doas mastery by gbrown_ on Monday September 05, 2016 @12:50PM (#12431185)
This option only got added in recently. I think it would have been better if this were pointed out in the post. But trying not to sound too snide there's something to be said for checking the man page before copying config off the internet.
Re:Doas mastery by jacobvosmaer on Monday September 05, 2016 @04:31PM (#12432090)
Sure, it was my mistake on two counts (not keeping a root session AND blindly changing the config). That does not necessarily mean I am alone in making that mistake so I thought I would try to warn others.