<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Enterprise Mastermind &#187; client</title>
	<atom:link href="http://www.enterprisemastermind.com/tag/client/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.enterprisemastermind.com</link>
	<description>Getting your business online and being successful</description>
	<lastBuildDate>Sun, 23 May 2010 22:03:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>FTP and File Permissions Explained &#8211; Part 2</title>
		<link>http://www.enterprisemastermind.com/ftp-and-file-permissions-explained-part-2/</link>
		<comments>http://www.enterprisemastermind.com/ftp-and-file-permissions-explained-part-2/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 01:01:19 +0000</pubDate>
		<dc:creator>Ant Harper</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[CHMOD]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[file permissions]]></category>
		<category><![CDATA[file transfer protocol]]></category>
		<category><![CDATA[FTP]]></category>

		<guid isPermaLink="false">http://www.enterprisemastermind.com/?p=492</guid>
		<description><![CDATA[Please note that the following notes on FTP apply to Unix/Linux servers only. Windows servers use their own form of file permissions which cannot be set by FTP Clients. Moving files From &#8216;FTP and File Permissions Explained &#8211; Part 1&#8216; you should now know how to connect to your webspace with an FTP Client, in [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-474" title="typewriter-crop" src="../wp-content/uploads/2008/10/typewriter-crop.jpg" alt="" width="500" height="158" /></p>
<p><em><strong>Please note</strong> that the following notes on FTP apply to Unix/Linux servers only. Windows servers use their own form of file permissions which cannot be set by FTP Clients.</em></p>
<h2>Moving files</h2>
<p>From <a href="http://www.enterprisemastermind.com/ftp-and-file-permissions-explained-part-1/">&#8216;FTP and File Permissions Explained &#8211; Part 1</a>&#8216; you should now know how to connect to your webspace with an FTP Client, in this case Filezilla. You can now use a file from your hard drive to test the connection, a normal HTML file would be best as you can then access this with a web browser. Remember, once uploaded to your root folder the file will now be accessible via a web address such as http://www.yourdomain/directory/uploaded-file.html. This file will also be accessible by anyone with access to the internet.</p>
<p>The screenshot below shows a directory on my computer (A) and the files on the remote server (B). To move a file/folder simply browse to where your file/folder is on your computer (A) then right click and click &#8216;Upload&#8217; or drag and drop the file to where you want it on the server (B).</p>
<p><img class="alignnone size-full wp-image-493" title="draganddrop" src="http://www.enterprisemastermind.com/wp-content/uploads/2008/11/draganddrop.jpg" alt="" width="500" height="325" /></p>
<p>Note that the permissions of the files and directories are also listed in window (B) in text notation form i.e. drwxr-xr-x (more about this later).</p>
<h2>What are file permissions?</h2>
<p>File permissions are there to protect files and to tell your server how to handle those files. You can set your file permissions via FTP commands but if you had multiple files and folders that all needed different permissions to be set this would soon become tedious. A much easier way to do this is to use your FTP Client to do the hard work.</p>
<h2>What is CHMOD?</h2>
<p>Changing your file permissions requires something called CHMOD. CHMOD stands for Change Mode which is also a UNIX command and is used both in code and through the command line to change file permissions on directories and files.</p>
<p>For example in PHP it would be used as follows:<br />
<code>chmod("directory/uploaded-file.html", 0777);</code></p>
<p>The numbers used above represent the permissions used on UNIX servers, which are <strong>Read</strong>, <strong>Write</strong> and <strong>Execute</strong>.</p>
<p>These three permission types can then be used on 3 different permission sets, <strong>Owner</strong>, <strong>Group</strong> and <strong>Public</strong>.</p>
<p><strong>Owner</strong> &#8211; usually whoever uploaded the file or who created it<br />
<strong> Group</strong> &#8211; other registered users on the server or common resources set up to run under this permission set<br />
<strong> Public</strong> &#8211; anyone with browser access to the webspace</p>
<p>This arrangement of permissions and sets now allows you to allow or deny access depending on whether you want a group to read, write or execute a resource you have set permissions on. For instance you could allow the owner set to read and write to the files, while everyone else (group and public) can only read.</p>
<h2>Setting the file permissions in Filezilla</h2>
<p>To set a file permission in Filezilla is easy. Just browse to the file you wish to change the permission of, right click it and choose &#8216;File attributes&#8217; (what Filezilla calls file permissions). You will then see a window with check boxes which you simply check or uncheck according to the level of permission you wish to grant each permission set. The numeric notation of this permission is given underneath (more about this later).</p>
<p><img class="alignnone size-full wp-image-494" title="permissions1" src="http://www.enterprisemastermind.com/wp-content/uploads/2008/11/permissions1.jpg" alt="" width="500" height="324" /></p>
<p><img class="alignnone size-full wp-image-495" title="permissions2" src="http://www.enterprisemastermind.com/wp-content/uploads/2008/11/permissions2.jpg" alt="" width="500" height="325" /></p>
<h2>Understanding FTP notations</h2>
<p>There are 2 ways to write permissions &#8211; in text form such as -rwxr-xr-x or in number form such as 755. Both of these notions mean exactly the same thing. Confused? Lets try to explain.</p>
<h4>Text Notations</h4>
<p>As mentioned above, Filezilla lists the text notation value of a permission in window (B). Understanding this notation is probably easier than you think and goes as follows:</p>
<p style="padding-left: 30px;"><strong>Example:</strong> drwxr-xr-x</p>
<p>The first character, can either be a &#8216;<span style="color: #000000;"><strong>-</strong></span>&#8216; which denotes a file or a &#8216;<strong><span style="color: #000000;">d</span>&#8216;</strong> which denotes a directory (folder).</p>
<p>The next 9 characters are split into 3 sections. The first three are the owner permissions, the next three are the group permissions and the last three are the public permissions.</p>
<p>So our example is a directory d with owner permissions of <strong>rwx</strong>, group permissions of <strong>r-x</strong> and public permissions of <strong>r-x</strong>.</p>
<p style="padding-left: 30px;"><strong>r </strong>= read<strong><br />
w </strong>=write<strong><br />
x</strong> =execute</p>
<p>Our example therefore has permissions set as follows:</p>
<p>Owner = <strong>rwx</strong> (read,write and execute)<br />
Group = <strong>r-x</strong> (read and execute)<br />
Public = <strong>r-x</strong> (read and execute)</p>
<h4>Number notations</h4>
<p>Probably more commonly seen nowadays are number notations and more than likely you will be asked to run a <strong>CHMOD 755</strong> or similar on a file after installation in order to allow it to work properly, especially if you run PHP based scripts on your website.</p>
<p>A permission of <strong>755</strong> would be exactly the same as the text notation used as an example above, with the owner having read, write and execute permissions whilst the group and public both have read and execute permissions only.</p>
<p>The formula behind these numbers is a little confusing at first but makes sense once you get to grips with it. Basically &#8216;read&#8217; is represented by number <strong>4</strong>, &#8216;write&#8217; is represented by number <strong>2</strong> and &#8216;execute&#8217; is represented by number <strong>1</strong>. A combination of permissions will result in different numbers for each of the 3 digits based upon their totals.</p>
<p>So a permission of read (<strong>4</strong>) and write (<strong>2</strong>) is represented by the number <strong>6</strong>.<br />
A permission of read (<strong>4</strong>) and execute (<strong>1</strong>) is represented by the number <strong>5</strong>.<br />
Read (<strong>4</strong>), write (<strong>2</strong>) and execute (<strong>1</strong>) is represented by the number <strong>7</strong> and so on.</p>
<p>To summarise, a permission of <strong>634</strong> would mean:<br />
Owner: <strong>6</strong> (read and write <strong>4+2</strong>)<br />
Group: <strong>3</strong> (write and execute <strong>2+1</strong>)<br />
Public: <strong>4</strong> (read <strong>4</strong>)</p>
<p>Here is a table to illustrate numbers, their permissions and their corresponding text notation.</p>
<table style="height: 163px;" border="0" cellspacing="0" cellpadding="0" width="434">
<tbody>
<tr>
<td width="73" align="center" valign="top"><strong>Number</strong></td>
<td width="132" valign="top"><strong>Permission</strong></td>
<td width="126" align="center" valign="top"><strong>Text notation</strong></td>
</tr>
<tr>
<td width="73" align="center" valign="top">0</td>
<td width="132" valign="top">None</td>
<td width="126" align="center" valign="top">&#8212;</td>
</tr>
<tr>
<td width="73" align="center" valign="top">1</td>
<td width="132" valign="top">Execute</td>
<td width="126" align="center" valign="top">&#8211;x</td>
</tr>
<tr>
<td width="73" align="center" valign="top">2</td>
<td width="132" valign="top">Write</td>
<td width="126" align="center" valign="top">-w-</td>
</tr>
<tr>
<td width="73" align="center" valign="top">3</td>
<td width="132" valign="top">Write, execute</td>
<td width="126" align="center" valign="top">-wx</td>
</tr>
<tr>
<td width="73" align="center" valign="top">4</td>
<td width="132" valign="top">Read</td>
<td width="126" align="center" valign="top">r&#8211;</td>
</tr>
<tr>
<td width="73" align="center" valign="top">5</td>
<td width="132" valign="top">Read, execute</td>
<td width="126" align="center" valign="top">r-x</td>
</tr>
<tr>
<td width="73" align="center" valign="top">6</td>
<td width="132" valign="top">Read, write</td>
<td width="126" align="center" valign="top">rw-</td>
</tr>
<tr>
<td width="73" align="center" valign="top">7</td>
<td width="132" valign="top">Read, write, execute</td>
<td width="126" align="center" valign="top">rwx</td>
</tr>
</tbody>
</table>
<p></br><br />
All too often a failed script installation or broken website is down to a permissions problem and I hope that this post has helped those of you who couldn&#8217;t quite grasp this sometimes confusing subject and the knowledge of how file permissions work will give you more control over your websites and script installation in future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.enterprisemastermind.com/ftp-and-file-permissions-explained-part-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FTP and File Permissions Explained &#8211; Part 1</title>
		<link>http://www.enterprisemastermind.com/ftp-and-file-permissions-explained-part-1/</link>
		<comments>http://www.enterprisemastermind.com/ftp-and-file-permissions-explained-part-1/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 20:58:06 +0000</pubDate>
		<dc:creator>Ant Harper</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[downloading]]></category>
		<category><![CDATA[file transfer protocol]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[uploading]]></category>

		<guid isPermaLink="false">http://www.enterprisemastermind.com/?p=472</guid>
		<description><![CDATA[If you are anything like I was when I first got interested in the internet, you will be wondering what FTP is and what role it plays in getting data to your webserver. This tutorial aims to bridge that particular information gap, and will explain the much misunderstood fundamentals of FTP and how file permissions [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-474" title="typewriter-crop" src="http://www.enterprisemastermind.com/wp-content/uploads/2008/10/typewriter-crop.jpg" alt="" width="500" height="158" /></p>
<p>If you are anything like I was when I first got interested in the internet, you will be wondering what FTP is and what role it plays in getting data to your webserver. This tutorial aims to bridge that particular information gap, and will explain the much misunderstood fundamentals of FTP and how file permissions affect how a server handles your uploaded data.</p>
<h2>What is FTP?</h2>
<p>FTP or File Transfer Protocol is the format used for computers to send information to each other and to upload files. It enables you to access webspace directly and interact with the server directly. Simply put, it is the way our computers talk with each other and the servers that make up the internet.</p>
<h2>So how do I use FTP?</h2>
<p>In order to connect to another computer to transfer files we need something called an &#8216;FTP Client&#8217; . This is a program specially written in order to simplify the connection process and there are many variations on a theme to choose from, some of which have more features than others. Most are capable of just transferring files to and from the webspace you are connected to, but in order to have useful control over how your files behave on the remote server you will need a client that at the very least lets you alter file permissions.</p>
<p>For the purposes of this particular post I have chosen a fully featured open source FTP client called Filezilla, mainly because it is open source (and free) and because it is cross platform so whether you use a Mac OSX, Windows or Linux you can follow this tutorial.</p>
<p>There are only 3 pieces of information needed to connect to a remote server via FTP: the FTP address, a user name and a password. This will point you to the folder that is set up to be accessed usually called something like &#8216;public_html&#8217;, &#8216;www&#8217;, &#8216;httpdocs&#8217; or similar and is usually the same directory that the domain name is pointing to when typed into a browser.</p>
<p>Download Filezilla here: <a href="http://filezilla.sourceforge.net/" target="_blank">http://filezilla.sourceforge.net/</a></p>
<p>Install the application and connect to your webspace using the quick connect bar at the top of the Filezilla window by entering your FTP server address, username and password. The port number is nothing to worry about in most cases and should default to Port 21. If for any reason you do need to use a different port number, just enter it there.</p>
<p><img class="alignnone size-full wp-image-476" title="filezillagrab1" src="http://www.enterprisemastermind.com/wp-content/uploads/2008/10/filezillagrab1.jpg" alt="" width="500" height="81" /></p>
<p>When you have been connected you will see a list of files and/or folders in your directory listing. If it has connected to a directory outside your viewable directory (your httpdocs/public_html/www folder) you may need to refer back to any documentation or emails you may have received from your hosting company. They should have given you the path to your root directory if not, then phone or email them requesting your public root directory path.</p>
<p>One thing to note is that typing www.yourdomain.com/public_html/ will not access your websites directory because www.yourdomain.com already points directly at the correct root folder and therefore you do not need to add the subdirectory.</p>
<h3>Go to Part 2 : <a href="http://www.enterprisemastermind.com/ftp-and-file-permissions-explained-part-2/">Moving Files &amp; File Permissions</a></h3>
]]></content:encoded>
			<wfw:commentRss>http://www.enterprisemastermind.com/ftp-and-file-permissions-explained-part-1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
