Article View: net.bugs.usg
Article #301fix for vi restore problem on 3B2 sysV
From: Daniel R. Levy
Date: Mon, 21 Apr 1986 03:43
Date: Mon, 21 Apr 1986 03:43
29 lines
2343 bytes
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
Technical Details
Message-ID:
<845@ttrdc.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!ltuxa!ttrdc!levyShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site ttrdc.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!ltuxa!ttrdc!levy From: levy@ttrdc.UUCP (Daniel R. Levy) Newsgroups: net.bugs.usg Subject: fix for vi restore problem on 3B2 sysV Message-ID: <845@ttrdc.UUCP> Date: Sun, 20-Apr-86 22:43:48 EST Article-I.D.: ttrdc.845 Posted: Sun Apr 20 22:43:48 1986 Date-Received: Wed, 23-Apr-86 21:12:34 EST Organization: AT&T, Computer Systems Division, Skokie, IL Lines: 29