Permissions at the user level

Earlier we did a quick ls -l on the previous myfile file; the very first character - reveals, of course, that it's a regular file; the next nine characters rw-rw-r--are the file permissions. If you remember, these are grouped into three groups—the Owner (U), Group (G), and Others (O) (or Public) permissions, each of which contains three permission bits: r, w, and x (read, write and execute access). This table summarizes this information:

Interpreting it, we can see that the owner of the file can read and write to it, and so can the group members, but others (those who are not the owner and do not belong to the ...

Get Hands-On System Programming with Linux now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.