DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Security

OpenBSD Security Functionally paranoid!

Reply
 
Thread Tools Display Modes
Old 4 Weeks Ago
hitest's Avatar
hitest hitest is offline
Real Name: George Nielsen
Spam Deminer
 
Join Date: Sep 2008
Location: B.C., Canada
Posts: 256
Default

Quote:
Originally Posted by TheTKS View Post
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
Interesting morning. Ran a little experiment and re-installed an OpenBSD 6.5 system and forced myself to mostly use vi for initial set-up. I did some reading yesterday to re-familiarize myself with basic usage of vi (command and insert modes, and how to save). I was able to successfully use vi to edit pf.conf, create a new doas.conf file, and create a new /etc/hostname.iwn0 file.
I still do like to use sudo occasionally, but , ran into trouble trying to edit my existing /etc/sudoers file. I did what was suggested and could not save the file?! Did the remaining files with nano. That was odd. I have more to learn about vi. Enjoyable and frustrating.

Addition: Spent the afternoon and evening tinkering with vi. I am a bit more comfortable with vi.
__________________
hitest

Last edited by hitest; 4 Weeks Ago at 04:19 AM. Reason: Addition- added hours later
Reply With Quote
Old 4 Weeks Ago
Prevet Prevet is offline
Shell Scout
 
Join Date: Oct 2017
Posts: 98
Default

Quote:
Originally Posted by frcc View Post
I think most BSD & Linux distro's come with "ed" installed, so, in some difficult situations you do have a minimal "line editor"
I've been there. Vi was not avaialble, only ed.

Quote:
Originally Posted by jggimi View Post
And there's a fun book to go with it. Ed Mastery, by Michael W. Lucas.
Its a good book. I found ed is quite nice to use after a bit of practice..
Reply With Quote
Old 3 Weeks Ago
jmccue jmccue is offline
Real Name: John McCue
Port Guard
 
Join Date: Aug 2012
Location: here
Posts: 22
Default

Hi

Did not see this link (flak.tedunangst.com) in the tread, but I found it very informative

John

Last edited by jmccue; 3 Weeks Ago at 10:12 PM. Reason: grammer
Reply With Quote
Old 2 Weeks Ago
braveheart braveheart is offline
New User
 
Join Date: May 2019
Posts: 2
Default

I use the ee text editor. It comes standard with FreeBSD. I know you need to installl it as a package or from the ports tree, so that ED Mastery book suggested maybe a better place to start, unless you need to use some GNU/Linux distro that doesn't have it installed by default anymore. I wish the OpenBSD communal packages came with the more advanced text editor based on ee, ie. aee or I think its xae for GUI interfaces, (its a long time since I have used FreeBSD).
As far as doas.conf is concerned, the Author inside the man page is Ted Unagast (have I spelled his name correctly?). Anyway, search for his doas pamphlet mastery webpage with Chromium, it doesn't seem to work with other web browsers, get security certificate errors with Firefox and Lynx I think. But his document is not too long but covers the essentials. Its getting a bit old, so some of the contents may need updating - ie. the OP that replied to you said you might have found a bug.

Anyway, Take Care and Happy Reading/Experimenting

BraveHeart
Reply With Quote
Old 2 Weeks Ago
ibara's Avatar
ibara ibara is offline
Real-life IT professor
 
Join Date: Jan 2014
Posts: 676
Default

Quote:
Originally Posted by braveheart View Post
I use the ee text editor. It comes standard with FreeBSD. I know you need to installl it as a package or from the ports tree, so that ED Mastery book suggested maybe a better place to start, unless you need to use some GNU/Linux distro that doesn't have it installed by default anymore. I wish the OpenBSD communal packages came with the more advanced text editor based on ee, ie. aee or I think its xae for GUI interfaces, (its a long time since I have used FreeBSD).
I manage the editors/ee package. I also have a (never committed) port of aee (which comes with xae). Never thought anyone would want it but I can put it in if people do.
Reply With Quote
Old 2 Days Ago
johnR johnR is offline
Port Guard
 
Join Date: Nov 2017
Posts: 37
Default

Quote:
Originally Posted by hitest View Post
I still do like to use sudo occasionally, but , ran into trouble trying to edit my existing /etc/sudoers file. I did what was suggested and could not save the file?!
/etc/sudoers may have read-only permissions, in which case you'd need to add an exclamation mark to the vi :wq command to allow vi to write to the file, eg. :wq!

You should use visudo to edit the sudoers file, not plain vi.

Last edited by johnR; 2 Days Ago at 12:13 PM.
Reply With Quote
Old 2 Days Ago
hitest's Avatar
hitest hitest is offline
Real Name: George Nielsen
Spam Deminer
 
Join Date: Sep 2008
Location: B.C., Canada
Posts: 256
Smile

Quote:
Originally Posted by johnR View Post
/etc/sudoers may have read-only permissions, in which case you'd need to add an exclamation mark to the vi :wq command to allow vi to write to the file, eg. :wq!

You should use visudo to edit the sudoers file, not plain vi.
Thank you! Yes. Noted for future reference. This experience with editing /etc/doas.conf was indeed valuable. My default editor is now vi not nano.
__________________
hitest
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 05:40 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick