ChmodIntro

From brainsik
Jump to navigation Jump to search

They give you the executable (often called "the binary"). That's what the .bin means. I assume you grabbed the Installer version.

So, you need to tell the computer that it is executable:

    chmod u+x ====LimeWireInstaller.bin  (or whatever it is called)

==

'chmod' means change mode
    'u' means for the user who owns it
   '+x' means executable

When you ls -al a file, there are 4 fields. The first one is a single entry, indicating whether it is a special file such as a directory 'd', or a symbolic link 'l' or etc. The next three fields each have have three entries. The three fields correspond to "user permissions", "group permissions", and "world permissions" (sometimes called "other"). User permissions apply to whoever owns the file, group to whoever the group owner is, and world goes for anyone.

The three entries for each field correspond to "read permission", "write permission" and "execute permission".

You can use chmod to change all of these (except the first field).

It works like:

    chmod <field><+||-><entry>
Where for the field, u  user, g  group, o = world
      for the entry, r  read, w  write, x = execute

So, to make a file readable and writeable by the group and user:

    chmod ug+rw file

Some shorthand for changing permissions for all the fields:

    chmod +x files

Gives execution permissions to user, group, and world. Similarly

    chmod -w files

removes writing privileges for everyone.


Back to LinuxNotes


Last Edit: Wed, 27 Nov 2002 17:23:21 -0800
Revisions: 3