Changes to mv in upgrade from 5.1 to 5.1b?

Cohen.Jessica_at_ic.gc.ca
Date: 09/30/03

  • Next message: Browett, Darren: "Swapping a cluster member"
    Date: Tue, 30 Sep 2003 11:35:05 -0400
    To: tru64-unix-managers@ornl.gov
    
    

    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


  • Next message: Browett, Darren: "Swapping a cluster member"

    Relevant Pages

    • Re: vi horizontal split screen
      ... efficient at processing scripts, and one way to do that was substitute ... Microsoft's work for OLE in Windows 1x through 3x. ... As more and more users come to Linux who have no desire for command line ... effectively a programming environment. ...
      (comp.editors)
    • Re: Cron to email notification of ftp file upload?
      ... or traceroute and getting "command not found" messages and then trying to ... >use sudo command when you need to make root privileged changes, ie, ... [ohmster@ohmster scripts]$ sudo crontab -l ... $ cat ftpwatch ...
      (alt.os.linux)
    • Re: Beginners questions (tcsh) 1. set histdup 2. ??
      ... > learn two shells, one for interactive, and one for scripting. ... What do you do in your scripts which is the ... SAME as what you do on the command line? ... far more comfortable than those of zsh, bash or ksh. ...
      (comp.unix.shell)
    • Re: Confusing stack effects
      ... Or you would have the scripts generate several ... But what you really seem to be aiming for is an easy to use GUI ... I am not one to say "Command line pwns your GUI", but instead, ... After that, call "sort" to sort the list, and then remove double ...
      (alt.lang.asm)
    • Re: Primary Differences: FreeBSD/Linux
      ... > shell for scripts, ... Some do, it's in ports. ... ports tree or package tools from a console command line. ...
      (comp.unix.bsd.freebsd.misc)