Solved

set the default file mode

Posted on 1998-06-23
2
249 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:
spiridonov earned 50 total points
ID: 2008200
You should use umask command to set default mask. Type 'man umask' for detailed explanation
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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…
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…

743 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