ssfs rev 68

Some small improvment and typo
author Christophe Lincoln <pankso@slitaz.org>
date Mon Jun 13 19:58:32 2011 +0200 (2011-06-13)
parents 3498e1a1bab7
children 6a17310b1f9f
files README ssfs ssfs-box ssfs-sh
line diff
     1.1 --- a/README	Mon Jun 13 18:54:24 2011 +0200
     1.2 +++ b/README	Mon Jun 13 19:58:32 2011 +0200
     1.3 @@ -105,9 +105,19 @@
     1.4  variables. For each user ssfs-sh is the default SHell on the server and is
     1.5  executed inside the new root. So ssfs-sh must be installed on the server and
     1.6  in the virtual disk minimal chroot. Using a custom tool such as Ssfs SHell
     1.7 -enforces security and lets you execute commands on login, ssfs-sh also exports the
     1.8 -new user $HOME and changes the directory to it since chroot will drop us in / by
     1.9 -default.
    1.10 +enforces security and lets you execute commands on login, ssfs-sh also exports
    1.11 +the new user $HOME and changes the directory to it since chroot will drop us
    1.12 +in / by default.
    1.13 +
    1.14 +The SHell is part of Ssfs featurs and provide a secure access to user, SSH
    1.15 +login is automated with a RSA key, when chrooted users have access to all
    1.16 +commands in /bin and a helper tool called 'ssfs-env' in avalaible. Ssfs-env
    1.17 +can display server info, list files and search for files or commands. Like
    1.18 +all other Ssfs tools user can get a small built-in help usage. To connect
    1.19 +to server and display ssfs-env help:
    1.20 +
    1.21 +$ ssfs login
    1.22 +user@ssfs:~$ ssfs-env help
    1.23  
    1.24  
    1.25  Get configs on boot
     2.1 --- a/ssfs	Mon Jun 13 18:54:24 2011 +0200
     2.2 +++ b/ssfs	Mon Jun 13 19:58:32 2011 +0200
     2.3 @@ -128,17 +128,17 @@
     2.4  		
     2.5  		# Monitor local folder if not yet running.
     2.6  		if [ ! -s "$pid" ]; then
     2.7 -			gettext "Starting lsyncd daemon..."
     2.8 -			lsyncd -pidfile $pid -log all -logfile $logdir/lsyncd.log $config
     2.9 -		else
    2.10 -			gettext "Lcyncd daemon running PID:"; echo " $(cat $pid)"
    2.11 -		fi && echo "" ;;
    2.12 +			kill $(cat $pid) 2>/dev/null
    2.13 +			rm -f $pid
    2.14 +		fi
    2.15 +		gettext "Starting lsyncd daemon..."
    2.16 +		lsyncd -pidfile $pid -log all -logfile $logdir/lsyncd.log $config
    2.17 +		echo "" ;;
    2.18  	stop)
    2.19  		# Kill daemon and remove pidfile.
    2.20 -		[ ! -f "$pid" ] && gettext -e "Daemon is not running\n" && exit 0 
    2.21 -		kill=$(cat $pid)
    2.22 +		[ ! -s "$pid" ] && gettext -e "Daemon is not running\n" && exit 0 
    2.23  		gettext "Stopping"; echo " $app PID: $kill"
    2.24 -		kill $kill 2>/dev/null
    2.25 +		kill $(cat $pid) 2>/dev/null
    2.26  		rm -f $pid ;;
    2.27  	login)
    2.28  		# Connect user to Ssfs server via SSH.
     3.1 --- a/ssfs-box	Mon Jun 13 18:54:24 2011 +0200
     3.2 +++ b/ssfs-box	Mon Jun 13 19:58:32 2011 +0200
     3.3 @@ -33,7 +33,7 @@
     3.4  		$0 setup && exit 0
     3.5  	fi
     3.6  	[ "$opts" ] || opts="--width=460 --height=320"
     3.7 -	text=$(gettext "<b>Welcome to the Ssfs GTK user interface</b>")
     3.8 +	text=$(gettext "<b>Welcome to the Ssfs Client user interface</b>")
     3.9  	info | yad $opts \
    3.10  		--list --title="Ssfs Box" \
    3.11  		--image-on-top --window-icon=$pixmap \
     4.1 --- a/ssfs-sh	Mon Jun 13 18:54:24 2011 +0200
     4.2 +++ b/ssfs-sh	Mon Jun 13 19:58:32 2011 +0200
     4.3 @@ -26,8 +26,8 @@
     4.4  	# some env variables but don't source any profile.
     4.5  	clear && echo -e \
     4.6  		"\n\033[1m  Welcome to the Ssfs SHell $USER\033[0m\n"
     4.7 -	PS1='\u@\h\e[0m:\e[1;34m\w\e[0m\$ '
     4.8 -	PATH='/bin:/sbin'
     4.9 +	PS1='\u@ssfs\e[0m:\e[1;34m\w\e[0m\$ '
    4.10 +	PATH='/bin'
    4.11  	HOME=/home/$USER
    4.12  	SYNC=$HOME/Sync
    4.13  	SHELL=/bin/sh