LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 10-08-2005, 10:05 AM   #1
kosmonaft
Member
 
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 ?

Notice

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


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

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


Reply


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 09:26 PM
router: inconsistent pings messiahnet Linux - Networking 1 06-21-2005 08:01 AM
inconsistent ip resolution blahJake Linux - Networking 0 09-21-2004 12:28 AM
inconsistent logons giri2 Mandriva 0 08-17-2004 06:50 PM
inconsistent X server? rgiggs Mandriva 3 05-11-2004 11:32 PM


All times are GMT -5. The time now is 11:47 AM.

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