Solved

Default Permissions

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sort command HPUX 11 75
pauing printer deamon in AIX 10 59
Linux performance issues with 100% swap usage, etc 15 93
Unix How to Bulk Remove Multiple Directories from FileSystem 10 77
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

815 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

8 Experts available now in Live!

Get 1:1 Help Now