ghantoos / lshell

lshell is a shell coded in Python, that lets you restrict a user's environment to limited sets of commands, choose to enable/disable any command over SSH (e.g. SCP, SFTP, rsync, etc.), log user's commands, implement timing restriction, and more.
GNU General Public License v3.0
436 stars 112 forks source link

user change their shell #104

Closed suker413 closed 9 years ago

suker413 commented 9 years ago

hi,ghantoos,for example:

liangsh@dev2:~$ ? clear exit help history lpath lsudo tttt vi

root@dev2:/home/liangsh# cat tttt

!/bin/bash

echo "change shell to bash"

liangsh@dev2:~$ w *\ forbidden command: w

when modify tttt like this:

liangsh@dev2:~$ vi tttt liangsh@dev2:/home/liangsh# cat tttt

!/bin/bash

echo "change shell to bash" /bin/bash

liangsh@dev2:~$ tttt change shell to bash liangsh@dev2:~$ w 11:51:23 up 24 min, 3 users, load average: 0.00, 0.01, 0.02 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root pts/0 172.16.201.1 11:27 3:47 0.12s 0.12s -bash liangsh pts/1 172.16.201.1 11:43 3.00s 0.04s 0.00s w root pts/2 172.16.201.1 11:35 11:15 0.08s 0.08s -bash

ghantoos commented 9 years ago

Duplicate of #101. Closing.