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

Answer Posted / vijeesh

The default file permission is 666 and directory perm. is
777, and umask default perm. is 022.
If you copied a file which is having 777 permission to
another location. umask will apply while copy the file.
hence 777 -(minus) 0222= 755 which is the default
permission of a file.

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of egrep command in unix?

624


How do you grep a case insensitive?

536


Which command can you use to find the currently running process in unix server?

583


Which command is used to kill the last background job?

769


What is command substitution?

619






What does find command return in unix?

592


What command will change your prompt to myprompt?

696


Write a command that will display files in the current directory, in a colored, long format.

679


What is command statement?

539


Which command is used to find whether the system is 32 bit or 64 bit?

627


What is the size of time_t?

640


What is the command to view process running?

572


Write a command to kill the last background job?

615


Who wrote grep?

577


What do chmod command do?

600