免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 5185 | 回复: 22
打印 上一主题 下一主题

Linux紧急求援 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-04-11 15:43 |只看该作者 |倒序浏览
You're the administrator of the Supinfo network, you're asked to create a server
where students will be able to put MP3 in order to share their musical tastes.
你是SUPINFO网络的管理员,你被要求创建一个服务器
来让学生们能够放一些MP3去分享他们的音乐喜好


The server (your virtual machine) will use a dedicated hard disk for this.
So first add a new hard disk on your virtual machine of 100M
这个服务器(你的虚拟机)将使用一个专用的硬盘去实现这个
所以,首先在你的虚拟机上增加一个100M新的硬盘


Then you will create on this hard disk a new partition, that you will format with
EXT2 file system
然后你将要在这个硬盘上创建一个新的分区,以EXT2的文件格式写入。


We want this parition to be mount automatically on /mnt/mp3 with acl and
quota options So create the corresponding folder and modify a configuration
file to have this (you may need to restart your virtual machine to apply the changes)
我们希望这个分区被自动挂载在/mnt/mp3,并加上acl以及quota的选项。
所以创建一个相应的文件夹以及修改一些文件的配置去完成这个
(你将会要重启你的虚拟机来应用这些功能)


Then create some users correspoding to your classmates and two groups
“firstyear” and “secondyear”, put some of the user in the “firstyear” and some
other in “secondyear”
然后,创建一些相应的你班级同学的账户,以及两个用户组”firstyear”和”secondyear”
把一些用户放入”firstyear”组,另一些放入”secondyear”组


We don't want user to be able to use all the place so we will configurate the following
quotas on it:

50M for group firstyear
50M for group secondyear
10M for each users
我们不想让用户能使用所有的空间,所以我们要进行如下配置的配额:

50M给firstyear组
50M给secondyear组
每个用户能用10M


Using root user, create two folders “secondyear_mp3” and “firstyear_mp3” and change
the owner group so that every secondyear students can create files in “secondyear_mp3”
and that every “firstyear” students can create files in “firstyear_mp3”
在特权账户(根用户)下,创建两个文件夹”secondyear_mp3”和”firstyear_mp3”
改变用户组,来让每一个secondyear组的学生可以在”secondyear_mp3”文件夹内创建文件
每一个firstyear组的学生可以在”firstyear_mp3”文件夹内创建文件


Switch from some users to create files and test if your permissions and quota are correctly
configurated
切换到一些用户,来创建文件,测试你的权限和配额是否正确.

论坛徽章:
0
2 [报告]
发表于 2011-04-11 16:01 |只看该作者
分区 fdisk
fstab  里的挂载知识
添加用户/组 user  group
quota 相关知识
chown  chmod

都可以搜索到

论坛徽章:
0
3 [报告]
发表于 2011-04-11 16:04 |只看该作者
回复 2# taojie2000


    额....我只会添加一个100M的磁盘,其他的几乎不懂,因为我Linux才学了一周....所以我很急

论坛徽章:
0
4 [报告]
发表于 2011-04-11 16:09 |只看该作者
回复 3# 112684cym

  
    搜索   



    linux   fstab              linux  quota               linux  fdisk    .......     一步步来  很快!

论坛徽章:
0
5 [报告]
发表于 2011-04-11 16:10 |只看该作者
回复 4# taojie2000


    好吧,我试试,谢谢

论坛徽章:
0
6 [报告]
发表于 2011-04-11 16:23 |只看该作者
回复 4# taojie2000


    还是没弄会啊,这纠结的....

论坛徽章:
0
7 [报告]
发表于 2011-04-11 16:35 |只看该作者
本帖最后由 112684cym 于 2011-04-11 16:45 编辑

谁能具体点儿帮帮忙啊,都快崩溃了...额.....
我先顶顶吧....

论坛徽章:
0
8 [报告]
发表于 2011-04-11 16:45 |只看该作者
回复 1# 112684cym


    顶顶...dingding 。。。

论坛徽章:
0
9 [报告]
发表于 2011-04-11 17:12 |只看该作者
快完了....求助...求助....

论坛徽章:
0
10 [报告]
发表于 2011-04-11 19:40 |只看该作者
上去上去....
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP