Main usages of mask [on hold]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-5
down vote

favorite












I understand that mask is any bit stream used for bitwise operations (hence, often called bitmask) and that one could execute a mask upon basically any type of code.



I also understand that a umask is any mask executed for the sake of changing permissions of a file in Linux.



Thus I understand a mask to be a basic general component of Information Security in *nix operating systems.



Are there any other important use cases of mask streams?










share|improve this question















put on hold as unclear what you're asking by JdeBP, Jeff Schaller, thrig, mosvy, JigglyNaga 9 hours ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • Why do you think that it does?
    – JdeBP
    yesterday










  • I thinked it might be due to different names and also because I once read about it and didn't find a clear example of a difference (due to lack of background knowledge at the time)... I don't think it's worth discussing...
    – JohnDoea
    14 hours ago










  • You've asked twice, now, how a file creation mask is not a mask. Both times, people have asked in several ways why you think that to even be the case. You did not explain in the deleted question, and you aren't really explaining here. Do not be surprised that the repeated question gains no traction.
    – JdeBP
    13 hours ago










  • I think I explained it above and the explanation doesn't satisfy you; go on, downvote more and more of my questions. Very helpful and communal.
    – JohnDoea
    10 hours ago











  • I wouldn't call a bit mask a 'stream' (though if you're into streams, you can treat everything as a stream). There's no difference between a bitmask and the umask; the latter is just a bitmask describing what permission to turn off when creating a file. You're like what difference is between a spade and and spade used to dig a grave.
    – mosvy
    9 hours ago














up vote
-5
down vote

favorite












I understand that mask is any bit stream used for bitwise operations (hence, often called bitmask) and that one could execute a mask upon basically any type of code.



I also understand that a umask is any mask executed for the sake of changing permissions of a file in Linux.



Thus I understand a mask to be a basic general component of Information Security in *nix operating systems.



Are there any other important use cases of mask streams?










share|improve this question















put on hold as unclear what you're asking by JdeBP, Jeff Schaller, thrig, mosvy, JigglyNaga 9 hours ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • Why do you think that it does?
    – JdeBP
    yesterday










  • I thinked it might be due to different names and also because I once read about it and didn't find a clear example of a difference (due to lack of background knowledge at the time)... I don't think it's worth discussing...
    – JohnDoea
    14 hours ago










  • You've asked twice, now, how a file creation mask is not a mask. Both times, people have asked in several ways why you think that to even be the case. You did not explain in the deleted question, and you aren't really explaining here. Do not be surprised that the repeated question gains no traction.
    – JdeBP
    13 hours ago










  • I think I explained it above and the explanation doesn't satisfy you; go on, downvote more and more of my questions. Very helpful and communal.
    – JohnDoea
    10 hours ago











  • I wouldn't call a bit mask a 'stream' (though if you're into streams, you can treat everything as a stream). There's no difference between a bitmask and the umask; the latter is just a bitmask describing what permission to turn off when creating a file. You're like what difference is between a spade and and spade used to dig a grave.
    – mosvy
    9 hours ago












up vote
-5
down vote

favorite









up vote
-5
down vote

favorite











I understand that mask is any bit stream used for bitwise operations (hence, often called bitmask) and that one could execute a mask upon basically any type of code.



I also understand that a umask is any mask executed for the sake of changing permissions of a file in Linux.



Thus I understand a mask to be a basic general component of Information Security in *nix operating systems.



Are there any other important use cases of mask streams?










share|improve this question















I understand that mask is any bit stream used for bitwise operations (hence, often called bitmask) and that one could execute a mask upon basically any type of code.



I also understand that a umask is any mask executed for the sake of changing permissions of a file in Linux.



Thus I understand a mask to be a basic general component of Information Security in *nix operating systems.



Are there any other important use cases of mask streams?







shell security utilities umask terminology






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 10 mins ago

























asked yesterday









JohnDoea

100730




100730




put on hold as unclear what you're asking by JdeBP, Jeff Schaller, thrig, mosvy, JigglyNaga 9 hours ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






put on hold as unclear what you're asking by JdeBP, Jeff Schaller, thrig, mosvy, JigglyNaga 9 hours ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.













  • Why do you think that it does?
    – JdeBP
    yesterday










  • I thinked it might be due to different names and also because I once read about it and didn't find a clear example of a difference (due to lack of background knowledge at the time)... I don't think it's worth discussing...
    – JohnDoea
    14 hours ago










  • You've asked twice, now, how a file creation mask is not a mask. Both times, people have asked in several ways why you think that to even be the case. You did not explain in the deleted question, and you aren't really explaining here. Do not be surprised that the repeated question gains no traction.
    – JdeBP
    13 hours ago










  • I think I explained it above and the explanation doesn't satisfy you; go on, downvote more and more of my questions. Very helpful and communal.
    – JohnDoea
    10 hours ago











  • I wouldn't call a bit mask a 'stream' (though if you're into streams, you can treat everything as a stream). There's no difference between a bitmask and the umask; the latter is just a bitmask describing what permission to turn off when creating a file. You're like what difference is between a spade and and spade used to dig a grave.
    – mosvy
    9 hours ago
















  • Why do you think that it does?
    – JdeBP
    yesterday










  • I thinked it might be due to different names and also because I once read about it and didn't find a clear example of a difference (due to lack of background knowledge at the time)... I don't think it's worth discussing...
    – JohnDoea
    14 hours ago










  • You've asked twice, now, how a file creation mask is not a mask. Both times, people have asked in several ways why you think that to even be the case. You did not explain in the deleted question, and you aren't really explaining here. Do not be surprised that the repeated question gains no traction.
    – JdeBP
    13 hours ago










  • I think I explained it above and the explanation doesn't satisfy you; go on, downvote more and more of my questions. Very helpful and communal.
    – JohnDoea
    10 hours ago











  • I wouldn't call a bit mask a 'stream' (though if you're into streams, you can treat everything as a stream). There's no difference between a bitmask and the umask; the latter is just a bitmask describing what permission to turn off when creating a file. You're like what difference is between a spade and and spade used to dig a grave.
    – mosvy
    9 hours ago















Why do you think that it does?
– JdeBP
yesterday




Why do you think that it does?
– JdeBP
yesterday












I thinked it might be due to different names and also because I once read about it and didn't find a clear example of a difference (due to lack of background knowledge at the time)... I don't think it's worth discussing...
– JohnDoea
14 hours ago




I thinked it might be due to different names and also because I once read about it and didn't find a clear example of a difference (due to lack of background knowledge at the time)... I don't think it's worth discussing...
– JohnDoea
14 hours ago












You've asked twice, now, how a file creation mask is not a mask. Both times, people have asked in several ways why you think that to even be the case. You did not explain in the deleted question, and you aren't really explaining here. Do not be surprised that the repeated question gains no traction.
– JdeBP
13 hours ago




You've asked twice, now, how a file creation mask is not a mask. Both times, people have asked in several ways why you think that to even be the case. You did not explain in the deleted question, and you aren't really explaining here. Do not be surprised that the repeated question gains no traction.
– JdeBP
13 hours ago












I think I explained it above and the explanation doesn't satisfy you; go on, downvote more and more of my questions. Very helpful and communal.
– JohnDoea
10 hours ago





I think I explained it above and the explanation doesn't satisfy you; go on, downvote more and more of my questions. Very helpful and communal.
– JohnDoea
10 hours ago













I wouldn't call a bit mask a 'stream' (though if you're into streams, you can treat everything as a stream). There's no difference between a bitmask and the umask; the latter is just a bitmask describing what permission to turn off when creating a file. You're like what difference is between a spade and and spade used to dig a grave.
– mosvy
9 hours ago




I wouldn't call a bit mask a 'stream' (though if you're into streams, you can treat everything as a stream). There's no difference between a bitmask and the umask; the latter is just a bitmask describing what permission to turn off when creating a file. You're like what difference is between a spade and and spade used to dig a grave.
– mosvy
9 hours ago










2 Answers
2






active

oldest

votes

















up vote
0
down vote













umask is used to set the mask.






share|improve this answer




















  • Did you mean to say it is a utility ?
    – JohnDoea
    14 hours ago










  • What i meant to say is you use umask command to set mask permissions.
    – AsenM
    14 hours ago

















up vote
0
down vote













In Linux the default file permission is 0644, default directory permission is 0755 and default umask is 0022.



Now, as the full permission of a file is 0666, the default permission came from (0666 - 0022 = 0644) and for directory it is (0777 - 0022 = 0755).



You can set the mask using #umask 0000, and it will create files and directories with full 666/777 permission (which is very insecure though).






share|improve this answer






















  • Hello Al Mamum. I think this question should be deleted. You might want to copy the answer and save it in an ODT on your computer, or you'd like to post a question+answer with this answer.
    – JohnDoea
    10 hours ago

















2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













umask is used to set the mask.






share|improve this answer




















  • Did you mean to say it is a utility ?
    – JohnDoea
    14 hours ago










  • What i meant to say is you use umask command to set mask permissions.
    – AsenM
    14 hours ago














up vote
0
down vote













umask is used to set the mask.






share|improve this answer




















  • Did you mean to say it is a utility ?
    – JohnDoea
    14 hours ago










  • What i meant to say is you use umask command to set mask permissions.
    – AsenM
    14 hours ago












up vote
0
down vote










up vote
0
down vote









umask is used to set the mask.






share|improve this answer












umask is used to set the mask.







share|improve this answer












share|improve this answer



share|improve this answer










answered yesterday









AsenM

3837




3837











  • Did you mean to say it is a utility ?
    – JohnDoea
    14 hours ago










  • What i meant to say is you use umask command to set mask permissions.
    – AsenM
    14 hours ago
















  • Did you mean to say it is a utility ?
    – JohnDoea
    14 hours ago










  • What i meant to say is you use umask command to set mask permissions.
    – AsenM
    14 hours ago















Did you mean to say it is a utility ?
– JohnDoea
14 hours ago




Did you mean to say it is a utility ?
– JohnDoea
14 hours ago












What i meant to say is you use umask command to set mask permissions.
– AsenM
14 hours ago




What i meant to say is you use umask command to set mask permissions.
– AsenM
14 hours ago












up vote
0
down vote













In Linux the default file permission is 0644, default directory permission is 0755 and default umask is 0022.



Now, as the full permission of a file is 0666, the default permission came from (0666 - 0022 = 0644) and for directory it is (0777 - 0022 = 0755).



You can set the mask using #umask 0000, and it will create files and directories with full 666/777 permission (which is very insecure though).






share|improve this answer






















  • Hello Al Mamum. I think this question should be deleted. You might want to copy the answer and save it in an ODT on your computer, or you'd like to post a question+answer with this answer.
    – JohnDoea
    10 hours ago














up vote
0
down vote













In Linux the default file permission is 0644, default directory permission is 0755 and default umask is 0022.



Now, as the full permission of a file is 0666, the default permission came from (0666 - 0022 = 0644) and for directory it is (0777 - 0022 = 0755).



You can set the mask using #umask 0000, and it will create files and directories with full 666/777 permission (which is very insecure though).






share|improve this answer






















  • Hello Al Mamum. I think this question should be deleted. You might want to copy the answer and save it in an ODT on your computer, or you'd like to post a question+answer with this answer.
    – JohnDoea
    10 hours ago












up vote
0
down vote










up vote
0
down vote









In Linux the default file permission is 0644, default directory permission is 0755 and default umask is 0022.



Now, as the full permission of a file is 0666, the default permission came from (0666 - 0022 = 0644) and for directory it is (0777 - 0022 = 0755).



You can set the mask using #umask 0000, and it will create files and directories with full 666/777 permission (which is very insecure though).






share|improve this answer














In Linux the default file permission is 0644, default directory permission is 0755 and default umask is 0022.



Now, as the full permission of a file is 0666, the default permission came from (0666 - 0022 = 0644) and for directory it is (0777 - 0022 = 0755).



You can set the mask using #umask 0000, and it will create files and directories with full 666/777 permission (which is very insecure though).







share|improve this answer














share|improve this answer



share|improve this answer








edited 13 hours ago









JohnDoea

100730




100730










answered yesterday









al mamun

4519




4519











  • Hello Al Mamum. I think this question should be deleted. You might want to copy the answer and save it in an ODT on your computer, or you'd like to post a question+answer with this answer.
    – JohnDoea
    10 hours ago
















  • Hello Al Mamum. I think this question should be deleted. You might want to copy the answer and save it in an ODT on your computer, or you'd like to post a question+answer with this answer.
    – JohnDoea
    10 hours ago















Hello Al Mamum. I think this question should be deleted. You might want to copy the answer and save it in an ODT on your computer, or you'd like to post a question+answer with this answer.
– JohnDoea
10 hours ago




Hello Al Mamum. I think this question should be deleted. You might want to copy the answer and save it in an ODT on your computer, or you'd like to post a question+answer with this answer.
– JohnDoea
10 hours ago


Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay