From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076331021558.tru64-unix-managers.marc@archive.invalid> From: "Hornby, Russ Mr." Date: Tue, 30 Apr 1996 11:06:00 +0000 To: tru64-unix-managers Subject: vdump/vrestore and banners X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076331021558 Thanks for all the help ron.barrett@cubic.com rwa@cs.athabascau.ca jshen@kidsat.ucsd.edu fxjwk@aurora.alaska.edu justin.richardson@citicorp.com philip.sloan@shorts.co.uk censjg@torduff.hw.ac.uk The questions were > 1) I'm running DU v3.2.c on a AXP 2100 and I'm using AdvFS. I can backup > multiple file systems on one tape using vdump and the -N switch for no > rewind (according to the log files this part seems to be working). My > problem is trying to retrieve files from the second or subsequent file > systems using vrestore. I realize "restore" has a -s switch that apparently > works, but of course "restore" only works with UFS and not AdvFS. > > 2) What file(s) do I need to edit/create to show a login banner anytime > anyone just connects to the machine via telnet or ftp. I'm not talking about > AFTER they login, I know that can be handled by /etc/motd, I mean BEFORE > they login. And the suggetions were 1) Use mt to position the tape to the right file before running vrestore; if you use vrestore -i (interactive), you should see for sure if you've gotten it to the right file! For the second file: mt -f /dev/nrmt0h fsf 1 vrestore -if /dev/nrmt0h 2) To create a logon banner, you will have to modify the /etc/gettydefs file. Include a line as follows, default###\r\n UNAUTHORIZED etc. etc. #\r\n\r\n%v (%h) %t\r\n\r\n\rlogin: #console However this option gives only a very limited banner in DU v3.2.c Easiest and most flexible way to do this is to use tcp wrappers V7.2 or later. These allow you to define banners for most inetd started services, and also implement access control if you want it. Well worth having! Thanks all