该项目(projet)旨在建立一个Linix的虚拟网络。
项目的说明
您必须创建一个新的shell命令,称为rvsh,只能通过这两种模式(方式)下运行:
第一种模式(方式):用户连接(连接模式)。这种模式通过rvsh -connect(连接) nom_machine(机器名) nom_utilisateur(用户名)被调用:
(“rvsh连接主机的用户名”,这是google上的翻译)
这个命令允许你通过用户名连接到虚拟机。
第二种模式(方式):在管理模式(允许模式)。这种模式通过rvsh -admin被调用:
这个命令允许管理员来管理连接到虚拟网络的这些机器和用户。(这个翻译我和google上有点不一样,所以我把换成英语你可以自己理解一下~)
PROJECT DESCRIPTION
You must create a new command shell, called rvsh, which operates under two modes:
1st mode: the user connect. This mode is invoked by:
rvsh-connect hostname username
This command allows you to connect to a virtual machine with the name of a user.
Second mode: the admin mode. This mode is invoked by:
rvsh-admin
This command allows the administrator to manage the list of virtual machines connected to the network and the user list.
1. 连接方式的描述 (the user connect.)
连接模式允许用户连接到一个虚拟机。如果用户名和虚拟机的名称是正确的,连接被接受(即用户有权登录本机,密码是正确的),然后用户到达以下命令提示符:
nom_utilisateur@nom_machine > (用户名@机器名)
从这个提示起,用户能运行(执行)某些命令:
who 命令
此命令可以访问这个机器上的所有连接的用户。它必须返回(renvoyer,这个单词在这不好翻,我理解的是发送,google翻译的是返回。。-_-#)每个用户的名字(连接名字),连接的时间和日期(见Unix命令中的who)。注意,同一个用户可以从多个终端登录同一台机器上几次。
rusers命令
此命令提供了访问网络上连接的用户列表(一个连接了网络的user列表)。它必须返回(仍然是renvoyer这个词。。。我晕。。。= = )每个用户和他连接的机器(可能指计算机吧)的的名称,以及连接时间和日期。
rhost命令
这个命令应该返回(renvoyer)连接到虚拟网络机的列表。
connect命令
该命令允许用户连接到另一个网络机。(您必须先验证用户有权登录本机)
su命令
这个命令允许你改变用户(见Unix上的su)
passwd命令
该命令允许用户更改所有虚拟网络的密码(见Unix 的passwd命令)
finger命令
此命令是用来返回(renvoyer)用户的更多信息。(见Unix的finger命令)
write命令
此命令将消息发送到连接在网络机上的一个登录的用户。(见Unix的write命令)该命令的语法是:
write nom_utilisateur@nom_machine message
(nom是名字的意思,utilisateur是用户的意思,相当于英语的user)
2管理模式的描述(the admin mode)
只有虚拟网的网络管理员必须能够使用这种模式。因此,获得这个命令必须由一个密码(管理员的密码)进入。一旦命令发出,密码验证成功,管理员到达以下命令提示符:
rvsh>
从这个提示起,管理员能执行连接模式的命令和一些额外的命令:
host命令
这个命令允许管理员添加或删除虚拟网上的机器。
users命令
这个命令允许管理员添加或删除用户,授予访问权限一个或多个机器在网络上设置一个密码。
afinger命令
这个命令允许管理员了解用户的信息(用户将通过连接模式里面的finger命令进如他自己的信息)
1 Description of the connected mode
Connected mode allows a user to connect to a virtual machine. If failure of the user and the name of the virtual machine are correct, the connection is accepted (that is to say the user has the right to log on this machine and the password is correct) and the user enters the following command prompt:
user @ hostname>
From that prompt the user needs to run some commands:
The who command
This command provides access to all connected users on the machine. It must return the name of each user, the time and date of connection (see WHO command of Unix). Attention, one user can log several times on the same machine from several terminals.
rusers command
This command provides access to the list of users connected on the network. It must return the name of each user and machine name where it is connected, and the time and date of connection.
rhost command
This command should return the list of machines connected to the virtual network.
The connect command
This command allows the user to connect to another machine on the network (you must first verify that the user has the right to log on this machine).
2 Description of admin mode
Only the administrator of the virtual network must be able to use this mode. Therefore access to this command must be run by a password (password Administrator). Once the order is initiated and the password is validated, the administrator enters the following command prompt:
rvsh>
From that prompt the administrator must execute the command mode and connect some additional commands:
The host command
This command allows the administrator to add or remove a virtual machine to the network.
users command
This command allows the administrator to add or remove a user, give access rights to one or more machines on the network and to set a password.
afinger command
This command allows the administrator to learn additional information about the user (the user will have access to this information with the finger command in the user connect).
在下由于学艺不精,对这个项目又不是很懂,大家有什么建议的可以直接写上。。谢谢。。。
changjulai 于 2016-06-03 09:51:04发表:
可以
neverexcuse 于 2015-05-09 15:23:04发表:
飞过
王安琪 于 2015-05-08 18:03:52发表:
必须创建一个新的shell命令
hawk_eagle 于 2015-05-02 21:04:53发表:
新手报到,开始学习
canxiang 于 2015-04-30 10:00:52发表:
路过
l-ydia 于 2013-11-27 17:22:47发表:
赞
beita 于 2013-09-29 22:00:30发表:
路过路过
nic疯锋 于 2013-09-24 15:43:07发表:
长姿势了、
xjboy 于 2013-09-03 10:44:17发表:
太高深了!
ycy77yww 于 2013-09-02 15:10:32发表:
虽不明,但觉厉
liqishuai1 于 2013-02-05 18:46:13发表:
hao
chenxip888 于 2013-02-04 15:18:07发表:
谢谢分享
itchengwb 于 2013-02-04 13:09:59发表:
没看明白是什么意思
itchengwb 于 2013-02-04 13:09:44发表:
过过。 。。
07net 于 2013-02-03 09:22:04发表:
凑热闹
shuning112 于 2013-02-02 09:46:58发表:
路过
xialitian851111 于 2013-01-09 10:41:16发表:
不懂哦!
yxxgy 于 2013-01-08 18:03:02发表:
没看懂什么意思!!!
blackie1020 于 2013-01-08 14:19:12发表:
学习知识!!!
huayimm0 于 2013-01-07 17:23:31发表:
受教了~ 学习
cqjack 于 2013-01-07 17:15:54发表:
受教了
zsdolphin 于 2013-01-04 11:34:19发表:
题目都没看懂的路过
ernest!! 于 2012-12-25 12:23:22发表:
:0)1
qianLYJ 于 2012-12-24 23:35:34发表:
飘过
wfl_1976 于 2012-12-23 15:39:57发表:
我也很有兴趣呢
huangzihang 于 2012-12-19 16:36:50发表:
路过
mlrs168 于 2012-12-10 16:48:10发表:
luguo
lezone 于 2012-12-09 13:48:54发表:
态高级了!
wwcd 于 2012-11-23 17:37:40发表:
{:2_92:}
A747426 于 2012-11-21 11:16:31发表:
路过而已
jossshua 于 2012-11-20 21:45:23发表:
命令太多了吧
不学无术 于 2012-11-16 18:30:00发表:
就是来学习的
cndmad 于 2012-11-02 10:29:51发表:
什么都看不懂
tlhchts 于 2012-11-02 10:12:46发表:
楼主的分享非常不错!!谢谢!!!!
zhangpeijun 于 2012-10-29 13:08:30发表:
路过。。。。
yqiangfu 于 2012-10-25 17:49:35发表:
学习中
kemel 于 2012-08-29 10:55:22发表:
看不懂:dizzy:
happynail1989 于 2012-08-29 09:47:08发表:
不知道是在干什么
larmbr 于 2012-05-04 14:56:22发表:
感谢分享,学习了,谢谢!!!
first6120c 于 2012-04-19 16:10:49发表:
路过,看不懂