|
||||
You'll find permit keepenv :wheel in /etc/examples/doas.conf. It appears to me that you've got such as simple configuration that it confuses the parser. Try adding an option, such as keepenv, and see if it suddenly works. If it does, you've discovered a bug.
Last edited by jggimi; 15th May 2019 at 04:40 PM. Reason: typo |
|
||||
Many thanks for the reply, jggimi!
I've modified /etc/doas.conf: Code:
cat /etc/doas.conf permit keepenv :wheel Code:
doas syspatch doas: syntax error at line 1
__________________
hitest |
|
|||
Code:
$ ls -al /usr/sbin/syspatch -r-xr-xr-x 1 root bin 9070 Apr 13 13:35 /usr/sbin/syspatch Code:
permit nopass :operator as root cmd /usr/sbin/syspatch permit nopass :operator as root cmd /usr/local/libexec/openup |
|
||||
Quote:
There are many days when OpenBSD makes me feel stupid. Yesterday was one of those days. Very grateful to be a member of this forum.
__________________
hitest |
|
||||
It is funny, I remember once wanting to make a one-line "text" file without the newline at the end, and emacs kept putting one in automatically because it thought it was supposed to be there. Very frustrating, especially before I realized what was happening, but got around it some other way. I blame, of course, emacs.
|
|
||||
Quote:
I say this because I can reproduce your problem easily with nano (haven't tested with any other text editor) but not with vi(1), where I don't even need a new line as it terminates the file correctly. (Perhaps it's tedu's way of ensuring that everyone uses a proper text editor... ) |
|
|||
FWIW, mg(1) will prompt you to add a newline if there isn't one when you go to save a file.
|
|
||||
Quote:
__________________
hitest |
|
||||
Quote:
As I recall I had some problems with nano saving out wrapping / truncated lines into the file as actual line breaks, when run from certain terminal emulators (can't remember which). |
|
||||
Yes. I have used vi briefly and know only the most simple commands. I think this will be a good, new mini project to focus on. There's lots of vi support materials on the Internet. Thanks for the motivation, cynwulf.
__________________
hitest |
|
|||
I think most BSD & Linux distro's come with "ed" installed, so, in some difficult situations you do have a minimal "line editor"
|
|
||||
And there's a fun book to go with it. Ed Mastery, by Michael W. Lucas.
|
|
|||
Quote:
I saved copies of some of the rc.conf.local files I made before and after putting my user into the operator group. In one rc.conf.local, "pkg_scripts=messagebus" was the last line with no newline at the end. That explains the time I was not able to shutdown from Xfce after adding my user to the operator group. In another rc.conf.local, "xenodm_flags=" was the last line with no newline at the end. That explains the time the xenodm login window was no longer launching. I actually conscientiously (ha!) removed the newline in some of the rc.conf.local files that I made. hitest, jggimi, cynwulf - your discussion here helped me learn something useful. Thanks. And like hitest, it may be time for me to use vi enough to actually learn it, even if I now better know how to use nano. TKS |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Doas.conf question | staus | OpenBSD General | 6 | 8th November 2018 03:07 PM |
Restrict doas.conf to syspatch only | bsd007 | OpenBSD Security | 19 | 19th October 2018 01:05 AM |
DOAS(1) rules | jjstorm | OpenBSD General | 8 | 11th April 2016 08:09 PM |
Doas has logging? | cpaulette | OpenBSD General | 1 | 13th March 2016 10:24 AM |
doas package | Peter_APIIT | OpenBSD General | 2 | 1st November 2015 07:45 AM |