Solved

umask doesn't work - even in command mode without scripts

Posted on 2003-11-20
7
727 Views
Last Modified: 2008-03-04
I cannot get umask to work in my csh. For instance:

umask 002
touch file1
ls -l file1
-rw-rw-r-- file1

what's up?

There must be something taking precedence. What?  I would like to know all of the things that affect the effectivity of a umask.  It is not my .cshrc.  In there I also set the umask to 002.

Help!
JLH
0
Comment
Question by:jlhuber
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
7 Comments
 

Author Comment

by:jlhuber
ID: 9792002
PS --- the parent directory has full permissions, for example:

drwxrwxrwx     user1   group1    mydirectory

and I am logged in as user1.
0
 
LVL 84

Expert Comment

by:ozo
ID: 9792006
Could file1 have existed before the touch?
0
 

Author Comment

by:jlhuber
ID: 9792015
You would think that the newly created - touched file would have permissions dictated by the 002 mask i.e. -rwxrwxr-x  ?????

Thanks
0
 
LVL 84

Accepted Solution

by:
ozo earned 250 total points
ID: 9792244
x on files is off by default
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Filename to be appended with DateTimeof Download 3 69
backup program with robocopy 6 71
collection output issue 9 61
print bytes of an integer 6 22
This is about my first experience with programming Arduino.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question