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

How do I search for text in vi?

595


What is the size of time_t?

661


Which unix command lists files/folders in alphabetical order?

624


Which command is used to restrict incoming messages?

598


How to display no of records in oracle using unix command?

593






What is the significance of the 'tee' command?

602


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1769


Is command prompt unix?

586


Which command should you use to find the remaining disk space in unix server?

719


What does find command return in unix?

605


What is the pipe command?

586


What is grep in bash?

591


What is the difference between cat command and more command?

607


How do I search a whole word in vim?

704


What is merge command in unix?

950