Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Latest commit

 

History

History
39 lines (24 loc) · 1.16 KB

README.md

File metadata and controls

39 lines (24 loc) · 1.16 KB

LO14_Project

Project of a virtual machines network (with the virtual machines being files) and creation of commands usable when connected to a machine.
The project is as we sent it to the teacher, we won't touch it anymore.
If you want to run it, go to the folder where rvsh.sh script is located as all paths are relative.

List of Commands

You can have the list of command by calling the script with the help option:

rsvh -help

Mode connect

This mode will allow the user to connect to the machine with his username.

Use this command:

rvsh -connect machine_name user_name

Mode admin

This mode will allow the administrator to manage the list of connected machines and the list of users.

Use this command:

rvsh -admin

Error codes

These will be the numbers returned by functions (from verfications.sh) to indicate if it's ok or not.

0 No error
1 Invalid number of arguments or invalid arguments
2 The machine doesn't exist
3 The user doesn't exist
4 The user doesn't have access to the machine
5 The password isn't correct
6 The username and/or the machine name isn't only composed of miniscules and digits