x
Loading
 Loading
Hello, Guest | Login | Register

Changing File Permissions and Adding a Zip Drive

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.

1

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.).

Tech Support/Permissions
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:

  • Hands-on Content
  • White Papers
  • Community Features
  • And more.
Already a Member?
Log in!
Username

Password

Remember me

Forgotten your password?
Forgotten your username?
Read More
  1. KDE 4.4: Does It Work Yet?
  2. Writing Custom Nagios Plugins with Python
  3. Power Up Linux GUI Apps
  4. Tweeting from the Command Line with Twyt
  5. When Memory Serves You: Using ramfs and tmpfs
Follow Linux Magazine
Rackspace