Solved

Default Permissions

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Best way to handle awk return value 6 76
FTP on FreeBSD server 2 154
Unix Question 19 53
add some character at the end of line in vi 7 111
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

730 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