How to write linux to imitate chmod commands
This article mainly explains "how to write linux imitation chmod command", the content of the article is simple and clear, easy to learn and understand, now please follow the editor's train of thought slowly in depth, together to study and learn "how to write linux imitation chmod command" bar!
The code is as follows:
# include
# include
# include
# include
Int main (int argc,char * * argv)
{
Int mode
Int mode_u
Int mode_g
Int mode_o
Char * path
If (argc777 | | mode