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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are reported commands?

570


What is rmdir command?

555


How does the system know where one command ends and another begins?

1582


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

962


What command is used to switching between users in unix?

566






why metadb requires a seperate slice to create Solaris volume manager

2558


Who invented grep?

655


What are some command words?

569


What is time_t?

589


What is sed awk grep?

609


What is grep r?

595


What does #!/ Bin sh do?

597


What does this command do,"$more readme.txt“?

693


What does the metacharacter mean?

612


What is s and g in sed command?

563