We are running RedHat Enterprise ES 5 on x86_64. We have a perl script which does, amongst other things:
- make a directory
- copy dot files into it
- chown the whole thing
The target directory is an automounted directory, which actually comes off the same thing.
If we do this as a shell script, it works:
mkdir /net/host/drive/directory/new cp /some/stuff/.??* /net/host/drive/directory/new chown -R user:group /net/host/drive/directory/new
If we do this in a perl script, either as system() or back-ticks, we get "operation not permitted".
This script works perfectly on Solaris which is where it came from.
The script is run as root, not with any su- or setuid going on.
Anyone have any ideas what is going on?