Răsfoiți Sursa

Add some comments

Jaap Marcus 2 ani în urmă
părinte
comite
84f3eb6a58
2 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 1 0
      bin/v-add-user-ssh-jail
  2. 1 0
      func/rebuild.sh

+ 1 - 0
bin/v-add-user-ssh-jail

@@ -51,6 +51,7 @@ if [ -d "/home/$user" ]; then
 	chown root:root /home/$user
 	chown root:root /home/$user
 fi
 fi
 
 
+# Prevent from enabling for users hen rssh or nologin is enabled
 user_str=$(grep "^$user:" /etc/passwd | egrep "rssh|nologin")
 user_str=$(grep "^$user:" /etc/passwd | egrep "rssh|nologin")
 if [ -n "$user_str" ]; then
 if [ -n "$user_str" ]; then
 	exit
 	exit

+ 1 - 0
func/rebuild.sh

@@ -126,6 +126,7 @@ rebuild_user_conf() {
 	chown root:root $HOMEDIR/$user/conf
 	chown root:root $HOMEDIR/$user/conf
 
 
 	$BIN/v-add-user-sftp-jail "$user"
 	$BIN/v-add-user-sftp-jail "$user"
+	# Check if SHELL_JAIL_ENABLED
 	if [ "$SHELL_JAIL_ENABLED" == "yes" ]; then
 	if [ "$SHELL_JAIL_ENABLED" == "yes" ]; then
 		$BIN/v-add-user-ssh-jail "$user"
 		$BIN/v-add-user-ssh-jail "$user"
 	fi
 	fi