Skip to content

DaveGCode/customshell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

customshell

Custom Shell is a purpose built restricted command shell to run on a Linux System only allowing access to a limited set of functionality for a specific User.

Built in allowed commands: cd, help, exit, pw (pwd), dt (date time set to specific format), ifc (ifconfig eth0) and ud (userID, groupID, username, groupname, iNode of user’s home directory)

Setup

  • Download and compile the customshell.c to the /usr/bin directory of an System Administrator
  • Create a new user, setting the customshell as the default shell (chsh -s /usr/bin/customshell NewUser)
  • Login as the new user and the customshell should be displayed like so:

======= CUSTOM SHELL INITITATED =======

Type 'help' to get a list of allowed commands

======= CUSTOM SHELL INITITATED =======

About

custom bash shell with limited command access

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages