Solved

Default Permissions

Posted on 2004-04-02
2
341 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

762 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

20 Experts available now in Live!

Get 1:1 Help Now