OS. the chmod (path, mode) method should be very simple. It only requires two parameters: path and path mode, the following lists some common modes that can be used in this usage:
Stat. s_isuid:Set User ID on execution. not commonly used
Stat. s_isgid:Set Group ID on execution. not commonly used
Stat. s_enfmt:Record locking enforced. not commonly used
Stat. s_isvtx:Save text image after execution. Save text and images after execution
Stat. s_iread:Read by owner. Read Permission for the owner
Stat. s_iwrite:Write by owner. Write Permission to owner
Stat. s_iexec:Execute by owner. Permission for execution by owner
Stat. s_irwxu:Read, write, and execute by owner. Read and Write Permissions Of the owner
Stat. s_irusr:Read by owner. Read Permission for the owner
Stat. s_iwusr:Write by owner. Write Permission to owner
Stat. s_ixusr:Execute by owner. Permission for execution by owner
Stat. s_irwxg:Read, write, and execute by group. read and write permissions for users in the same group
Stat. s_irgrp:Read by group. Read Permission for the same group
Stat. s_iwgrp:Write by group. Write Permission for the same group
Stat. s_ixgrp:Execute by group. Permission for execution in the same group
Stat. s_irwxo:Read, write, and execute by others. read and write permissions for other groups
Stat. s_iroth:Read by others. Read Permission for other groups
Stat. s_iwoth:Write by others. Write Permission for other groups
Stat. s_ixoth:Execute by others. permissions for execution in other groups