What UNIX command will control the default file permissions
when files are created?
Answers were Sorted based on User's Feedback
Answer / indrajit bhaga / manoj jayswal
"umask <filename>" command is use to see default file
permissions or creat default file permissions.
Is This Answer Correct ? | 18 Yes | 1 No |
Answer / aks
for this purpose we need to use umask command...
as by default every file has default permissions of 666
and any directory have the dafault ermission of 777...
syntax: $ umask [umask options]
as it works with octal method only so
1 for execute
2 for write
4 for read
example:
$ umask
using umask alone will allow u to see the default permisions..
Is This Answer Correct ? | 5 Yes | 1 No |
What is unix command?
What does grep v grep do?
What is a bash command?
Sorry to all Technical person for mistake of Question. Now i am post currect question Why copied file permission is changed in destination. When i give all permission i.e 777 to file and copy that to other location in destination the permission is 755. But if give permission 555 in destination that file permission is 555 and if give permission 444 to file after copy in destination the file permission is 444. These all are happening in normal user. How the umask value is calculate here really i am not understand. Please write the proper answer. Thanks in Advance
Using unix command how to display no of records in oracle?
what is the shell for dos,nt operating systems?
distinguish between multi-tasking,multi-user,multi- processing and time sharing?
4 Answers Infosys, Nikhil Construction,
The rm command removes links to file. What does this mean? How then is a file deleted from the file system?
What is use of sed command?
12 Answers BitWise, Infosys, Reliance,
What is sed awk grep?
What are Unix processes, and how do you manage them?
How to replace the exact word in vi editor?? suppose a file contains words like amaze,amazed,amazement in some of the line.But i want to replace only 'amaze' with delight but don't wanna replace amazed or amazement. thanks
6 Answers Polaris, Tech Mahindra,