Permalink
Browse files

version 0.9.9 shouldn't be too far from here..

  • Loading branch information...
ghantoos
ghantoos committed Mar 2, 2010
1 parent 6990a36 commit c667a0470106c3e069029572bc72af1a03d55ce1
Showing with 220 additions and 66 deletions.
  1. +31 −1 CHANGES
  2. +1 −0 MANIFEST.in
  3. +14 −3 etc/lshell.conf
  4. +167 −55 lshellmodule/lshell.py
  5. +2 −2 man/lshell.1
  6. +3 −3 rpm/lshell.spec
  7. +2 −2 setup.py
View
32 CHANGES
@@ -2,12 +2,42 @@
# LSHELL - Limited Shell - CHANGES #
#####################################
#
# $Id: CHANGES,v 1.41 2009-11-30 23:39:08 ghantoos Exp $
# $Id: CHANGES,v 1.42 2010-03-02 00:08:33 ghantoos Exp $
Contact: ghantoos@ghantoos.org
http://sourceforge.net/projects/lshell/
#####################################
=== v0.9.9 20/01/2010 ===
* Added the possibility to configure introduction prompt.
* Replaced "joker" by "warnings" (more elegant)
* Possibility of limiting the history file size.
* Added lpath built-in command to list allowed and denied path. Thanks to
Adrien Urban.
* Corrected bug when using "~" was not parsed as "home directory" when
used in a command other than "cd". Thank you Adrien Urban finding this.
* Corrected minor typo when warning for a forbidden path.
* If $(foo) is present in the line, check if foo is allowed before
executing the line. Thank you Adrien Urban for pointing this out!
* Added the possibility to list commands allowed to be executed using sudo.
The new configuration field is sudo_commands.
* Added the clear(1) command as a built-in command.
* Added '$(' and '${' in the forbidden list by default in the configuration
file.
* Now check the content of curly braces with variables '${}'.
* Added possibility to set history file name using history_file in the
configuration file.
* Corrected the bug when using '|', '&' or ';' over ssh. Over ssh forbidden
characters refers now to the list provided in the "forbidden" field.
Thank you Jools Wills for reporting this!
* It now possible to use "&&" and "||" even if "&" and/or "|" are in the
forbidden list. In order to forbid them too, you must add them
explicitely in the forbidden list.
* Fixed aliases bug that replaced part of commands rendering them unusable.
e.g. aliase vi:vim replaced the view command by vimew.
Thank you Adrien Urban for you security audit and excellent ideas!
=== v0.9.8 30/11/2009 ===
* Major bug fix. lshell did not launch on python 2.4 and 2.5 (https://sourceforge.net/projects/lshell/forums/forum/778301/topic/3474668)
* Added aliases for commands over SSH.
View
@@ -2,5 +2,6 @@ include COPYING
include README
include CHANGES
include etc/lshell.conf
include etc/logrotate.d/lshell
include man/lshell.1
include MANIFEST.in
View
@@ -1,6 +1,6 @@
# lshell.py configuration file
#
# $Id: lshell.conf,v 1.20 2009-06-09 19:53:46 ghantoos Exp $
# $Id: lshell.conf,v 1.21 2010-03-02 00:08:33 ghantoos Exp $
[global]
## log directory (default /var/log/lshell/ )
@@ -10,13 +10,15 @@ loglevel : 2
## configure log file name (default is %u i.e. username.log)
#logfilename : %y%m%d-%u
[default]
## a list of the allowed commands or 'all' to allow all commands in user's PATH
allowed : ['ls','echo','cd','ll']
## a list of forbidden character or commands
forbidden : [';', '&', '|','`','>','<']
forbidden : [';', '&', '|','`','>','<', '$(', '${']
## a list of allowed command to use with sudo(8)
sudo_commands : ['ls', 'more']
## number of warnings when user enters a forbidden value before getting
## exited from lshell
@@ -25,6 +27,9 @@ warning_counter : 2
## command aliases list (similar to bash’s alias directive)
aliases : {'ll':'ls -l', 'vi':'vim'}
## introduction text to print (when entering lshell)
#intro : "== My personal intro ==\nWelcome to lshell\nType '?' or 'help' to get the list of allowed commands"
## a value in seconds for the session timer
#timer : 5
@@ -54,3 +59,9 @@ aliases : {'ll':'ls -l', 'vi':'vim'}
## force files sent through scp to a specific directory
#scpforce : '/home/bla/uploads/'
## history file maximum size
#history_size : 100
## set history file name (default is /home/%u/.lhistory)
#history_file : "/home/%u/.lshell_history"
Oops, something went wrong.

0 comments on commit c667a04

Please sign in to comment.