- 论坛徽章:
- 0
|
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
切换到一些用户,来创建文件,测试你的权限和配额是否正确. |
|