Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2003-11-20
7
Medium Priority
?
740 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
  • 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 85

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 85

Accepted Solution

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

Featured Post

Technology Partners: 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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

885 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