Solved

Default Permissions

Posted on 2004-04-02
2
342 Views
Last Modified: 2012-05-04
Hi,

I have a directory with drwx------ permissions.

Whenever I create a new find inside this directory, it has -rw-r--r-- permissions. I want it to be -rw------- by default.

Same with new directories that I create inside this dir: by default I want drwx------ instead of drwxr-xr-x.

Is there a way to change this?
I use tcsh.
Thanks!
0
Comment
Question by:slavikn
2 Comments
 
LVL 14

Accepted Solution

by:
chris_calabrese earned 50 total points
ID: 10740722
Permissions on new files are set by the umask setting of the process creating the file, and not by any settings on the directory they're being created inside of.

To create flles that are -rw------- and directories that are drwx------, use 'umask 077'. You can issue this command directly from the command-line in the shell, or in a startup file such as .login/.profile.
0
 
LVL 1

Author Comment

by:slavikn
ID: 10740949
Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

919 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

14 Experts available now in Live!

Get 1:1 Help Now