LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Inconsistent permissions (https://www.linuxquestions.org/questions/linux-general-1/inconsistent-permissions-370914/)

kosmonaft 10-08-2005 09:05 AM

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


ahedler 11-21-2005 11:21 PM

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.