Inconsistent permissions
My umask is set up to 000 in /etc/profile. My perl script creates a folder with 'mkdir', where I pass in a mask of 0775. When I run a stat command to see permissions on the created folder it shows 0755. Why is it 0755 instead of 0775 ?
Notice #!/usr/bin/perl -w printf("UMASK = %04o\n", umask); # prints out UMASK = 0000 |
Where is the directory you are creating? I believe there is a job which checks certain files or directories and watches for changes in permissions or unsafe permissions and changes them to a safe value. Not a guarantee, but something I ran across once at work. Can't remember more than that right now.
|
All times are GMT -5. The time now is 04:32 PM. |