Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
how do you make a file executable?
Results 1 to 9 of 9

Thread: how do you make a file executable?

  1. #1

    how do you make a file executable?

    I got a quiz question for ya..

    To make a file executable for everyone you type,

    a) chmod u+x filename
    b) chmod all+x filename
    c) chmod u+g+o_x filename
    d) chmod a+x filename


    Thanks for your help.
    Anthony

  2. #2
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811

    Re: how do you make a file executable?

    D

  3. #3

    Re: how do you make a file executable?

    Depends entirely on who gets to execute the file.

    I usually just use the numbers, it's simpler.

  4. #4
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811

    Re: how do you make a file executable?


    Depends entirely on who gets to execute the file.
    No it dosn't, the question was, how you get it executeable by everyone, it dosn't have anything todo with who gets to do it..

    I usually just use the numbers, it's simpler.
    How ?? the question didn't stated if the group rights should be kept or if it should be changed to only executable, so the numbers are no good here, since they take effect on a global scale, not just the single bit repressenting the execution..

  5. #5
    Guest

    Re: how do you make a file executable?

    Erggh...

    chmod uses 3 bits x 3 (for owner, group and others - in that order) - the first bit 1 is execute so :

    so we can say

    bits : 4 2 1
    r w x

    just add up:

    if you want read, write and execute for owner, read and execute for group and only read for others it would be:

    chmod 754 filename (remember to do this as owner or root).

    but to answer the question, I find:

    chmod 111 filename the easiest.

    what do I win ?

    oh D would also work, but a+x are far from each other on the keyboard so with pratice the bit approce is faster to type

  6. #6

    Re: how do you make a file executable?

    ITS A QUIZ QUESTION , not a debate on which way is better. D is the answer to the question. theres no E: none of the above, use numbers instead choice now is there

  7. #7
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    Re: how do you make a file executable?


    what do I win ?
    Nothing... There is no price attached .... I thought we have a PET for it ... You could have just pointed out to the PET rather than typing it all over again ...
    ;D

  8. #8
    Guest

    Re: how do you make a file executable?



    Nothing... There is no price attached .... I thought we have a PET for it ... You could have just pointed out to the PET rather than typing it all over again ...
    ;D
    Honestly I only check the PET section when I have a serious problem - so I didn't even notice that we had a PET for this...

    Hell... no prizes... okay... I'll do it for the glory !

  9. #9

    Re: how do you make a file executable?

    ITS A QUIZ QUESTION , not a debate on which way is better. D is the answer to the question. theres no E: none of the above, use numbers instead choice now is there
    There was nothing that said I couldn't write in my own answers :P

    Anyway, about the numbers -- I very rarely ever see a situation in which I want to "preserve" the other permissions, while only adding executeable. If I want it executable, it's usually just 755 or 750. Just out of habit, I guess.

Similar Threads

  1. How to revert my file modes of /etc file system
    By vesskrishna in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 10-26-2009, 05:24 AM
  2. How To Make A Dedicated File Server Or Web Server
    By beezlebubsbum in forum Linux - General Topics
    Replies: 11
    Last Post: 02-22-2009, 01:12 AM
  3. File Manager File names in all caps?
    By vwgtiturbo in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 07-14-2006, 04:18 AM
  4. ldd: find libraries from executable
    By Blaqb0x in forum Linux - Software, Applications & Programming
    Replies: 3
    Last Post: 06-12-2002, 07:22 AM
  5. Making a CD-ROM executable
    By cloverm in forum Linux - General Topics
    Replies: 5
    Last Post: 05-10-2002, 12:09 AM

Bookmarks

Posting Permissions

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