Solved

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

Posted on 2003-11-20
7
696 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 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
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 …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now