﻿<?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>Linux操作系统与应用 &#8211; 学术创新中心</title>
	<atom:link href="https://www.leexinghai.com/aic/category/gcc/1stls/linuxapp/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.leexinghai.com/aic</link>
	<description>Academic Innovation Center</description>
	<lastBuildDate>Tue, 27 Dec 2022 01:37:46 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.leexinghai.com/aic/wp-content/uploads/2025/08/cropped-徽标名称-32x32.jpg</url>
	<title>Linux操作系统与应用 &#8211; 学术创新中心</title>
	<link>https://www.leexinghai.com/aic</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>R21227-《Linux操作系统与应用》考查内容及参考案例</title>
		<link>https://www.leexinghai.com/aic/k21214-%e3%80%8alinux%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e4%b8%8e%e5%ba%94%e7%94%a8%e3%80%8b%e8%80%83%e6%9f%a5%e5%86%85%e5%ae%b9%e5%8f%8a%e8%af%84%e5%88%86%e6%a0%87%e5%87%86/</link>
					<comments>https://www.leexinghai.com/aic/k21214-%e3%80%8alinux%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e4%b8%8e%e5%ba%94%e7%94%a8%e3%80%8b%e8%80%83%e6%9f%a5%e5%86%85%e5%ae%b9%e5%8f%8a%e8%af%84%e5%88%86%e6%a0%87%e5%87%86/#respond</comments>
		
		<dc:creator><![CDATA[李星海]]></dc:creator>
		<pubDate>Tue, 27 Dec 2022 01:37:46 +0000</pubDate>
				<category><![CDATA[Linux操作系统与应用]]></category>
		<guid isPermaLink="false">https://aic.leexinghai.com/?p=1648</guid>

					<description><![CDATA[太长不看版：ABC选个题写论文，不少于3500字。 A. 题目：论Linux操作系统中根用户的授权方式之不同  [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>太长不看版：ABC选个题写论文，不少于3500字。</p>



<h2 class="wp-block-heading"><strong>A. 题目：论Linux操作系统中根用户的授权方式之不同</strong></h2>



<p><strong>要求：</strong></p>



<p><strong>1.论文内容结构应包含：</strong></p>



<ol class="wp-block-list" type="1">
<li><strong>论文内容结构应包含：</strong></li>



<li><strong>不同授权方式的原理说明;</strong><strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong><strong>（占评分总分的20%）</strong></li>



<li><strong>不同授权方式的比较;</strong><strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong><strong>（占评分总分的20%）</strong></li>



<li><strong>不同授权方式在不同应用场景下的授权举例;</strong><strong> </strong><strong>（占评分总分的30%）</strong></li>



<li><strong>总结陈述;</strong><strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong><strong>（占评分总分的10%）</strong></li>
</ol>



<p><strong>2. </strong><strong>不少于3500</strong><strong>字。</strong></p>



<p><strong>3</strong><strong>．论述清晰，条理清楚，电子文档格式美观。</strong></p>



<p><strong>4.&nbsp; </strong><strong>提交电子版文档即可。</strong></p>



<h2 class="wp-block-heading"><strong>B. </strong><strong>题目：论Linux和Windows两种平台网络服务器配置之不同</strong></h2>



<p><strong>要求：</strong></p>



<p><strong>1.</strong><strong>论文内容结构应包含：</strong></p>



<ol class="wp-block-list">
<li><strong>就已学过的知识内容比较两种平台配置操作方式的不同;</strong><strong>（占评分总分的10%</strong><strong>）</strong></li>



<li><strong>例举某一种服务器在不同平台下工作效率的不同; &nbsp;&nbsp;&nbsp;&nbsp;</strong><strong>（占评分总分的30%</strong><strong>）</strong></li>



<li><strong>c.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </strong><strong>例举某一种服务器在不同平台下维护效率的不同; &nbsp;&nbsp;&nbsp;&nbsp;</strong><strong>（占评分总分的30%</strong><strong>） &nbsp;</strong></li>



<li><strong>总结陈述; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong><strong>（占评分总分的10%</strong><strong>）</strong></li>
</ol>



<p><strong>2. </strong><strong>不少于3500</strong><strong>字。</strong></p>



<p><strong>3</strong><strong>．论述清晰，条理清楚，电子文档格式美观。</strong></p>



<p><strong>4.&nbsp; </strong><strong>提交电子版文档即可。</strong></p>



<h2 class="wp-block-heading"><strong>C. </strong><strong>题目：论Samba服务器和FTP服务器配置之不同</strong></h2>



<p><strong>要求：</strong></p>



<p><strong>1.</strong><strong>论文内容结构应包含：</strong></p>



<ol class="wp-block-list">
<li><strong> </strong><strong>比较两种服务器配置操作方式的不同;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </strong><strong>（占评分总分的10%</strong><strong>）</strong></li>



<li><strong> </strong><strong>例举两种服务器从不同平台访问的工作效率的不同; &nbsp;&nbsp;</strong><strong>（占评分总分的30%</strong><strong>）</strong></li>



<li><strong>例举两种服务器维护效率的不同; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong><strong>（占评分总分的30%</strong><strong>） &nbsp;</strong></li>



<li><strong>总结陈述; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong><strong>（占评分总分的10%</strong><strong>）</strong></li>
</ol>



<p><strong>2. </strong><strong>不少于3500</strong><strong>字。</strong></p>



<p><strong>3</strong><strong>．论述清晰，条理清楚，电子文档格式美观。</strong></p>



<p><strong>4.&nbsp; </strong><strong>提交电子版文档即可。</strong></p>



<h2 class="wp-block-heading"><strong>课程论文设计评分标准：</strong></h2>



<p><strong>1. </strong><strong>课程论文是否能在规定时间内提交。（课程论文完成时间由授课教师自定，占评分总分的10%）</strong></p>



<p><strong>2. </strong><strong>课程论文内容是否符合题目要求。 （占评分总分的80%）</strong></p>



<p><strong>3. </strong><strong>课程论文是否书写规范、清晰。 &nbsp;&nbsp;（占评分总分的10%）</strong></p>



<h2 class="wp-block-heading">参考案例B：</h2>



<p>论文：（手机端可能无法正常预览。可以下载pdf或用电脑/平板进行参考。）</p>



<div data-wp-interactive="core/file" class="wp-block-file"><object data-wp-bind--hidden="!state.hasPdfPreview" hidden class="wp-block-file__embed" data="https://www.leexinghai.com/aic/wp-content/uploads/2022/12/Linux.pdf" type="application/pdf" style="width:100%;height:600px" aria-label="嵌入 Linux"></object><a id="wp-block-file--media-4fe1e208-eb45-4349-a907-5399ae4a9747" href="https://www.leexinghai.com/aic/wp-content/uploads/2022/12/Linux.pdf">Linux</a><a href="https://www.leexinghai.com/aic/wp-content/uploads/2022/12/Linux.pdf" class="wp-block-file__button wp-element-button" download aria-describedby="wp-block-file--media-4fe1e208-eb45-4349-a907-5399ae4a9747">下载</a></div>



<p>24</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.leexinghai.com/aic/k21214-%e3%80%8alinux%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e4%b8%8e%e5%ba%94%e7%94%a8%e3%80%8b%e8%80%83%e6%9f%a5%e5%86%85%e5%ae%b9%e5%8f%8a%e8%af%84%e5%88%86%e6%a0%87%e5%87%86/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>H21201-FTP服务器的匿名FTP</title>
		<link>https://www.leexinghai.com/aic/h21201-ftp%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e5%8c%bf%e5%90%8dftp/</link>
					<comments>https://www.leexinghai.com/aic/h21201-ftp%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e5%8c%bf%e5%90%8dftp/#respond</comments>
		
		<dc:creator><![CDATA[李星海]]></dc:creator>
		<pubDate>Thu, 01 Dec 2022 11:30:38 +0000</pubDate>
				<category><![CDATA[Linux操作系统与应用]]></category>
		<guid isPermaLink="false">https://aic.leexinghai.com/?p=1602</guid>

					<description><![CDATA[一、实验目的 学习掌握配置FTP服务器的匿名FTP模式，使客户端用户访问可以通过匿名的方式访问Linux的FT [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong>一、实验目的</strong><strong></strong></p>



<p>学习掌握配置FTP服务器的匿名FTP模式，使客户端用户访问可以通过匿名的方式访问Linux的FTP服务，从而下载或上传文件。<strong></strong></p>



<p><strong>二、实验仪器设备、试剂或材料</strong><strong></strong></p>



<p>个人PC及VMware</p>



<p><strong>三、实验原理</strong><strong></strong></p>



<p>文件传输协议（File Transfer Protocol，FTP）是用于在网络上进行文件传输的一套标准协议，它工作在 OSI 模型的第七层， TCP 模型的第四层， 即应用层， 使用 TCP 传输而不是 UDP， 客户在和服务器建立连接前要经过一个“三次握手”的过程， 保证客户与服务器之间的连接是可靠的， 而且是面向连接， 为数据传输提供可靠保证。</p>



<p>FTP允许用户以文件操作的方式（如文件的增、删、改、查、传送等）与另一主机相互通信。然而， 用户并不真正登录到自己想要存取的计算机上面而成为完全用户， 可用FTP程序访问远程资源， 实现用户往返传输文件、目录管理以及访问电子邮件等等， 即使双方计算机可能配有不同的操作系统和文件存储方式。</p>



<p><strong>四、实验内容与步骤</strong><strong></strong></p>



<p>1、使用命令mkdir /var/ftp 创建一个ftp文件夹。</p>



<p>2、使用命令chmod 777 /var/ftp给该文件夹授权。</p>



<p>3、使用命令vi /etc/vsftpd/vsftpd.conf编辑ftp配置文件，设置为允许匿名用户访问，允许匿名用户上传文件，允许匿名用户新建文件夹，如图1所示。（注：该配置语法注释符号为“#”，删除预定义好的命令的前面的#即可使命令生效）</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img fetchpriority="high" decoding="async" src="https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-7.png" alt="" class="wp-image-1606" width="705" height="484" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-7.png 865w, https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-7-300x206.png 300w, https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-7-768x527.png 768w" sizes="(max-width: 705px) 100vw, 705px" /><figcaption class="wp-element-caption">图1</figcaption></figure>
</div>


<p><strong>五、实验结果与分析</strong><strong></strong></p>



<p>&nbsp;&nbsp;&nbsp; 1、使用mkdir&nbsp; /var/ftp/pub 在ftp文件夹下面尝试创建一个pub文件夹。</p>



<p>&nbsp;&nbsp;&nbsp; 2、在客户端上使用<a href="ftp://linux的ip地址">ftp://linux的ip地址</a> 访问ftp服务器。使用匿名账户anonymous登录，发现有文件夹，如图2所示。</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" width="836" height="483" src="https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-6.png" alt="" class="wp-image-1605" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-6.png 836w, https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-6-300x173.png 300w, https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-6-768x444.png 768w" sizes="(max-width: 836px) 100vw, 836px" /><figcaption class="wp-element-caption">图2</figcaption></figure>
</div>


<p></p>



<p>&nbsp;&nbsp;&nbsp; 3、尝试上传两个txt文件到ftp，可以正常上传，如图3所示。</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" width="865" height="317" src="https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-5.png" alt="" class="wp-image-1604" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-5.png 865w, https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-5-300x110.png 300w, https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-5-768x281.png 768w" sizes="(max-width: 865px) 100vw, 865px" /><figcaption class="wp-element-caption">图3</figcaption></figure>
</div>


<p>&nbsp;&nbsp;&nbsp; 4、在Linux中发现文件被正常上传了，如图4所示。</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="865" height="622" src="https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-4.png" alt="" class="wp-image-1603" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-4.png 865w, https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-4-300x216.png 300w, https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-4-768x552.png 768w" sizes="auto, (max-width: 865px) 100vw, 865px" /><figcaption class="wp-element-caption">图4</figcaption></figure>
</div>


<p><strong>六、结论与体会</strong><strong></strong></p>



<p>掌握配置FTP服务器的匿名FTP模式，使客户端用户访问通过匿名的方式访问Linux的FTP服务进行下载或上传文件的操作。<strong></strong></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.leexinghai.com/aic/h21201-ftp%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e5%8c%bf%e5%90%8dftp/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>H21201D-Web服务器的配置用户个人站点</title>
		<link>https://www.leexinghai.com/aic/h21201d-web%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e9%85%8d%e7%bd%ae%e7%94%a8%e6%88%b7%e4%b8%aa%e4%ba%ba%e7%ab%99%e7%82%b9/</link>
					<comments>https://www.leexinghai.com/aic/h21201d-web%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e9%85%8d%e7%bd%ae%e7%94%a8%e6%88%b7%e4%b8%aa%e4%ba%ba%e7%ab%99%e7%82%b9/#respond</comments>
		
		<dc:creator><![CDATA[李星海]]></dc:creator>
		<pubDate>Thu, 01 Dec 2022 11:29:24 +0000</pubDate>
				<category><![CDATA[Linux操作系统与应用]]></category>
		<guid isPermaLink="false">https://aic.leexinghai.com/?p=1596</guid>

					<description><![CDATA[一、实验目的 学习掌握配置Web服务器的用户网站目录模式，使客户端用户访问不同的Linux用户网站显示不同的网 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong>一、实验目的</strong><strong></strong></p>



<p>学习掌握配置Web服务器的用户网站目录模式，使客户端用户访问不同的Linux用户网站显示不同的网站内容，从而获取不同的WEB资源。</p>



<p><strong>二、实验仪器设备或材料</strong><strong></strong></p>



<p>个人PC及VMware</p>



<p><strong>三、实验原理</strong><strong></strong></p>



<p>httpd是Apache超文本传输协议(HTTP)服务器的主程序，可以通过配置httpd的形式，让用户访问Linux服务器上的Web资源。通过配置用户个人站点，可以使用户访问不同的用户站点，获取不同的Web资源。</p>



<p><strong>四、实验内容与步骤</strong></p>



<p>1.使用useradd和passwd命令新建一个用户。</p>



<p>2.使用chmod命令对新建用户的家目录设置权限，一般为了安全起见，设置为711（本用户可以读写执行，同组用户可执行，其他用户可执行）</p>



<p>3.使用mkdir命令，在用户家目录下创建一个名为【public_html】的文件夹。</p>



<p>4.使用chcon -Rht httpd_sys_content_t /home/*/public_html设置SELinux属性。</p>



<p>5.在public_html文件夹下，使用vi命令新建一个【index.html】文件。</p>



<p>上述步骤1-5实验过程如图1所示。</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="865" height="346" src="https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image.png" alt="" class="wp-image-1597" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image.png 865w, https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-300x120.png 300w, https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-768x307.png 768w" sizes="auto, (max-width: 865px) 100vw, 865px" /><figcaption class="wp-element-caption">图1</figcaption></figure>
</div>


<p>6.在index.html文件中写入自定义内容（也可以参考下图2），如果没学过HTML语言，随意输入一串字符就可以了。</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="865" height="319" src="https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-1.png" alt="" class="wp-image-1598" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-1.png 865w, https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-1-300x111.png 300w, https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-1-768x283.png 768w" sizes="auto, (max-width: 865px) 100vw, 865px" /><figcaption class="wp-element-caption">图2</figcaption></figure>
</div>


<p>7.编辑httpd的配置文件，使用命令 vi /etc/httpd/conf/httpd.conf，加入如图3中46-49行所示字段。</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="595" height="448" src="https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-2.png" alt="" class="wp-image-1599" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-2.png 595w, https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-2-300x226.png 300w" sizes="auto, (max-width: 595px) 100vw, 595px" /><figcaption class="wp-element-caption">图3</figcaption></figure>
</div>


<p>8.使用命令 service httpd restart重启httpd服务，使上述步骤应用生效，进行检验。</p>



<p><strong>五、实验结果与分析</strong></p>



<p>1.对第四点步骤进行检验：使用ifconfig命令获取centos的ip地址后，在另一端使用浏览器输入ip/~用户名 即可访问相应用户目录下的HTML资源文件，实现不同用户获取不同的web资源访问。如图4所示。</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="865" height="828" src="https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-3.png" alt="" class="wp-image-1600" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-3.png 865w, https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-3-300x287.png 300w, https://www.leexinghai.com/aic/wp-content/uploads/2022/12/image-3-768x735.png 768w" sizes="auto, (max-width: 865px) 100vw, 865px" /><figcaption class="wp-element-caption">图4</figcaption></figure>
</div>


<p><strong>六、结论与体会</strong><strong></strong></p>



<p>&nbsp; 学习掌握配置Web服务器的用户网站目录模式，使客户端用户访问不同的Linux用户网站显示不同的网站内容，从而获取不同的WEB资源。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.leexinghai.com/aic/h21201d-web%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e9%85%8d%e7%bd%ae%e7%94%a8%e6%88%b7%e4%b8%aa%e4%ba%ba%e7%ab%99%e7%82%b9/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>H21124-Samba的user安全模式配置</title>
		<link>https://www.leexinghai.com/aic/h21124-samba%e7%9a%84user%e5%ae%89%e5%85%a8%e6%a8%a1%e5%bc%8f%e9%85%8d%e7%bd%ae/</link>
					<comments>https://www.leexinghai.com/aic/h21124-samba%e7%9a%84user%e5%ae%89%e5%85%a8%e6%a8%a1%e5%bc%8f%e9%85%8d%e7%bd%ae/#respond</comments>
		
		<dc:creator><![CDATA[李星海]]></dc:creator>
		<pubDate>Thu, 24 Nov 2022 02:29:40 +0000</pubDate>
				<category><![CDATA[Linux操作系统与应用]]></category>
		<guid isPermaLink="false">https://aic.leexinghai.com/?p=1555</guid>

					<description><![CDATA[一、实验目的 学习掌握配置Samba服务器的user模式，当用户在连接Samba服务器时，实现用户名和密码的验 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong>一、实验目的</strong><strong></strong></p>



<p>学习掌握配置Samba服务器的user模式，当用户在连接Samba服务器时，实现用户名和密码的验证登录。</p>



<p><strong>二、实验仪器设备或材料</strong><strong></strong></p>



<p>个人PC及VMware</p>



<p><strong>三、实验原理</strong><strong></strong></p>



<p>Samba是在Linux和UNIX系统上实现SMB协议的一个免费软件，由服务器及客户端程序构成。SMB（Server Messages Block，信息服务块）是一种在局域网上共享文件和打印机的一种通信协议，它为局域网内的不同计算机之间提供文件及打印机等资源的共享服务。SMB协议是客户机/服务器型协议，客户机通过该协议可以访问服务器上的共享文件系统、打印机及其他资源。通过设置使得Samba不但能与局域网络主机分享资源，还能与全世界的电脑分享资源。</p>



<p><strong>四、实验内容与步骤</strong><strong></strong></p>



<ol class="wp-block-list" type="1">
<li>设置Linux服务端的ip地址，如图1所示为【172.30.3.4】</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="865" height="333" src="https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-138.png" alt="" class="wp-image-1561" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-138.png 865w, https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-138-300x115.png 300w, https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-138-768x296.png 768w" sizes="auto, (max-width: 865px) 100vw, 865px" /><figcaption class="wp-element-caption">图1</figcaption></figure>
</div>


<p>2.在根目录创建一个aaa（或名字任意）文件夹，命令：<code>mkdir /aaa</code></p>



<p>3.设置文件夹权限为777（最高权限），命令：<code>chmod 777 /aaa</code>，然后创建一个a.txt测试文件，命令：<code>touch /aaa/a.txt</code></p>



<p>4.编辑samba配置文件，命令：<code>vi /etc/samba/smb.conf</code>,添加如下图2红框字段。（开头为#是注释，可以不用写那行）</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="555" height="585" src="https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-137.png" alt="" class="wp-image-1560" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-137.png 555w, https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-137-285x300.png 285w" sizes="auto, (max-width: 555px) 100vw, 555px" /><figcaption class="wp-element-caption">图2</figcaption></figure>
</div>


<p>5.编辑用户文件，命令：<code>vi /etc/samba/smb.conf.user1</code>，输入内容如图3所示。</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="719" height="274" src="https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-136.png" alt="" class="wp-image-1559" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-136.png 719w, https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-136-300x114.png 300w" sizes="auto, (max-width: 719px) 100vw, 719px" /><figcaption class="wp-element-caption">图3</figcaption></figure>
</div>


<p>6.创建一个samba用户，本例以创建aaaa用户为例，命令：<code>useradd -a aaaa</code></p>



<p><code>smbpasswd  -a  aaaa</code>[完成后需要设置密码，这个密码就是客户机访问的密码。]</p>



<p>7.运行samba服务，命令：<code>service samba start</code></p>



<p>8.在Windows客户端上进行测试（注意：先需要在Windows功能中打开“SMB1.0服务”，如图4所示，然后在windows客户机上【资源管理器】访问虚拟机的ip地址，输入用户名和密码，即可访问。</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="515" height="540" src="https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-135.png" alt="" class="wp-image-1558" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-135.png 515w, https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-135-286x300.png 286w" sizes="auto, (max-width: 515px) 100vw, 515px" /><figcaption class="wp-element-caption">图4</figcaption></figure>
</div>


<p><strong>五、实验结果与分析</strong></p>



<p>1.在资源管理器输入\\linux的IP地址，如图5所示。</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-134.png" alt="" class="wp-image-1557" width="734" height="403" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-134.png 865w, https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-134-300x165.png 300w, https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-134-768x423.png 768w" sizes="auto, (max-width: 734px) 100vw, 734px" /><figcaption class="wp-element-caption">图5</figcaption></figure>
</div>


<p>2.输入正确用户名和密码后即可正确访问。如图6所示。</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="865" height="607" src="https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-133.png" alt="" class="wp-image-1556" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-133.png 865w, https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-133-300x211.png 300w, https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-133-768x539.png 768w" sizes="auto, (max-width: 865px) 100vw, 865px" /><figcaption class="wp-element-caption">图6</figcaption></figure>
</div>


<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.leexinghai.com/aic/h21124-samba%e7%9a%84user%e5%ae%89%e5%85%a8%e6%a8%a1%e5%bc%8f%e9%85%8d%e7%bd%ae/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>L21101-用户和组的简单练习</title>
		<link>https://www.leexinghai.com/aic/l21101-%e7%94%a8%e6%88%b7%e5%92%8c%e7%bb%84%e7%9a%84%e7%ae%80%e5%8d%95%e7%bb%83%e4%b9%a0/</link>
					<comments>https://www.leexinghai.com/aic/l21101-%e7%94%a8%e6%88%b7%e5%92%8c%e7%bb%84%e7%9a%84%e7%ae%80%e5%8d%95%e7%bb%83%e4%b9%a0/#respond</comments>
		
		<dc:creator><![CDATA[李星海]]></dc:creator>
		<pubDate>Tue, 01 Nov 2022 01:09:38 +0000</pubDate>
				<category><![CDATA[Linux操作系统与应用]]></category>
		<guid isPermaLink="false">https://aic.leexinghai.com/?p=1283</guid>

					<description><![CDATA[非正式提交作业，随缘更新，但一般不会超过7天。]]></description>
										<content:encoded><![CDATA[
<p>非正式提交作业，随缘更新，但一般不会超过7天。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="795" src="https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-15.png" alt="" class="wp-image-1284" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-15.png 1024w, https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-15-300x233.png 300w, https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-15-768x596.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1017" height="795" src="https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-16.png" alt="" class="wp-image-1285" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-16.png 1017w, https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-16-300x235.png 300w, https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-16-768x600.png 768w" sizes="auto, (max-width: 1017px) 100vw, 1017px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1017" height="795" src="https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-17.png" alt="" class="wp-image-1286" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-17.png 1017w, https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-17-300x235.png 300w, https://www.leexinghai.com/aic/wp-content/uploads/2022/11/image-17-768x600.png 768w" sizes="auto, (max-width: 1017px) 100vw, 1017px" /></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://www.leexinghai.com/aic/l21101-%e7%94%a8%e6%88%b7%e5%92%8c%e7%bb%84%e7%9a%84%e7%ae%80%e5%8d%95%e7%bb%83%e4%b9%a0/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
