Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2003-11-20
7
Medium Priority
?
737 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 1000 total points
ID: 9792244
x on files is off by default
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
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 …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

722 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