Solved

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

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
wordappend challenge 8 175
tvirtualstringtree freeze when load too manny images 10 62
Java Loop 6 60
Is doing tutor.com teaching in my situation advisable? 2 87
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 …
This is about my first experience with programming Arduino.
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 seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

770 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