Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

set the default file mode

Posted on 1998-06-23
2
Medium Priority
?
264 Views
Last Modified: 2010-05-18
my unix system default file mode is "-rw-rw-r--"  for  every  new file I created. So every time I create a new file, I I have to change the file mode to "-rw-------" manually. How can I do this automatically, that is , how can I change the default file mode to:"-rw------".

Thanks in advance
0
Comment
Question by:tian
2 Comments
 

Author Comment

by:tian
ID: 2008199
Edited text of question
0
 
LVL 7

Accepted Solution

by:
Victor Spiridonov earned 200 total points
ID: 2008200
You should use umask command to set default mask. Type 'man umask' for detailed explanation
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
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…
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.
Suggested Courses
Course of the Month6 days, 10 hours left to enroll

783 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