Hello All,
I hope someone can help me. I've got a script that will archive a file. Once this file is archived, it will create a new file with the same name (an empty one).
The script is generic and most of the time the script is executed where only the owner of the file needs to be able to write to it, however, there are instances where the group members need to be able to write to the file as well.
Is there a way to get the UMASK information from the file before it was archived, and then easily apply the same permissions to the new file when creating it?
This is in ksh not Perl.
Hope this makes sense, let me know if it doesn't!
Thanks in advance!
Stefan
I hope someone can help me. I've got a script that will archive a file. Once this file is archived, it will create a new file with the same name (an empty one).
The script is generic and most of the time the script is executed where only the owner of the file needs to be able to write to it, however, there are instances where the group members need to be able to write to the file as well.
Is there a way to get the UMASK information from the file before it was archived, and then easily apply the same permissions to the new file when creating it?
This is in ksh not Perl.
Hope this makes sense, let me know if it doesn't!
Thanks in advance!
Stefan