171. What are the File modes in Unix?
In Unix, there are three main permissions for a File.
I. r = It means a user can read the file
II. w = It means that a user can write to this file
III. x = It means the a user can execute a file like a shell script
Further there are three permission sets.
I. Owner: User who created the file
II. Group: This applies to user of a group to which owner belongs
III. Other: This is rest of the users in Unix system
With the combination of these three sets permissions of file in Unix are specified.
E.g. If a file has permissions –rwxr-xr-- , it means that owner has read, write, execute access. Group has read and execute access. Others have
just read access. So the owner or admin has to specifically grant access to Others to execute the file.