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
What is .sh file?
Enlist some filename manipulation commands in unix.
What is the first character of the output in ls l command?
What does #!/ Bin sh do?
What is ‘ps’ command for?
How many unix commands are there?
Differentiate cat command from more command.
What are the commands in UNIX to list the files in a Directory?
How do I find previous commands in unix?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What is the use of tee command?
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
What is merge command in unix?
What is the functionality of a top command?
What is grep short for?