Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

NerdOfCode/Restricted-Shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Restricted-Shell

Codacy Badge

OS Status
Ubuntu 16.04
Ubuntu 18.04
CentOS 7.5
Fedora 28

A quick and simple shell in C that is designed to be fast and efficient... This shell is in early stages of development...

Documentation

To easily setup this amazing restricted shell... Follow the instructions found below:

Single User Mode

First, you need to change to the only working directory right now, and then we can download the repository! You can accomplish such by running:

cd ~/ && git clone https://github.com/NerdOfCode/Restricted-Shell.git

Next, you can began the automated setup by running

cd Restricted-Shell/ && bash run.sh

And then just answer the questions to the automatic configuration!

Multi-User Mode

There is no such mode as of now.

Setting R-Shell to Default Shell

Please be aware that the below option is completely experimental and may not be working

If you're interested in using this shell full-time, simply edit the /etc/passwd file and change to the following, by running:

sudo vipw 

USERNAME_HERE:x:1004:1003:,,,:/home/USERNAME_HERE:/home/USER_HERE/Restricted-Shell/shell

After performing the above, make sure to first run run.sh to customize your shell... Then feel free, to logout and back in, to see the changes!

Enjoy!!! Oh, and also if anyone is to come across any errors or suggestions, please feel free to send an email to team@nerdofcode.com!

Notes

When installing this Restricted-Shell, make sure to be mindful of the permissions you place on this shell's files/directories...

As of right now, I recommend creating and using separate installations for each user... I realize this is a major inconvenience to most, it is the best way to ensure the upmost security of your system.

Good luck :)!

W.I.P

  1. First, and foremost... We will need to add real time keyboard input in order to allow users to review previous commands...
  2. Secondly, we need to add an enhanced multi-user mode!

About

A simple shell in C that is designed to be fast and efficient and only allows specified commands...

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published