Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-08-2005, 09:05 AM   #1
Registered: Mar 2005
Location: Illinois, US
Posts: 38

Rep: Reputation: 15
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 ?


#!/usr/bin/perl -w
printf("UMASK = %04o\n", umask); # prints out UMASK = 0000

Last edited by kosmonaft; 10-08-2005 at 10:22 AM.
Old 11-21-2005, 11:21 PM   #2
Registered: Oct 2005
Location: A safe distance from Detroit
Distribution: SuSE 10.0, Knoppix
Posts: 99

Rep: Reputation: 17
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
inconsistent USB 2.0 performance akshunj Slackware 8 10-16-2005 08:26 PM
router: inconsistent pings messiahnet Linux - Networking 1 06-21-2005 07:01 AM
inconsistent ip resolution blahJake Linux - Networking 0 09-20-2004 11:28 PM
inconsistent logons giri2 Mandriva 0 08-17-2004 05:50 PM
inconsistent X server? rgiggs Mandriva 3 05-11-2004 10:32 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration