Create a virtual network of Linux machines

Cancelado Publicado May 29, 2011 Pagado a la entrega
Cancelado Pagado a la entrega

You must create a new command shell, called *rvsh*, which operates under two modes:

**1st mode:** the ? connect ? mode. 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.

**2nd 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.

## Deliverables

**PROJECT DESCRIPTION**

You must create a new command shell, called *rvsh*, which operates under two modes:

**1st mode:** the ? connect ? mode. 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.

**2nd 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.

**[url removed, login to view] OF THE ?**** *connect***** ? MODE**

In this mode, the user can connect to a virtual machine (which you created earlier). If the user name and the name of the virtual machine are correct, the connection is accepted (that is to say the user has the rights to connect to this machine and the password is correct) and the user arrives at the following command prompt:

*user@hostname >*

From that prompt the user must be able to execute some virtual commands:

The command ? *who* ?

This command provides access to all users connected to the machine. It must return the name of each user, time and date of connection (See who of Linux). Attention, one user can connect several times on the same machine from several terminals.

The command ? *rusers* ?

This command provides access to the list of all 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.

The command ? *rhost* ?

This command should return the list of machines connected to the virtual network.

The command "*connect*"

This command allows the user to connect to another machine on the network (you must first verify that the user has the rights to log on this machine).

The command "*su*"

This command allows to change user (see su Linux)

The command "*passwd*"

This command allows the user to change password going across the virtual network (see passwd Linux)

The command "finger"

This command is used to return more informations about the user (see finger of Linux).

The command "*write*"

This command allows sending a message to a user connected on a network machine (see the write command to Linux). The command syntax is: write username@machinename message.

**DESCRIPTION** **OF** **"*admin*"** **MODE**

Only the administrator of the virtual network must be able to use this mode. The access to this command must be run by a password (password Administrator). Once the command issued and the password is validated, the administrator arrives at the following prompt:

*rvsh >*

From that prompt the administrator must be able to execute the commands of this mode and some other commands.

The command "*host*"

This command allows the administrator to add or remove a machine to the virtual network.

The command "*users*"

This command allows the administrator to add or to remove a user, give him access rights to one or more machines on the network and to set him a password

Cisco Electrónica Linux Instalación de scripts Shell Script Administración de sistemas UNIX

Nº del proyecto: #3345434

Sobre el proyecto

Proyecto remoto Activo Jun 20, 2011