Masks for chmod : chmod « File Directory « Ruby






Masks for chmod


Mask    Description
0700    rwx mask for owner
0400    r for owner
0200    w for owner
0100    x for owner
0070    rwx mask for group
0040    r for group
0020    w for group
0010    x for group
0007    rwx mask for other
0004    r for other
0002    w for other
0001    x for other
4000    Set user ID on execution
2000    Set group ID on execution
1000    Save swapped text, even after use

 








Related examples in the same category

1.Changing File Modes and Owner
2.Change mode and use system command to check
3.Change file mode to 0644
4.Changing the Permissions on a File
5.Take away the world's read access.
6.Give everyone access to everything
7.Take away the world's write and execute access