From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcda7,d4c1f7c0fe672a4 X-Google-Attributes: gidfcda7,public X-Google-Thread: 10872d,d4c1f7c0fe672a4 X-Google-Attributes: gid10872d,public X-Google-Thread: 111731,d4c1f7c0fe672a4 X-Google-Attributes: gid111731,public X-Google-Thread: 1070f0,d4c1f7c0fe672a4 X-Google-Attributes: gid1070f0,public X-Google-Thread: 1020c6,d4c1f7c0fe672a4 X-Google-Attributes: gid1020c6,public X-Google-Thread: 1164f8,d4c1f7c0fe672a4 X-Google-Attributes: gid1164f8,public From: bill@bilver.magicnet.netREMOVETHIS (Bill Vermillion) Subject: Re: Different UNIX pro's and con's. Date: 1998/09/22 Message-ID: #1/1 X-Deja-AN: 393652954 References: <35F71814.1E0B911C@iakom.com> <6tp3ig$10s$1@enterprise.nssl.noaa.gov> Organization: W.J.Vermillion - Orlando / Winter Park Newsgroups: comp.unix.advocacy,comp.unix.admin,comp.sys.hp.hpux,comp.sys.sgi.admin,comp.sys.sun.admin,comp.sys.dec In article , Matt Knecht wrote: >Kevin W. Thomas wrote: >>Matt... >> >>/etc/rc2.d/S05RMTMPFILES doesn't do anything useful if /tmp is a mount point. >Running a script that blindly does an rm -rf /tmp/* is a lot less >damaging than rebooting the entire system. About 1990 or so, there was one of the SysV.3's on iNTEL that had a broken bourne shell. That,in addition to a poorly written script, that changed to the directory and then rm -r *'ed the files, caused total wipeout on more than one machine. The shell is supposed to fail and exit if something goes wrong. However this implementation - as I recall it - would continue to the next line even with the prior "cd" failed. The program then rm -r *'ed the entire root directory. Such an interesting way to start off your Monday. That was discovered and fixed within a month or so, but too late help some people. It was an automatic cleanup script distributed with the OS. It's bring back the old TRUST NOTHING/NO-ONE rule. >I'm of the firm belief that /tmp means temporary. If people put >anything there, there are *no* guarentees that it will be there even 3 >seconds from now. My own scripts don't have quite a draconian view of >things, though. They check for file locks before doing anything. If >the file is locked, it gets a reprieve, else it gets unlinked. If >you're not using file locking, and using /tmp and your file goes away, >you have nobody to blame but your own bad programming (Or a bad vendor). Yup - temp is temporary - and I've seen a many applications use /tmp to store the applications file work area. A user won't be extremely happy if their app goes south when the file in /tmp gets removed. -- Bill Vermillion bv @ wjv.com