What UNIX command will control the default file permissions
when files are created?

Answers were Sorted based on User's Feedback



What UNIX command will control the default file permissions when files are created?..

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

What UNIX command will control the default file permissions when files are created?..

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 UNIX command will control the default file permissions when files are created?..

Answer / mohammed

umask

Is This Answer Correct ?    0 Yes 0 No

What UNIX command will control the default file permissions when files are created?..

Answer / swapna

"chmod" command will control the default file permissions
when files are created.

Is This Answer Correct ?    1 Yes 10 No

Post New Answer

More Unix Commands Interview Questions

What is unix command?

0 Answers  


What does grep v grep do?

0 Answers  


What is a bash command?

0 Answers  


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

3 Answers   TCS,


Using unix command how to display no of records in oracle?

0 Answers  


what is the shell for dos,nt operating systems?

1 Answers  


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?

5 Answers  


What is use of sed command?

12 Answers   BitWise, Infosys, Reliance,


What is sed awk grep?

0 Answers  


What are Unix processes, and how do you manage them?

1 Answers  


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,


Categories