Re: syntax error and doas.conf

2018-11-02 Thread Jacqueline Jolicoeur
On Oct 31 10:42, Markus Rosjat wrote: > at this point you are a bit screwed because you cant edit the doas.conf you > cant reboot you only way seems to be a switch off. Ok maybe there other was > but hey I'm no pro Im a simple user and its a vm so switch it off. Boot in > single user mode, make a

Re: syntax error and doas.conf

2018-10-31 Thread Allan Streib
Stuart Henderson writes: > If you aren't sure about a change you're about to make, keep a spare > root shell open (or at least keep the editor open - save the file > but don't exit - and test on another terminal). I would add that this is not really OpenBSD-specific. Yes there's no direct

Re: syntax error and doas.conf

2018-10-31 Thread Solene Rapenne
Stuart Henderson wrote: > On 2018-10-31, Markus Rosjat wrote: > > just something I notice while trying out stuff with doas and my python > > scripts. If you do a mistake and have a syntax error in the doas.conf > > file you can easily look you self out from root privi

Re: syntax error and doas.conf

2018-10-31 Thread Kim Zeitler
On 10/31/18 10:42 AM, Markus Rosjat wrote: ... doas vi /etc/doas.conf # Edit in vi :w :! doas -C % You don't even have to leave your editor smime.p7s Description: S/MIME Cryptographic Signature

Re: syntax error and doas.conf

2018-10-31 Thread Stuart Henderson
On 2018-10-31, Markus Rosjat wrote: > just something I notice while trying out stuff with doas and my python > scripts. If you do a mistake and have a syntax error in the doas.conf > file you can easily look you self out from root privilages  :( If you aren't sure about a change you

Re: syntax error and doas.conf

2018-10-31 Thread Markus Rosjat
Hi Bruno, Am 31.10.2018 um 12:23 schrieb Bruno Flueckiger: On 31.10.18 10:42, Markus Rosjat wrote: Losing ten minutes time because of a mistake you've made all by yourself made you write this useles mail. Imagine how many times you could have read the man page of doas(8) and find out that

Re: syntax error and doas.conf

2018-10-31 Thread Bruno Flueckiger
On 31.10.18 10:42, Markus Rosjat wrote: > Hi all, > > just something I notice while trying out stuff with doas and my python > scripts. If you do a mistake and have a syntax error in the doas.conf > file you can easily look you self out from root privilages  :( > > conside

Re: syntax error and doas.conf

2018-10-31 Thread Markus Rosjat
Hi Am 31.10.2018 um 10:52 schrieb Consus: Well, that's why we have sudoedit. With doas your are forced to $ doas cp -p /etc/doas.conf /etc/doas.conf.new $ doas vi /etc/doas.conf.new $ doas -C /etc/doas.conf.new $ doas mv /etc/doas.conf.new /etc/doas.conf yeah

Re: syntax error and doas.conf

2018-10-31 Thread Consus
On 10:42 Wed 31 Oct, Markus Rosjat wrote: > Hi all, > > just something I notice while trying out stuff with doas and my python > scripts. If you do a mistake and have a syntax error in the doas.conf file > you can easily look you self out from root privilages  :( > > conside

syntax error and doas.conf

2018-10-31 Thread Markus Rosjat
Hi all, just something I notice while trying out stuff with doas and my python scripts. If you do a mistake and have a syntax error in the doas.conf file you can easily look you self out from root privilages  :( consider a a case where your root has no pw, you are the guy in the wheel group