Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 updatedb?

1058


Is it inbetween or in between?

1070


What is the significance of the 'tee' command?

1203


What are the commands in UNIX to list the files in a Directory?

1193


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

1130


Which command is used to create a directory?

1175


Explain the steps that a shell follows while processing a command.

1243


Does cp command overwrite files?

1217


What do chgrp command do?

1228


Which command will print your home directory on screen?

1088


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

1176


What does grep v do?

1062


What is the use of the command 'ls -x chapter[1-5]' ?

1219


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

1409


How can you see the command line history?

1145