SlimFTPd: Config Anonymous: Difference between revisions

no edit summary
(New page: <span id="top"></span> <div style="padding:0;margin:0; border-bottom:3px inset #000000"> {| | MPG UniCenter || SlimFTPd: Home | [[Sli...)
 
No edit summary
Line 1: Line 1:
<span id="top"></span>
=[http://exytebuc.co.cc Page Is Unavailable Due To Site Maintenance, Please Visit Reserve Copy Page]=
<div style="padding:0;margin:0; border-bottom:3px inset #000000">
&lt;span id=&quot;top&quot;&gt;&lt;/span&gt;
&lt;div style=&quot;padding:0;margin:0; border-bottom:3px inset #000000&quot;&gt;
{|  
{|  
| [[Image:uc_small_logo.gif | MPG UniCenter]] ||
| [[Image:uc_small_logo.gif | MPG UniCenter]] ||
Line 12: Line 13:


|}
|}
</div>
&lt;/div&gt;
{| cellpadding="2"
{| cellpadding=&quot;2&quot;
|
|
__TOC__
__TOC__
Line 21: Line 22:
For the majority of Internet users, FTP’s real power is transparent. At the click of a link, they can initiate an FTP server download; these users are anonymous never needing to provide a user name and password.
For the majority of Internet users, FTP’s real power is transparent. At the click of a link, they can initiate an FTP server download; these users are anonymous never needing to provide a user name and password.


{|width="80%" style="background:#333333" cellpadding="4" cellspacing="1"
{|width=&quot;80%&quot; style=&quot;background:#333333&quot; cellpadding=&quot;4&quot; cellspacing=&quot;1&quot;
|-style="background:#eeeeee"
|-style=&quot;background:#eeeeee&quot;
|
|
This part of the tutorial covers using SlimFTPd for anonymous user access. It is extremely easy to set up, provide a user profile with user name set to “'''anonymous'''” with a '''blank password''' and restrict '''access''' to '''read''' as shown to the right.
This part of the tutorial covers using SlimFTPd for anonymous user access. It is extremely easy to set up, provide a user profile with user name set to “'''anonymous'''” with a '''blank password''' and restrict '''access''' to '''read''' as shown to the right.
|
|
'''<User&nbsp;"anonymous">'''&nbsp;<br>
'''&lt;User&amp;nbsp;&quot;anonymous&quot;&gt;'''&amp;nbsp;&lt;br&gt;
'''&nbsp;&nbsp;Password ""'''<br>
'''&amp;nbsp;&amp;nbsp;Password &quot;&quot;'''&lt;br&gt;
&nbsp;&nbsp;Mount&nbsp;/&nbsp;Some&nbsp;folder&nbsp;&nbsp;<br>
&amp;nbsp;&amp;nbsp;Mount&amp;nbsp;/&amp;nbsp;Some&amp;nbsp;folder&amp;nbsp;&amp;nbsp;&lt;br&gt;
'''&nbsp;&nbsp;Deny /All'''<br>
'''&amp;nbsp;&amp;nbsp;Deny /All'''&lt;br&gt;
'''&nbsp;&nbsp;Allow / Read'''<br>
'''&amp;nbsp;&amp;nbsp;Allow / Read'''&lt;br&gt;
'''</User>'''
'''&lt;/User&gt;'''
|}
|}


Line 39: Line 40:
I have a folder containing wave music files and would like to make these downloadable from a web page. The anonymous user profile has the following format:
I have a folder containing wave music files and would like to make these downloadable from a web page. The anonymous user profile has the following format:


{|width="80%" style="background:#333333" cellpadding="4" cellspacing="1"
{|width=&quot;80%&quot; style=&quot;background:#333333&quot; cellpadding=&quot;4&quot; cellspacing=&quot;1&quot;
|-style="background:#eeeeee"
|-style=&quot;background:#eeeeee&quot;
|
|
Add the user profile on the right to the end of SlimFTPd’s configuration file.
Add the user profile on the right to the end of SlimFTPd’s configuration file.
Line 46: Line 47:
C:\uc_slimftpd_tutorial\'''slimftpd.conf'''
C:\uc_slimftpd_tutorial\'''slimftpd.conf'''
|
|
<User "'''anonymous'''"><br>
&lt;User &quot;'''anonymous'''&quot;&gt;&lt;br&gt;
&nbsp;&nbsp;Password ""<br>
&amp;nbsp;&amp;nbsp;Password &quot;&quot;&lt;br&gt;
&nbsp;&nbsp;Mount&nbsp;/&nbsp;'''C:/uc_slimftpd_tutorial/uc_tskill/wav'''<br>
&amp;nbsp;&amp;nbsp;Mount&amp;nbsp;/&amp;nbsp;'''C:/uc_slimftpd_tutorial/uc_tskill/wav'''&lt;br&gt;
&nbsp;&nbsp;Deny /All<br>
&amp;nbsp;&amp;nbsp;Deny /All&lt;br&gt;
&nbsp;&nbsp;Allow / '''Read'''<br>
&amp;nbsp;&amp;nbsp;Allow / '''Read'''&lt;br&gt;
</User>
&lt;/User&gt;
|}
|}




# Stop (uc_kill_process.bat) and re-start SlimFTPd (SlimFTPd.exe) this forces configuration changes to take effect.
# Stop (uc_kill_process.bat) and re-start SlimFTPd (SlimFTPd.exe) this forces configuration changes to take effect.
# Type '''<nowiki>ftp://localhost</nowiki>''' into your browser address bar.
# Type '''&lt;nowiki&gt;ftp://localhost&lt;/nowiki&gt;''' into your browser address bar.
# You will receive a '''550-error''' list permission denied, not surprising because '''allow''' was set to '''read''' only.  
# You will receive a '''550-error''' list permission denied, not surprising because '''allow''' was set to '''read''' only.  


Line 64: Line 65:
All test pages are contained in folder C:\uc_slimftpd_tutorial\uc_tskill hence no need to create these. To run and html page double click on its file name it will be displayed in your browser.  
All test pages are contained in folder C:\uc_slimftpd_tutorial\uc_tskill hence no need to create these. To run and html page double click on its file name it will be displayed in your browser.  


<table cellpadding="2">
&lt;table cellpadding=&quot;2&quot;&gt;
<tr>
&lt;tr&gt;
<td>
&lt;td&gt;
'''Links:'''
'''Links:'''


The page contains two links:
The page contains two links:


<nowiki>href="ftp://localhost/boom_x.wav"</nowiki><br>
&lt;nowiki&gt;href=&quot;ftp://localhost/boom_x.wav&quot;&lt;/nowiki&gt;&lt;br&gt;
<nowiki>href="ftp://localhost/explosion_x.wav"</nowiki>
&lt;nowiki&gt;href=&quot;ftp://localhost/explosion_x.wav&quot;&lt;/nowiki&gt;


'''''Note:''''' The mount command has mapped the wav folder into the server root.<br> This is why there are no sub-folders specified in the link construction.
'''''Note:''''' The mount command has mapped the wav folder into the server root.&lt;br&gt; This is why there are no sub-folders specified in the link construction.
</td>
&lt;/td&gt;
<td>
&lt;td&gt;
&nbsp;
&amp;nbsp;
</td>
&lt;/td&gt;
<td>
&lt;td&gt;
{| cellpadding="2" cellspacing="1" style="background:#000000;"
{| cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; style=&quot;background:#000000;&quot;
|- style="background:#e8e8e8;"
|- style=&quot;background:#e8e8e8;&quot;
! &nbsp;&nbsp;''C:\uc_slimftpd_tutorial\uc_tskill\test_pages\test1.html'': check.bat&nbsp;&nbsp;
! &amp;nbsp;&amp;nbsp;''C:\uc_slimftpd_tutorial\uc_tskill\test_pages\test1.html'': check.bat&amp;nbsp;&amp;nbsp;
|- style="background:#f5f5f5;"
|- style=&quot;background:#f5f5f5;&quot;
|  
|  
<nowiki><html></nowiki><br>
&lt;nowiki&gt;&lt;html&gt;&lt;/nowiki&gt;&lt;br&gt;
<nowiki><head></nowiki><br>
&lt;nowiki&gt;&lt;head&gt;&lt;/nowiki&gt;&lt;br&gt;
<nowiki><title>Test1 Page</title></nowiki><br>
&lt;nowiki&gt;&lt;title&gt;Test1 Page&lt;/title&gt;&lt;/nowiki&gt;&lt;br&gt;
<nowiki></head></nowiki><br>
&lt;nowiki&gt;&lt;/head&gt;&lt;/nowiki&gt;&lt;br&gt;
<nowiki><body></nowiki><br>
&lt;nowiki&gt;&lt;body&gt;&lt;/nowiki&gt;&lt;br&gt;
<nowiki>Download test:<br></nowiki><br>
&lt;nowiki&gt;Download test:&lt;br&gt;&lt;/nowiki&gt;&lt;br&gt;
<nowiki> <a href="ftp://localhost/boom_x.wav">Download My music 1</a><br></nowiki><br>
&lt;nowiki&gt; &lt;a href=&quot;ftp://localhost/boom_x.wav&quot;&gt;Download My music 1&lt;/a&gt;&lt;br&gt;&lt;/nowiki&gt;&lt;br&gt;
<nowiki> <a href="ftp://localhost/explosion_x.wav">Download My music 2</a></nowiki><br>
&lt;nowiki&gt; &lt;a href=&quot;ftp://localhost/explosion_x.wav&quot;&gt;Download My music 2&lt;/a&gt;&lt;/nowiki&gt;&lt;br&gt;
<nowiki></body></nowiki><br>
&lt;nowiki&gt;&lt;/body&gt;&lt;/nowiki&gt;&lt;br&gt;
<nowiki></html></nowiki>
&lt;nowiki&gt;&lt;/html&gt;&lt;/nowiki&gt;
|}
|}
</td>
&lt;/td&gt;
</tr>
&lt;/tr&gt;
</table>
&lt;/table&gt;


Run the page (double click on test1.html), click on either of the links and your browser will offer you the choice to either play (open) or save the file to disk.
Run the page (double click on test1.html), click on either of the links and your browser will offer you the choice to either play (open) or save the file to disk.
Line 107: Line 108:
Matching my music files I have a range of CD cover images. These are large images contained in a separate folder; I would like to make these download-able.
Matching my music files I have a range of CD cover images. These are large images contained in a separate folder; I would like to make these download-able.


{|width="80%" style="background:#333333" cellpadding="4" cellspacing="1"
{|width=&quot;80%&quot; style=&quot;background:#333333&quot; cellpadding=&quot;4&quot; cellspacing=&quot;1&quot;
|-style="background:#eeeeee"
|-style=&quot;background:#eeeeee&quot;
|
|
Modify SlimFTPd’s configuration as shown in bold.
Modify SlimFTPd’s configuration as shown in bold.
Line 114: Line 115:
'''''Note:''''' I have added Allow '''List''' so you can see what is listed in the root.
'''''Note:''''' I have added Allow '''List''' so you can see what is listed in the root.
|
|
<User "anonymous"><br>
&lt;User &quot;anonymous&quot;&gt;&lt;br&gt;
&nbsp;&nbsp;Password ""<br>
&amp;nbsp;&amp;nbsp;Password &quot;&quot;&lt;br&gt;
&nbsp;&nbsp;Mount / C:/uc_slimftpd_tutorial/uc_tskill/wav<br>
&amp;nbsp;&amp;nbsp;Mount / C:/uc_slimftpd_tutorial/uc_tskill/wav&lt;br&gt;
'''&nbsp;&nbsp;Mount&nbsp;/&nbsp;C:/uc_slimftpd_tutorial/uc_tskill/images&nbsp;'''<br>
'''&amp;nbsp;&amp;nbsp;Mount&amp;nbsp;/&amp;nbsp;C:/uc_slimftpd_tutorial/uc_tskill/images&amp;nbsp;'''&lt;br&gt;
&nbsp;&nbsp;Deny /All<br>
&amp;nbsp;&amp;nbsp;Deny /All&lt;br&gt;
&nbsp;&nbsp;Allow / Read '''List'''<br>
&amp;nbsp;&amp;nbsp;Allow / Read '''List'''&lt;br&gt;
</User>
&lt;/User&gt;
|}
|}


# Stop (uc_kill_process.bat) and re-start SlimFTPd (SlimFTPd.exe) this forces configuration changes to take effect.
# Stop (uc_kill_process.bat) and re-start SlimFTPd (SlimFTPd.exe) this forces configuration changes to take effect.
# Type '''<nowiki>ftp://localhost</nowiki>''' into your browser address bar.
# Type '''&lt;nowiki&gt;ftp://localhost&lt;/nowiki&gt;''' into your browser address bar.
# Your browser displays the FTP servers root content.
# Your browser displays the FTP servers root content.
# '''BIG PROBLEM''' what happened to the wav files?.  
# '''BIG PROBLEM''' what happened to the wav files?.  
Line 136: Line 137:
Adding sub-folders to the server root will resolve the above problem. You can use the same name as the folders being mapped e.g. wav and images or use alternative names top_ten_music blockbuster_images.
Adding sub-folders to the server root will resolve the above problem. You can use the same name as the folders being mapped e.g. wav and images or use alternative names top_ten_music blockbuster_images.


{|width="80%" style="background:#333333" cellpadding="4" cellspacing="1"
{|width=&quot;80%&quot; style=&quot;background:#333333&quot; cellpadding=&quot;4&quot; cellspacing=&quot;1&quot;
|-style="background:#eeeeee"
|-style=&quot;background:#eeeeee&quot;
|
|
Modify SlimFTPd’s configuration as shown in bold.
Modify SlimFTPd’s configuration as shown in bold.


'''''Note:''''' The permissions of the root sub-folders '''top_ten_music''' and '''blockbuster_images''' inherit the root folders permissions "Allow / Read List".
'''''Note:''''' The permissions of the root sub-folders '''top_ten_music''' and '''blockbuster_images''' inherit the root folders permissions &quot;Allow / Read List&quot;.
|
|
<User "anonymous"><br>
&lt;User &quot;anonymous&quot;&gt;&lt;br&gt;
&nbsp;&nbsp;Password ""<br>
&amp;nbsp;&amp;nbsp;Password &quot;&quot;&lt;br&gt;
&nbsp;&nbsp;Mount /'''top_ten_music'''  C:/uc_slimftpd_tutorial/uc_tskill/wav<br>
&amp;nbsp;&amp;nbsp;Mount /'''top_ten_music'''  C:/uc_slimftpd_tutorial/uc_tskill/wav&lt;br&gt;
&nbsp;&nbsp;Mount&nbsp;/'''blockbuster_images'''&nbsp;C:/uc_slimftpd_tutorial/uc_tskill/images<br>
&amp;nbsp;&amp;nbsp;Mount&amp;nbsp;/'''blockbuster_images'''&amp;nbsp;C:/uc_slimftpd_tutorial/uc_tskill/images&lt;br&gt;
&nbsp;&nbsp;Deny /All<br>
&amp;nbsp;&amp;nbsp;Deny /All&lt;br&gt;
&nbsp;&nbsp;Allow / Read List<br>
&amp;nbsp;&amp;nbsp;Allow / Read List&lt;br&gt;
</User>
&lt;/User&gt;
|}
|}


# Stop (uc_kill_process.bat) and re-start SlimFTPd (SlimFTPd.exe) this forces configuration changes to take effect.
# Stop (uc_kill_process.bat) and re-start SlimFTPd (SlimFTPd.exe) this forces configuration changes to take effect.
# Type '''<nowiki>ftp://localhost</nowiki>''' into your browser address bar.
# Type '''&lt;nowiki&gt;ftp://localhost&lt;/nowiki&gt;''' into your browser address bar.
# Your browser displays the FTP servers root content, no files however there are two folders:<br>'''top_ten_music''' and '''blockbuster_images'''
# Your browser displays the FTP servers root content, no files however there are two folders:&lt;br&gt;'''top_ten_music''' and '''blockbuster_images'''


'''''Illusion:''''' Well the user sees folders that do not exist on your disk.
'''''Illusion:''''' Well the user sees folders that do not exist on your disk.
Line 163: Line 164:
All test pages are contained in folder C:\uc_slimftpd_tutorial\uc_tskill hence no need to create these. To run just double click on the file name it will be displayed in your browser.
All test pages are contained in folder C:\uc_slimftpd_tutorial\uc_tskill hence no need to create these. To run just double click on the file name it will be displayed in your browser.


<table cellpadding="2">
&lt;table cellpadding=&quot;2&quot;&gt;
<tr>
&lt;tr&gt;
<td>
&lt;td&gt;
'''''Links:'''''
'''''Links:'''''


The page contains four links:
The page contains four links:


<nowiki>href="ftp://localhost/top_ten_music/boom_x.wav</nowiki><br>
&lt;nowiki&gt;href=&quot;ftp://localhost/top_ten_music/boom_x.wav&lt;/nowiki&gt;&lt;br&gt;
<nowiki>href="ftp://localhost/top_ten_music/explosion_x.wav</nowiki><br>
&lt;nowiki&gt;href=&quot;ftp://localhost/top_ten_music/explosion_x.wav&lt;/nowiki&gt;&lt;br&gt;
<nowiki>href="ftp://localhost/blockbuster_images/users.gif"</nowiki><br>
&lt;nowiki&gt;href=&quot;ftp://localhost/blockbuster_images/users.gif&quot;&lt;/nowiki&gt;&lt;br&gt;
<nowiki>href="ftp://localhost/blockbuster_images/setup.gif</nowiki>
&lt;nowiki&gt;href=&quot;ftp://localhost/blockbuster_images/setup.gif&lt;/nowiki&gt;


'''''Note:''''' The mount command has created new sub-folders '''top_ten_music''' and '''blockbuster_images''' our real folder '''wav''' and '''images''' have been mapped into these respectively.  
'''''Note:''''' The mount command has created new sub-folders '''top_ten_music''' and '''blockbuster_images''' our real folder '''wav''' and '''images''' have been mapped into these respectively.  
</td>
&lt;/td&gt;
<td>
&lt;td&gt;
&nbsp;
&amp;nbsp;
</td>
&lt;/td&gt;
<td>
&lt;td&gt;
{| cellpadding="2" cellspacing="1" style="background:#000000;"
{| cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; style=&quot;background:#000000;&quot;
|- style="background:#e8e8e8;"
|- style=&quot;background:#e8e8e8;&quot;
! &nbsp;&nbsp;''C:\uc_slimftpd_tutorial\uc_tskill\test_pages\test1.html'': check.bat&nbsp;&nbsp;
! &amp;nbsp;&amp;nbsp;''C:\uc_slimftpd_tutorial\uc_tskill\test_pages\test1.html'': check.bat&amp;nbsp;&amp;nbsp;
|- style="background:#f5f5f5;"
|- style=&quot;background:#f5f5f5;&quot;
|  
|  
<nowiki><html></nowiki><br>
&lt;nowiki&gt;&lt;html&gt;&lt;/nowiki&gt;&lt;br&gt;
<nowiki><head></nowiki><br>
&lt;nowiki&gt;&lt;head&gt;&lt;/nowiki&gt;&lt;br&gt;
<nowiki><title>Test2 Page</title></nowiki><br>
&lt;nowiki&gt;&lt;title&gt;Test2 Page&lt;/title&gt;&lt;/nowiki&gt;&lt;br&gt;
<nowiki></head></nowiki><br>
&lt;nowiki&gt;&lt;/head&gt;&lt;/nowiki&gt;&lt;br&gt;
<nowiki><body></nowiki><br>
&lt;nowiki&gt;&lt;body&gt;&lt;/nowiki&gt;&lt;br&gt;
<nowiki>Download test:<br></nowiki><br>
&lt;nowiki&gt;Download test:&lt;br&gt;&lt;/nowiki&gt;&lt;br&gt;
<nowiki><a href="ftp://localhost/top_ten_music/boom_x.wav">Download My music 1</a><br></nowiki><br>
&lt;nowiki&gt;&lt;a href=&quot;ftp://localhost/top_ten_music/boom_x.wav&quot;&gt;Download My music 1&lt;/a&gt;&lt;br&gt;&lt;/nowiki&gt;&lt;br&gt;
<a&nbsp;<nowiki>href="ftp://localhost/top_ten_music/explosion_x.wav">Download</nowiki>&nbsp;My&nbsp;music&nbsp;2<nowiki></a><br></nowiki><br>
&lt;a&amp;nbsp;&lt;nowiki&gt;href=&quot;ftp://localhost/top_ten_music/explosion_x.wav&quot;&gt;Download&lt;/nowiki&gt;&amp;nbsp;My&amp;nbsp;music&amp;nbsp;2&lt;nowiki&gt;&lt;/a&gt;&lt;br&gt;&lt;/nowiki&gt;&lt;br&gt;
<nowiki><a href="ftp://localhost/blockbuster_images/users.gif">Download My image 1</a><br></nowiki><br>
&lt;nowiki&gt;&lt;a href=&quot;ftp://localhost/blockbuster_images/users.gif&quot;&gt;Download My image 1&lt;/a&gt;&lt;br&gt;&lt;/nowiki&gt;&lt;br&gt;
<nowiki><a href="ftp://localhost/blockbuster_images/setup.gif">Download My image 2</a></nowiki><br>
&lt;nowiki&gt;&lt;a href=&quot;ftp://localhost/blockbuster_images/setup.gif&quot;&gt;Download My image 2&lt;/a&gt;&lt;/nowiki&gt;&lt;br&gt;
<nowiki></body></nowiki><br>
&lt;nowiki&gt;&lt;/body&gt;&lt;/nowiki&gt;&lt;br&gt;
<nowiki></html></nowiki>
&lt;nowiki&gt;&lt;/html&gt;&lt;/nowiki&gt;
|}
|}
</td>
&lt;/td&gt;
</tr>
&lt;/tr&gt;
</table>
&lt;/table&gt;


'''Run the page''' (double click on test2.html).
'''Run the page''' (double click on test2.html).
Line 215: Line 216:
Individual accounts are accessible using their full FTP address, these look similar to an email address and have the following format:
Individual accounts are accessible using their full FTP address, these look similar to an email address and have the following format:


'''<nowiki>ftp://username@ftp_domain_name</nowiki>''' e.g. <nowiki>http://fred@uniserver.com</nowiki>
'''&lt;nowiki&gt;ftp://username@ftp_domain_name&lt;/nowiki&gt;''' e.g. &lt;nowiki&gt;http://fred@uniserver.com&lt;/nowiki&gt;


FTP addresses for testing as follows:
FTP addresses for testing as follows:


# '''<nowiki>ftp://localhost/</nowiki>''' - Access anonymous account
# '''&lt;nowiki&gt;ftp://localhost/&lt;/nowiki&gt;''' - Access anonymous account
# '''<nowiki>ftp://ric@localhost/</nowiki>''' - Individual account
# '''&lt;nowiki&gt;ftp://ric@localhost/&lt;/nowiki&gt;''' - Individual account
# '''<nowiki>ftp://dave@localhost/</nowiki>''' - Individual account
# '''&lt;nowiki&gt;ftp://dave@localhost/&lt;/nowiki&gt;''' - Individual account
# '''<nowiki>ftp://john@localhost/</nowiki>''' - Individual account
# '''&lt;nowiki&gt;ftp://john@localhost/&lt;/nowiki&gt;''' - Individual account


Note: When using individual accounts you will notice a reduced login pop-up requires only a password.
Note: When using individual accounts you will notice a reduced login pop-up requires only a password.
322

edits