Files and directories under Linux have access permissions for the individual owner of the file or directory, any members of a group that might own the file or directory, and everyone else who might want to read or write it. There are three types of access permission: read, write, and execute. Read allows you to look at a file’s contents. Write allows you to change or delete the file. Execute allows you to run the file as a program. Running ls -l at a command-line prompt will list the file and directory attributes in the current directory. A sample file entry would look like Listing One.
Can you do something on file permissions for newbies? I have searched for an easy way of remembering/using chmod. Specifically, remembering what the different number codes mean (i.e., 777, 570, etc.).
The GUI Way: In addition to the command line, permissions can also be set through a file manager.
Files and directories under Linux have access permissions for the individual owner of the file or directory, any members of a group that might own the file or directory, and everyone else who might want to read or write it. There are three types of access permission: read, write, and execute. Read allows you to look at a file’s contents. Write allows you to change or delete the file. Execute allows you to run the file as a program. Running ls -l at a command-line prompt will list the file and directory attributes in the current directory. A sample file entry would look like Listing One.
The string of 10 characters to the far left (-rwxr-xr-x) are what we are interested in. The - in the first position means that this is a normal file. An l would indicate that this file is really a link to another file…
Please log in to view this content.
Not Yet a Member?
Register with LinuxMagazine.com and get free access to the entire archive, including: