Tag: rbash

  • Add restricted user in linux manually.

    The code below will only allow the following commands. ping ssh telnet traceroute ifconfig route Add_Restricted_User.sh #!/bin/sh # Add restricted user in linux manually. # August 13, 2015 # Created by Rodel for a in `cat /opt/scripts/Add_Restricted_User/serverlist.txt`; do for b in `cat /opt/scripts/Add_Restricted_User/usernames.txt`; do echo $a $b; ssh $a “useradd -s /bin/rbash ‘$b’; echo -e…