Bienvenido! - Willkommen! - Welcome!

Bitácora Técnica de Tux&Cía., Santa Cruz de la Sierra, BO
Bitácora Central: Tux&Cía.
Bitácora de Información Avanzada: Tux&Cía.-Información
May the source be with you!

Tuesday, December 7, 2010

How to make a file executable

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
chmod 111

For all permissions, it'd be
chmod 777

Root only r/w/x would be
chmod 700

chmod +x application 

 chmod 755
More guides and articles can be found here.
Some scripts require that the files are set to executable (chmod 755) and this guide will help you. Telnet
  1. Connect to your web server with your telnet software
  2. Change directory with cd directory
  3. Type chmod 755 * to change mode for all files in that directory. If you only want to change mode for a special type of file your can use chmod 755 *.txt *.dat or chmod 755 filename.ext.
In this example we're going to use WS FTP, but you can use any other FTP software that support chmod UNIX.
  1. Connect to your server and upload the file in ASCII mode
  2. Select the file and right click on it
  3. Select Chmod UNIX in the menu
  4. Check the checkboxes as described on the picture below

No comments: