Changeset 31


Ignore:
Timestamp:
03/02/09 23:15:23 (5 years ago)
Author:
mdious
Message:
  • make clean_ids.
  • starting to add FTP content.
Location:
community/trunk/Managing_Confined_Services/en-US
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • community/trunk/Managing_Confined_Services/en-US/Apache_HTTP_Server.xml

    r30 r31  
    196196                        </para> 
    197197                </formalpara> 
    198                 <!--           check man page when doing these..           --> 
     198                <!--            check man page when doing these..            --> 
    199199                <variablelist> 
    200200                        <varlistentry> 
  • community/trunk/Managing_Confined_Services/en-US/Managing_Confined_Services.xml

    r23 r31  
    1010        <xi:include href="Apache_HTTP_Server.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include> 
    1111        <xi:include href="Samba.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include> 
     12        <xi:include href="FTP.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include> 
    1213        <xi:include href="Revision_History.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include> 
    1314        <index /> 
  • community/trunk/Managing_Confined_Services/en-US/Samba.xml

    r30 r31  
    166166                                                SELinux allows Samba to read and write to files labeled with the <computeroutput>samba_share_t</computeroutput> type, as long as Linux permissions and <filename>/etc/samba/smb.conf</filename> allow write access. Run the following command as the root user to add the label change to file-context configuration: 
    167167                                        </para> 
     168                                         
    168169<screen> 
    169170semanage fcontext -a -t samba_share_t "/myshare(/.*)?" 
    170171</screen> 
    171                                 <para> 
    172                                         Run <command>restorecon -R -v /myshare</command> as the root user to apply the label change. 
    173                                 </para> 
     172                                        <para> 
     173                                                Run <command>restorecon -R -v /myshare</command> as the root user to apply the label change. 
     174                                        </para> 
    174175                                </listitem> 
    175176                                <listitem> 
     
    245246                                        </para> 
    246247                                         
    247                                         <screen> 
     248<screen> 
    248249mount //localhost/myshare /test/ -o user=<replaceable>username</replaceable> 
    249                                         </screen> 
     250</screen> 
    250251                                        <para> 
    251252                                                Enter the password for <replaceable>username</replaceable>, which was configured in step 6. 
     
    256257                                                Run <command>ls /test/</command> to view the <filename>file1</filename> file created in step 3: 
    257258                                        </para> 
     259                                         
    258260<screen> 
    259261$ ls /test/ 
     
    263265                        </orderedlist> 
    264266                </section> 
    265                 <section id="lkjasdlkf"> 
     267                 
     268                <section id="sect-Managing_Confined_Services-Configuration_examples-Sharing_a_website"> 
    266269                        <title>Sharing a website</title> 
    267270                        <para> 
     
    269272                        </para> 
    270273                        <para> 
    271                                 The following example creates files for a website in <filename>/var/www/html/</filename>, and then shares that website through Samba, allowing read and write permissions. This example assumes the <package>httpd</package>, <package>samba</package>, <package>samba-common</package>, <package>samba-client</package>, and <package>wget</package> packages are installed: 
     274                                The following example creates a file for a website in <filename>/var/www/html/</filename>, and then shares that file through Samba, allowing read and write permissions. This example assumes the <package>httpd</package>, <package>samba</package>, <package>samba-common</package>, <package>samba-client</package>, and <package>wget</package> packages are installed: 
    272275                        </para> 
    273276                        <orderedlist> 
     
    276279                                                As the root user, create a <filename>/var/www/html/file1.html</filename> file. Copy and paste the following content into <filename>/var/www/html/file1.html</filename>: 
    277280                                        </para> 
     281                                         
    278282<screen> 
    279283&lt;html&gt; 
     
    286290                                                Run <command>ls -Z /var/www/html/file1.html</command> to view the SELinux context of <filename>file1.html</filename>: 
    287291                                        </para> 
     292                                         
    288293<screen> 
    289294$ ls -Z /var/www/html/file1.html 
     
    298303                                                Run <command>service httpd start</command> as the root user to start the Apache HTTP Server: 
    299304                                        </para> 
     305                                         
    300306<screen> 
    301307service httpd start 
     
    307313                                                Change into a directory your user has write access to, and run the <command>wget http://localhost/file1.html</command> command. Unless there are changes to the default configuration, this command succeeds: 
    308314                                        </para> 
     315                                         
    309316<screen> 
    310317$ wget http://localhost/file1.html 
     
    314321HTTP request sent, awaiting response... 200 OK 
    315322Length: 84 [text/html] 
    316 Saving to: `file1.html.1' 
     323Saving to: `file1.html.1&#39; 
    317324 
    318325100%[================================================================== 
    319 =================================================>] 84          --.-K/s   in 0s       
    320  
    321 2009-03-02 16:32:01 (563 KB/s) - `file1.html.1' saved [84/84] 
    322  
     326=================================================&gt;] 84          --.-K/s   in 0s       
     327 
     3282009-03-02 16:32:01 (563 KB/s) - `file1.html.1&#39; saved [84/84] 
    323329</screen> 
    324330                                </listitem> 
    325331                        </orderedlist> 
    326332                </section> 
     333 
    327334        </section> 
     335 
    328336</chapter> 
    329337 
Note: See TracChangeset for help on using the changeset viewer.