satanta
22-08-09, 20:05
Question.
What is chmod
Answer.
We use the chmod command to change the access mode of a file. This command comes in many flavours, but we'll be talking about the FTP application.
chmod who=permissions filename
This gives “who” the specified permissions for a given filename
The “who” refer to three classes: File Owner, File Group, and File Public.
The chmod FTP command is in the form of: chmod xxx filename - where, xxx is an octal number in the range 0 to 777.
Each of the nine permissions are assigned a unique octal mumber as follows.
File Owner permission to Read the file is assigned the octal number - 400
File Owner permission to Write the file is assigned the octal number - 200
File Owner permission to Executes the file is assigned the octal number - 100
File Group permission to Read the file is assigned the octal number - 40
File Group permission to Write the file is assigned the octal number - 20
File Group permission to Executes the file is assigned the octal number - 10
File User permission to Read the file is assigned the octal number - 4
File User permission to Write the file is assigned the octal number - 2
File User permission to Executes the file is assigned the octal number - 1
The final chmod number is the sum of the reqired attributes for the classes for that particular file.
Examples:
The FTP command: chmod 755 filename would enable:
The File owner to Read, Write and Execute that file.
The File Group to Read and Execute that file.
The File User to Read and Execute that file.
The FTP command: chmod 666 filename would enable:
The File owner to Read and Write that file.
The File Group to Read and Write that file.
The File User to Read and Write that file.
The FTP command: chmod 644 filename would enable:
The File owner to Read and Write that file.
The File Group to Read that file.
The File User to Read that file.
A practical example of changing the mode of the file /EMU/plugins.conf to its working mode from your PC in Command mode is:
With the prompt: C:\>, type:
Telnet 192.168.1.10 <ENTER> - assuming that is your receivers IP address, if not change to yours.
Also <ENTER> = the Enter or Carriage Return command.
The screen will respond:
MMP login:
Type: root<ENTER>
The screen will respond:
Password:
Type your receivers password<ENTER>
The screen will respond:
[MMP[~]
Type:
chmod 644 /EMU/bin/plugins.conf <ENTER>.
If the command has been actioned, the screen will respond:
[MMP[~]
-------------------------------------------------
The chmod command is automated with utilities like FileZilla, DCC etc enabeling easy use.
What is chmod
Answer.
We use the chmod command to change the access mode of a file. This command comes in many flavours, but we'll be talking about the FTP application.
chmod who=permissions filename
This gives “who” the specified permissions for a given filename
The “who” refer to three classes: File Owner, File Group, and File Public.
The chmod FTP command is in the form of: chmod xxx filename - where, xxx is an octal number in the range 0 to 777.
Each of the nine permissions are assigned a unique octal mumber as follows.
File Owner permission to Read the file is assigned the octal number - 400
File Owner permission to Write the file is assigned the octal number - 200
File Owner permission to Executes the file is assigned the octal number - 100
File Group permission to Read the file is assigned the octal number - 40
File Group permission to Write the file is assigned the octal number - 20
File Group permission to Executes the file is assigned the octal number - 10
File User permission to Read the file is assigned the octal number - 4
File User permission to Write the file is assigned the octal number - 2
File User permission to Executes the file is assigned the octal number - 1
The final chmod number is the sum of the reqired attributes for the classes for that particular file.
Examples:
The FTP command: chmod 755 filename would enable:
The File owner to Read, Write and Execute that file.
The File Group to Read and Execute that file.
The File User to Read and Execute that file.
The FTP command: chmod 666 filename would enable:
The File owner to Read and Write that file.
The File Group to Read and Write that file.
The File User to Read and Write that file.
The FTP command: chmod 644 filename would enable:
The File owner to Read and Write that file.
The File Group to Read that file.
The File User to Read that file.
A practical example of changing the mode of the file /EMU/plugins.conf to its working mode from your PC in Command mode is:
With the prompt: C:\>, type:
Telnet 192.168.1.10 <ENTER> - assuming that is your receivers IP address, if not change to yours.
Also <ENTER> = the Enter or Carriage Return command.
The screen will respond:
MMP login:
Type: root<ENTER>
The screen will respond:
Password:
Type your receivers password<ENTER>
The screen will respond:
[MMP[~]
Type:
chmod 644 /EMU/bin/plugins.conf <ENTER>.
If the command has been actioned, the screen will respond:
[MMP[~]
-------------------------------------------------
The chmod command is automated with utilities like FileZilla, DCC etc enabeling easy use.