From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Cohen.Jessica@ic.gc.ca Newsgroups: gmane.os.tru64.managers Subject: Changes to mv in upgrade from 5.1 to 5.1b? Date: Tue, 30 Sep 2003 11:35:05 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <6DF6CA3C7B44D411827C0600000000000C17A14D@MB-BP-05> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: sea.gmane.org 1064937224 3043 80.91.224.253 (30 Sep 2003 15:53:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Sep 2003 15:53:44 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Sep 30 17:53:42 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1A4Mon-0005jP-00 for ; Tue, 30 Sep 2003 17:53:42 +0200 Original-Received: (qmail 13237 invoked by uid 5); 30 Sep 2003 15:53:32 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 13222 invoked by uid 49493); 30 Sep 2003 15:53:32 -0000 Original-Received: from Cohen.Jessica@ic.gc.ca by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(0.2/5.0):. Processed in 0.673407 secs); 30 Sep 2003 15:53:32 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 30 Sep 2003 15:53:31 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HM100917AT69R@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 30 Sep 2003 11:53:31 -0400 (EDT) Original-Received: from smtpgate-01.ic.gc.ca (smtpgate-01.ic.gc.ca [192.197.186.122]) by emroute2.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HM100389ASTH7@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 30 Sep 2003 11:53:18 -0400 (EDT) Original-Received: by smtpgate-01 with Internet Mail Service (5.5.2657.46) id ; Tue, 30 Sep 2003 11:32:03 -0400 Content-return: allowed Original-To: tru64-unix-managers@ornl.gov X-Mailer: Internet Mail Service (5.5.2657.46) Xref: main.gmane.org gmane.os.tru64.managers:5455 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:5455 We just upgraded both an ES40 and a GS60 from 5.1 to 5.1b. Some of our scripts are now failing with the "mv" command with an error I can replicate on the command line. This is an example of our directory: drwxrwx--- 2 user1 agroup 8192 Sep 30 10:42 . drwxr-xr-x 27 user1 agroup 8192 Sep 30 10:32 .. -rw-r--r-- 1 user2 agroup 744 Sep 30 10:34 afile -rw-r--r-- 1 user2 agroup 222 Sep 30 10:35 bfile -rw-r--r-- 1 user1 agroup 966 Sep 30 10:35 cfile We have a script that belongs to "user2" which writes "afile" to the shared directory. There is another script owned by "user1" which moves "afile" to "bfile" and cats "bfile" to a growing log "cfile". Where the script breaks is with the following error: "mv: cannot unlink afile: Permission denied" when I try to run the command "mv afile bfile" as user1. This type of move still works on the machine that is still at 5.1. Both user2 and user1 are in the group agroup on all machines. Does anyone know what has changed with the OS that would change the behaviour of this command? I don't need fixes, I have already thought of three that will work (using mv -f works, using cp and then rm works, and removing bfile before overwriting it works). However we have alot of scripts that use the mv command, I would prefer to know why this is changed (i.e. that it is a planned OS change) before I nudge the developers to start changing all the scripts on a production system. Can anyone confirm that this behaviour is part of a change to the OS since 5.1 (even a 5.1a change?) or tell me other things to check that might have changed when we upgraded the OS? Jessica Cohen > Systems Administrator > Information Systems Administration - DAA cohen.jessica@ic.gc.ca Industry Canada