Find the answer to your Linux question:
Results 1 to 4 of 4
How do I change the attributes of a file to make it executable??...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! feddersen's Avatar
    Join Date
    Dec 2004
    Location
    Norway
    Posts
    82

    make a file executable


    How do I change the attributes of a file to make it executable??

  2. #2
    Linux Guru
    Join Date
    Mar 2003
    Location
    Wisconsin
    Posts
    1,907
    Use the chmod command. The attributes are read/write/execute for root/user/group with the values being 4-2-1,4-2-1,4-2-1. To give everyone execute only access to a file, you'd

    Code:
    chmod 111
    For all permissions, it'd be

    Code:
    chmod 777
    Root only r/w/x would be

    Code:
    chmod 700
    Hope that helps,
    Jeremy
    Registered Linux user #346571
    "All The Dude ever wanted was his rug back" - The Dude

  3. #3
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    also you can use
    Code:
    chmod +x <service or program>
    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User sheds's Avatar
    Join Date
    Nov 2004
    Location
    ??????????
    Posts
    342
    That works for files like the java and limewire installer.

    For instance, you type:
    Code:
    chmod +x limewirelinux.bin
    This will change this file to an executable.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •