I tried Screen on Debian briefly. I'm not good at remembering magic keystrokes. If necessary, I'll try again. However, since I'm trying to get used to the OBSD way of doing things, and since this seemed like a security issue, I wanted to see how to solve this using what is in OBSD base. Thanks, Doug.
Does "lock -nv" not work? I just read about this in "BSD Hacks" last night, oddly enough. -Todd
# lock -nv lock: unknown option -- v usage: lock [-np] [-a style] [-t timeout] -np will at least lock the terminal with your password and no timeout.... CK -- GDB has a 'break' feature; why doesn't it have 'fix' too?
Right, but I want it to prevent me from changing to another virtual terminal.
Referring back to the "BSD Hacks" book (page 22) by Dru Lavigne, I see now that the lock command to which she refers comes with FreeBSD, although she states that it's available for NetBSD and OpenBSD. I'm an OpenBSD newbie, so I'd enjoy learning why a different version of lock is employed in OpenBSD. If anyone in the know wants to elaborate, that'd be great.
It's not necessarily a different version; all BSDs document in the lock(1) manual page that the implementation came from the 3.0BSD release. Indeed, all of them implement similar options with slight variance in the additional command line switches: FreeBSD adds a -v option to prevent switching virtual terminals during a lock. It notes that only syscons(4) terminals are supported here. (Note it's not saying that all other terminals are locked, just that you can't switch to them. So under OpenBSD you might workaround for similar behavior by logging into a single terminal session and running screen(1) or similar to load others, then locking one in essence locks them all.) http://www.freebsd.org/cgi/man.cgi?query=lock&apropos=0&sektion=0&manpath=... OpenBSD doesn't support -v, but it doesn't use syscons either so that's not really a consideration. But it does add a -a option to extend authentication using the BSD auth subsystem, giving you additional flexibility. http://www.openbsd.org/cgi-bin/man.cgi?query=lock&apropos=0&sektion=0&manp... NetBSD is the least featureful of the implementations as it has neither a -v nor a -a option. http://netbsd.gw.com/cgi-bin/man-cgi?lock++NetBSD-3.0 DS
Darren, thanks for expounding on the subject. Funny, I just read about screen(1) on merdely's blog last night. http://erdelynet.com/tech/openbsd/my-gnu-screen-config/
|Michael Trimarchi||Re: [PATCH] VFS: make file->f_pos access atomic on 32bit arch|
|Miklos Szeredi||[patch 14/15] vfs: more path_permission() conversions|
|Serge E. Hallyn||Re: [RFC v5][PATCH 7/8] Infrastructure for shared objects|
|Bernd Schmidt||Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3|
|Takashi Iwai||[PATCH 2/2] input: Add LED support to Synaptics device|
|Junio C Hamano||Re: mingw, windows, crlf/lf, and git|
|Eyvind Bernhardsen||Re: Where has "git ls-remote" reference pattern matching gone?|
|Shawn O. Pearce||Re: Switching from CVS to GIT|
|Todd Zullinger||Re: [PATCH 2/2] send-email: rfc2047-quote subject lines with non-ascii characters|
|Santi Béjar||Re: How to use git-fmt-merge-msg?|
|Ramkrishna Vepa||[net-2.6 PATCH 1/10] Neterion: New driver: Driver help file|
|Mark Anthony||invitation / inquiry|
|Ingo Molnar||Re: [PATCH 08/16] dma-debug: add core checking functions|
|David Miller||Re: [PATCH 1/3] f_phonet: dev_kfree_skb instead of dev_kfree_skb_any in TX callback|
|Sascha Hauer||[PATCH 03/12] fec: do not typedef struct types|
|Linux Kernel Mailing List||amba: struct device - replace bus_id with dev_name(), dev_set_name()|
|Linux Kernel Mailing List||MIPS: Yosemite: Convert SMP startup lock to arch spinlock.|
|Linux Kernel Mailing List||ARM: S5PC100: IRQ and timer|
|Linux Kernel Mailing List||davinci: edma: clear interrupt status for interrupt enabled channels only|
|Linux Kernel Mailing List||x86, mm, kprobes: fault.c, simplify notify_page_fault()|
|Daniel A. Ramaley||Re: [semi-OT] Can anyone recommend an OpenBSD-compatible colour laser printer?|
|Matthias Kilian||Re: can't get vesa @ 1280x800 or nv|
|Tobias Ulmer||Re: Problem after upgrade 4.5 to 4.6: ERR M|
|Philip Guenther||Re: SIGCHLD and libpthread.so|
|J.C. Roberts||Re: [semi-OT] Can anyone recommend an OpenBSD-compatible colour laser printer?|