🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Daniel R. Levy Mon, 21 Apr 1986 03:43
fix for vi restore problem on 3B2 sysV
#301
Author: Daniel R. Levy
Date: Mon, 21 Apr 1986 03:43
29 lines
2343 bytes
A couple of days ago I posted a request to att.3b and att.unix about a problem
I was having with vi on a 3B2: to wit, if my session died due to a phone line
problem (Illinois Bell, NOT AT&T :-) ) vi would send me mail that it had saved
a copy of my editor buffer, and the preserve file would be present in
/usr/preserve, but 'vi -r filename' would come up with an empty buffer and a
'file not found' diagnostic.

I received scads of replies, all advising me of a very simple fix.  The
problem is that the restore program, /usr/lib/exrecover, should be setgid
bin, not setuid bin as distributed.  (Also the save directory, /usr/preserve,
should have 775 permissions and be owned and have a group of bin, which already
was the case on my system the way vi was distributed.)

Therefore, I urge anyone out there who has a 3B2 with vi on it to be sure
that /usr/lib/exrecover is setgid bin (permissions of 2555, owner and group
of 'bin') and also double check that /usr/lib/expreserve is setuid bin and
owned by bin (permissions 4555, owner of 'bin') (I think setgid would also
work, but I haven't tried it--if you do, be sure to test it before trusting
it!) and that the /usr/preserve directory is present with permissions of 775
and is owned by and has a group of 'bin'.  You will be very glad you did
if you ever lose a session from a bad connection!
-- 
 -------------------------------    Disclaimer:  The views contained herein are
|       dan levy | yvel nad      |  my own and are not at all those of my em-
|         an engihacker @        |  ployer or the administrator of any computer
| at&t computer systems division |  upon which I may hack.
|        skokie, illinois        |
 --------------------------------   Path: ..!{akgua,homxb,ihnp4,ltuxa,mvuxa,
						vax135}!ttrdc!levy
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads