HDTenEightyP/NetNews huggingface dataset:
From: rodney@cssc-syd.tansu.com.au (Rodney Campbell)
Newsgroups: comp.unix.admin
Subject: Re: Fastest way to transfer whole filesystems?
Date: 16 Nov 92 06:44:02 GMT
Organization: AOTC - CSSC

cole@unix.SRI.COM (Susan Cole) writes:

>What's the fastest way to transfer an entire filesystem from one
>disk partition to another (different type disk, larger partition)?
>I thought that a tar would be much faster than a dump and restore
>from tape, but when I tried it, using a command like:

>	tar cf - . | ( cd /otherfs; tar xpf - )

If you are moving files on the same machine then you can use the simple
version of cpio. Try something like:

% cd sourcedir
% find . -depth -print | cpio -pdmv destdir

This will make a nice duplicate of the filesystem within sourcedir at the
destdir location, symlinks, permissions, ownerships and all.

								Rodney...
-- 
     Rodney Campbell - AOTC    |Email : rodney@cssc-syd.tansu.com.au
   Advanced Network Products   |Snail : Level 1, 18-20 Orion Rd, Lane Cove West
 Customised Software Solutions |  -  PO Box A792, Sydney South 2000, Australia.
        Centre - Sydney        |Phone : +61 (0)2 911 3123   Fax: +61 2 911 3199
Newsgroups: comp.unix.admin
From: ejh@khonshu.colorado.edu (Edward J. Hartnett)
Subject: Re: problems with a find command (SUMMARY)
Organization: CIRES, University of Colorado
	<1992Nov23.175601.54551@slate.mines.colorado.edu>
Date: 23 Nov 92 15:05:26

In article <1992Nov23.175601.54551@slate.mines.colorado.edu> mbarkah@slate.mines.colorado.edu (Ade Barkah) writes:

   ejh@khonshu.colorado.edu (Edward J. Hartnett) writes:
   : I put a find command in my crontab file which I hoped would compress
   : files larger than 10 megabytes which haven't been accessed for 14
   : days. But here's what I got in my mail about it:
   : Your "cron" job
   : 
   : /usr/bin/find / -size 1000000c -atime +14 -exec compress {}\;
   : ...
   : It looks like a good command to me! Can anyone help?

   You need a space between {} and \;. Do:

   /usr/bin/find / -size 10000000c -atime +14 -exec compress {} \;

   or

   /usr/bin/find / -size 10000000c -atime +14 -print | xargs compress

I used the first one.

   Also make sure that the size is 10mb, not 1mb as you have it. You'd
   be in for a big surprise.
Yes, I knew it was 1 MB, I just wrote 10 by mistake. Also, as someone
here suggested, I changed it to +10000000c so that it would catch
files greater than 1 MB too.

   Also, I'm not sure if running it recursive from the root directory
   is a good idea. You might just accidentally compress some systems
   file. In fact, it might not be a good idea doing anything of the
   sort.
This is a good point and in fact, by the time I posted it I had
already reconsidered. I now do two fnds, one for /data (a partition
strictly for data) and /home/khonshu (user accounts - also with lots
of data files). This way it won't go near any of my system files.

   An alternative would be to print out user files with the above
   specifications, then ask the user to either remove it or compress
   it if possible. Auto compress might just zap a poor user's datafile.
   (say, if he has something which updates the datafile monthly, and
   has been doing so for the last five years...) You be the judge.
Yes, good idea, but in this case there are only three users, and I'm,
by far, the most active, so it's no problem to just compress them. 


   -Ade.
   -- 
   Internet  : mbarkah@slate.mines.colorado.edu    (NeXT Mailable)
   CompuServe: 74160,3404
--
	Don't blame me, I voted against Amendment 2!

Edward Hartnett				ejh@khonshu.colorado.edu
From: robert@CAM.ORG (Robert Masse)
Newsgroups: comp.unix.admin
Subject: Anti-Job Control
Date: 16 Nov 92 23:55:54 GMT
Organization: Communications Accessibles Montreal, Quebec Canada

I am currently making a shell script.  In it, I have disabled all shell
escapes/ctrl codes, etc except for job control.. CTRL-Z keeps letting
me shell.  How can I avoid this (more importantly, what is the best 
way?)

rob
From: hanson@pogo.fnal.gov (Steve Hanson)
Newsgroups: comp.unix.admin
Subject: Re: NFS -- where do files really live?
Date: 23 Nov 92 15:41:05 GMT
Organization: FERMILAB, Batavia, IL
Reply-To: hanson@pogo.fnal.gov
NNTP-Posting-Host: pogo.fnal.gov

In <khm.722513356@powell> khm@powell.cs.jt.dk (Kurt Hangaard Marcussen) writes:

>lie6@ellis.uchicago.edu (Jonathan Lieberman) writes:


>>The other day I was poking around and I noticed the the /etc/passwd was
>>very small. Since there are some 3000+ users this struck me as odd. less
>>/etc/passwd reveal that there were only some 10-20 users listed there.
>>All were admin type accounts.

>>Where do the files live?

>>NFS -- I am so confused...
>>-- 
>>____________________________________________________________________________
>>                            | People demand freedom of speech to make up 
>>Jonathan Lieberman          | for the freedom of thought which they avoid.
>>lie6@midway.uchicago.edu    |                        -Kierkegaard

>Hi there!

>Your question is not strictly an NFS question. The thing is that
>you're also running YP/NIS (Network Information System), which
>means that essential files (like /etc/passwd) are only kept in
>full at the so called NIS master. So you need to know what host
>in your system is acting as NIS master. It should have the full
>password file (at least the common part).

>Regards from
>Kurt

If you want to see what is in the passwd network map just do
a 
ypcat passwd
on your machine.  This will list the network map.
-- 
Steve Hanson - FERMILAB, Batavia, Il.
hanson@pogo.fnal.gov or hanson@fnal.fnal.gov

Newsgroups: comp.unix.admin
From: twpierce@unix.amherst.edu (Tim Pierce)
Subject: Re: Automated accounting of pages printed to PostScript printers
Organization: Elitist Usenet Administrators, Stuff & Nonsense Division
Date: Mon, 23 Nov 1992 02:28:47 GMT

In article <419@infocom.UUCP> pgoujard@infocom.UUCP (Philippe Goujard) writes:

>Carl Krasnor (krasnor@nimios.eng.mcmaster.ca) wrote:
>
>: As many followers of this group have asked for before, we require software
>: to automatically perform accounting of pages printed to a PostScript
>: printer. It could be as simple as a running tally of pages printed for
>: each user ID on a system.
>
>... can a simple "grep showpage | wc -l" sort of
>script do the trick?

No; a PostScript document can have several "showpage" commands on a
line.  At the very least, you'd need some script to break the document
up into tokens, but even then, you wouldn't get around sneaky users
who might plug a "/foobar { showpage } def" into the beginning of
their document and then use "foobar" instead of "showpage."

I think almost certainly you'd want something much more low-level
than this.

-- 
____ Tim Pierce                / 
\  / twpierce@unix.amherst.edu /               Rocks say goodbye.
 \/ (BITnet: TWPIERCE@AMHERST) / 
Newsgroups: comp.unix.admin
From: eoliver@ralph.cs.haverford.edu (Erik Oliver)
Subject: Request: C-Code for SUDO
Summary: SUDO code wanted 
Organization: Haverford College Computer Science Department
Date: Mon, 16 Nov 1992 20:17:35 GMT

I am interested in compiling sudo for use on our NeXTStation, running
NeXTStep 3.0, first of all does anyone know if it will work on the NeXT
in this configuration and second of all, does anyone have the code for
sudo or do I have to buy the book which I saw the code for it in?

Thanks in advance, mail to me or the group, which ever you think is most
appropriate.

-Erik
eoliver@ralph.cs.haverford.edu	NeXTMail accepted.
Newsgroups: comp.unix.admin
From: xcpslf@decsrv.NoSubdomain.NoDomain (stephen l favor)
Subject: /etc/magic for XWD
Reply-To: xcpslf@oryx.com
Organization: Oryx Energy Co., Dallas, Texas.
Date: Thu, 19 Nov 1992 19:13:48 GMT

Has anyone hacked out a magic entry for XWD files?

Thanks.

PS- replay via email please.

Newsgroups: comp.unix.admin
From: rcf@tunica.eel.ufl.edu (Robert Fellenz)
Subject: Re: MPE, NS, TCP/IP
Organization: UF EE Department
Date: Thu, 19 Nov 92 20:27:11 GMT


>>What is MPE (Multiplatorm Environment?), and NS.  Has anyone ever heard
>>these acronyms before.  The interview is on Thursday, so you can answer
>>by mail at 'georges@zeus.franklin.edu'.  Please notice the plural 
>>georges with an s.  otherwise, someone else will get the message.

>MPE is HP's minicomputer OS.  This is not unixlike, and proprietary.  NS might
>be NIS misprinted.  

HP 9000 Network Services (NS) enable HP and non-HP computers to communicat using HP-defined user-level services over a LAN.

-bob
From: ziemniak@cl-next4.msu.edu (Terrence Ziemniak)
Newsgroups: comp.unix.admin
Subject: Re: Breaking in to Unix admin. Need Suggestions!!
Date: 17 Nov 92 14:47:16 GMT
Distribution: na
Organization: Michigan State University

In article <CSS.92Nov13142447@tron.stx.com> css@tron.stx.com (Chris  
Shenton) writes:
>  
>  I found _UNIX_System_Administration_Handbook_ by Nemeth, Snyder,
>  Seebass to be a very good overview of the sysadm chores. Lots of
>  detail, etc. This would be a good place to start for an idea of where
>  things live (eg: filesystem organization) and how to configure stuff
>  (eg: sendmail, printers).
>  
>  It's not really oriented toward troubleshooting, but it will arm you
>  with enough information so that you can make intelligent decisions on
>  where to look for problems in a confused system.

is there any other books of this nature recommended by this group for an  
admin to be?

thanks
Newsgroups: comp.unix.admin
From: karl@thuja.gsfc.nasa.gov (Karl A. Anderson)
Subject: Re: RAM size
Organization: NASA/GSFC Laboratory for Terrestrial Physics
Distribution: comp
Date: Thu, 19 Nov 1992 19:19:56 GMT

In article <1992Nov19.140503.13218@tinman.mke.ab.com>, tdphette@mke.ab.com (Thad Phetteplace x4461) writes:
|> menjan@cs.umb.edu (Men-Jan Lin) writes:
|> : 
|> : How can I know the RAM size of my Sun and HP workstation ?
|> : (not reboot)
|> : Thanks.
|> : 
|> : -Jane
|> 
|> On a Sun you can run the dmesg command and print the messages from the
|> last boot. The RAM size should be in there.  Pipe it to 'grep mem' to
|> filter out other messages...
|> 
|> dmesg | grep mem
|> 
|> That should do it.  I don't know if you can do the same on an HP.
|>  

Dmesg also works on an HP, but you have to be super-user.  Also, on a Sun you
can use devinfo(8).  Here's a script somebody posted a while ago:

karl@thuja% cat showmem
#!/bin/sh

calc_memory () {
        # now at start of memory section, dump the next two lines
        line >/dev/null
        line >/dev/null

        TOTAL_MEM=0;
        read LINE
        # until the line does not have Size on it ...
        until echo $LINE | egrep -v "Size" >/dev/null
        do
                MEM=`echo $LINE | cut -d= -f4`
                TOTAL_MEM=`echo 16 o 16 i $MEM $TOTAL_MEM + p | dc`
                read LINE
        done
        # divide to get figure in megs instead of bytes
        TOTAL_MEM=`echo 16 i $TOTAL_MEM 100000 / p | dc`
        echo $TOTAL_MEM megs
}
# send output of devinfo, from the line with 'memory' on to the above function
devinfo -v | sed -n '/\'memory\'/,\$p'' | calc_memory

karl@thuja% showmem
64 megs

-- 
Karl A. Anderson		| Internet: karl@thuja.gsfc.nasa.gov
NASA/GSFC code 920.2 (HSTX)	| voice: (301) 286-3815
Greenbelt, MD 20771		| #include "std_disclaimer"
From: ldh@svl.cdc.com (Lawrence D. Hare)
Newsgroups: comp.unix.admin
Subject: TCP Connection come up halfway, Why?
Date: 24 Nov 92 00:38:23 GMT
Organization: Control Data Systems
X-UserAgent: Nuntius v1.1.1d9
X-XXMessage-ID: <A736B96D20020456@ethelred.svl.cdc.com>
X-XXDate: Mon, 23 Nov 92 16:38:05 GMT

This one is driving me nuts.. If anyone has any idea as to what is going
on I would be really happy. This is the set up.

A Mac application that talks to a specific server on a variety of Unix
platforms. It works fine on everything. Part of this application's
function is to perform file transfers, it uses ftp. This works on ALL
configurations except ONE! What happens on this one is as follows:

The application is connected and happy. It wants to perform a file
transfer so it establishes a connection to the FTP well-known-port using
MacTCP. The connection is created and I go for an ActiveOpen. This
returns mac error -23015 which, translated, means: The connection came up
halfway and then failed.

Why why why WHY!!!!!!!!! If I run other mac applications that use ftp
protocols it works all right. Is there some negotiation going on between
the TCP peers that is failing? Is there something at the UNIX end? Is
there something I should tell someone?

Aaaaaarrrrrgh.

I am posting this to comp.sys.mac.comm, comp.unix.programmer,
comp.unix.admin and comp.unix.bsd. Any and all help is greatly
appreciated.

Thanks

--
Lawrence D. Hare       Control Data - Silicon Valley Operations
Consultant             Voice: (408) 496 4339 - C/N [234] 4339
ldh@svl.cdc.com        Mail: SVLa60  FAX: (408) 496-4106
From: brent@terra.Eng.Sun.COM (Brent)
Newsgroups: comp.unix.admin
Subject: Re: auto.direct yellow-pages map
Date: 16 Nov 1992 19:13:17 GMT
Organization: Sun Microsystems
Distribution: world
Reply-To: brent@terra.Eng.Sun.COM
NNTP-Posting-Host: terra

In article 110@ferrari.dsp.hellnet.org, ori@ferrari.dsp.hellnet.org (Ori Chalak) writes:
>
>We use SunOS 4.1.1. 
>Whenever I update the "auto.direct" yellow pages map,
>I need to reboot the clients for they will be able to "see" the change.
>I tried reinvoke automount, but it didn't help. Only "fastboot" on client helps.
>
>By the way, I did not forget to cd /var/yp and make in the master host.

Unfortunately, a reboot of each client is the only certain way to make the
clients "see" new entries in a direct or master map.  A simple restart of
the automounter is not reliable - it assumes that the automounter can
undo all current mounts and start from fresh - this is rarely true.

My advice: keep your use of direct maps to a minimum.  Use a direct map entry only
if an indirect map entry is not appropriate.  Indirect maps are *much* easier to
update and no action need be taken on clients for new entries to be "seen".


---

Made in New Zealand -->  Brent Callaghan  @ SunSoft
			 Email: brent@Eng.Sun.COM
			 phone: (415) 336 1051
From: jely@netxcom.netx.com (James Ely)
Newsgroups: comp.unix.admin
Subject: Re: Reliable backup software
Date: 19 Nov 92 20:34:17 GMT
Organization: NetExpress Inc., Vienna, VA, USA

In article <Bxpo1F.FKE@echelon.uucp> kees@echelon.uucp (Kees Hendrikse) writes:
>In <1992Nov13.200327.6049@panix.com> dans@panix.com (Dan Simoes) writes:
>
>> 	Recently there have been a few articles in the *ix magazines about
>> backup software.  Basically they focused on the fact that you never really 
>> know your data is safe unless you do a restore of that data.
>
>(...)
>
>> My question:  is there any other way to have some measure of certainty that
>> your data is safe?  Are there any shareware packages that do what I'm looking
>> for?  What do you folks use?
>
>I use a 'find - cpio - compress - dd' pipeline to backup our data and run
>the reverse pipeline to list the contents of the tape right after the
>backup finishes. If this listing succeeds, I'm confident the data on the
>tape is safe. The big problem is, will it stay safe? Especially with the
>compress scheme, the loss of a few bytes could result in loss of all data
>beyond the bad spot. Using a scheme that compresses on a file-by-file basis
>will prevent such a disaster, it will not help in keeping the data on the
>tape safe. Since tape and floppy's do go bad once in a while for no apparent
>reason, I use the simple scheme, verify the tape after the backup is done
>and store the tapes at different locations. I take some home, I leave some
>at the office and occasionally I drop one at a safe-deposit site.
>

When I set up the backups here, It was required that multiple systems
be backed up over night on the same tape (8mm Exabyte drive), and that
I would be willing to "stake my job on the data being backed up properly."
The first part was easy, and I did a tar backup of each system (over
LAN for most of them, I know there are security problems with this -
I'm still working those out) with a file mark between them.

I then set up the backups to rewind the tape and then do a search
through each system backup for a specific file (cd to "/tmp" first,
or I'd lose the original file :-) that should be on each backup.
I chose "etc/systemid" so I could also get a record of which systems
were sucessful.  Once it gets to the end of the backup for that system,
I cat the file to stdout (which is placed in a log file) and delete 
the "etc/systemid" file that was created (so I can check the next system).

Combining this with logs of how long each backup/systemcheck took, I am
very confident that my backups are successful.

We also send one set of tapes offsite for storage each month, as well
as keeping full backup tapes on site for 5 weeks.

Hope this helps.

**************************************************************************
* Jim Ely                  Trying to break of my lurker upbringing       *
* jely@netx.com								 *
* Disclaimer:  Do you really believe anyone would let me speak for them? *
**************************************************************************
From: Florian.Deckert@fifi.univ-lyon1.fr
Newsgroups: comp.unix.admin
Subject: INFORMATIONS on LAN administration's softwares
Date: 17 Nov 92 17:56:07 GMT
Organization: INSA Informatique (Grasp), Lyon, France
NNTP-Posting-Host: aedi.insa-lyon.fr
Summary: Students on search for administration's softwares for a research projec
Keywords: LAN administration

We are french students who work on a research project on LAN administration 
under UNIX. 
We are looking for existing softwares to studies their possibilities.

En francais : Projet de recherche au departement informatique de l'INSA de
		Lyon, pour concevoir et realiser un logiciel d'administration
		de reseaux.

Florian DECKERT
fdeckert@aedi.insa.fr
fdeckert@fifi.univ-lyon1.fr
Newsgroups: comp.unix.admin,comp.unix.msdos,comp.unix.ultrix,comp.dcom.lans,comp.benchmarks
From: efroyman@lynx.dac.northeastern.edu (Ella Froyman)
Subject: Network Management System
Followup-To: poster
Keywords: Dec,SUN,Novell
Organization: Northeastern University
Date: Wed, 18 Nov 1992 02:42:40 GMT

TO ALL INTERNET USERS:Hi! 

Hi! folks ;

I have some questions for all of you people out there. I have
a client who has told my company to write a "WHite Paper on Network
Management System". Does anyone know if a white paper is written
for a Network Managemnet System. If there is one; where can I find it?
Any suggestions will be appreciated. 
Thanks Ella

Newsgroups: comp.unix.admin
From: ce095@cleveland.Freenet.Edu (Jeffrey Scott Traigle)
Newsgroups: comp.unix.admin
Subject: NFS mounting and exporting question
Date: 20 Nov 1992 15:53:25 GMT
Organization: Case Western Reserve University, Cleveland, OH (USA)
Reply-To: ce095@cleveland.Freenet.Edu (Jeffrey Scott Traigle)
NNTP-Posting-Host: hela.ins.cwru.edu


We have an SGI and an Evans & Sutherland which share an optical
drive. The drive is connected to the SGI.

Currently, the only way to have the users able to mount and
unmount cartridges for access on the Evens & Sutherland is
to give them the root password for both systems. Obviously, this
not a very good situation from a security standpoint. Unfortunately,
the only way to export the optical drive and mount or unmount it
on the E&S is to have root access.

Are there mount, umount, and exportfs programs out there
somewhere that do not require root access? If so, where can I
get copies?

Thanks.

Jeff Traigle
Newsgroups: comp.unix.admin
From: gary@sci34hub.sci.com (Gary Heston)
Subject: Re: Recover files from lost+found
Reply-To: gary@sci34hub.sci.com (Gary Heston)
Organization: SCI Systems, Inc., Huntsville, Al.
Date: Mon, 23 Nov 1992 16:04:26 GMT

In article <1992Nov21.185340.28463@cs.wayne.edu> prs@frigga.cs.wayne.edu (Prabha Seshadri) writes:
>I manage a NeXT workstation connected to a Novell
>Network.My system crashed and few of the files
>were lost and I could not recover them.Can anyone
>tell me how to recover these lost files from lost+found?

If they were placed in lost+found, they're assigned a numerical filename.

Simply rename them and place them into the correct directory, with mv.

Otherwise, get out the tape backups....

-- 
Gary Heston    SCI Systems, Inc.  gary@sci34hub.sci.com   site admin
The Chairman of the Board and the CFO speak for SCI. I'm neither.
"Data sheet: HSN-3000 Nuclear Event Detector. The [NED] senses the gamma
radiation pulse [from a] nuclear weapon." As if we wouldn't notice...
From: acslp@jetson.uh.edu (M M Uddin (Pablo) acslp@jetson.uh.edu)
Newsgroups: comp.unix.admin
Subject: printing problem
Date: 20 Nov 1992 17:39 CST
Organization: University of Houston
Distribution: world
NNTP-Posting-Host: rosie.uh.edu
News-Software: VAX/VMS VNEWS 1.41    

Hello,

	We have a DIGITAL LNO3 PLUS printer connected to campus ethernet. The
problem is that it always sends a blank page before printing the actual job.
I have disabled the burst page header in the /etc/printcap file, but it did
not stop the initial blank page. 

Your assistance is appreciated.
________________________________________________________________________________
Name: Mohammed Moin Uddin			(Alias: Pablo)
Email: MUddin@uh.edu or acslp@jetson.uh.edu
(H): 8431 Hearth #36, Houston, Tx 77054. Tel: (713) 667-0826
(W): University of Houston, Houston, Tx 77204-5502 Tel: (713) 743-1561 
"For him who follows a path of seeking knowledge, Allah will ease for him 
the path to Paradise." [Muslim]
From: jfh@rpp386.lonestar.org (John F. Haugh II)
Newsgroups: comp.unix.admin
Subject: Re: Can I use a 3M DC615HC in an archive 2150S?
Date: 18 Nov 92 05:30:02 GMT
Reply-To: jfh@rpp386.cactus.org (John F. Haugh II)
Organization: Los Tejanos SCUBA Club and Beer Joint, Austin, Tejas

In article <1992Nov17.185619.21968@edsi.plexus.COM> chuck@edsi.plexus.COM (Chuck Tomasi) writes:
>I like to keep an eye on all the tapes that cross my path at work in
>case I find something I can use.  In some cases I find someone sending
>us stuff on DC6150 or DC6250 tapes which I can use in my Archive 2150
>drive at home.  Nothing like free media from the ignorant! :)

You may want to watch who you insult when you post to the net.  I'd
encourage you to find a way for your company to return those tapes
to the customers who trusted you enough to mail them in.  You might
find some of your business going to companies who employees don't
refer to their customers as "ignorant" or consider other people's
property to be booty to be taken home.
-- 
John F. Haugh II                  [  TSAKC  ] !'s: ...!cs.utexas.edu!rpp386!jfh
Ma Bell: (512) 251-2151           [ DoF #17 ]        @'s: jfh@rpp386.cactus.org
Newsgroups: comp.unix.admin
From: epc1@quads.uchicago.edu (Merlin)
Subject: I can use DNS but now Sun doesn't read /etc/hosts
Reply-To: epc1@midway.uchicago.edu
Organization: University of Chicago Computing Organizations
Date: Fri, 20 Nov 1992 16:51:19 GMT



Well, I can ftp into my system (I didn't have /etc/shells set up correctly
for a new shell I'm using) and I can use DNS.

Previously, I could resolve the names in my /etc/hosts table but could not
get DNS working correctly.

Now, I have DNS working but my Sun won't resolve names in my /etc/hosts
file.  It is important that I fix this because the name which is in my
/etc/hosts file which is not on the NIS/DNS server that my machine queries
is the name of my own machine!  Hence, I'm having alot of problems.

Is it possible to have my Sun read /etc/hosts AND use NIS/DNS?
BTW, getting my host registered into the NIS server won't be an option
for several months!
Newsgroups: comp.unix.admin,comp.sys.mips,comp.unix.bsd,comp.sys.sgi,tandem.sigs.unixsig