fix chrootdir perms
This commit is contained in:
		@@ -15,6 +15,9 @@ if ! id "$USER" 2&>/dev/null; then
 | 
				
			|||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
CHROOT=$(eval echo ~$USER)
 | 
					CHROOT=$(eval echo ~$USER)
 | 
				
			||||||
 | 
					# ChrootDirectory requires these permissions 
 | 
				
			||||||
 | 
					chown root:root $CHROOT
 | 
				
			||||||
 | 
					chmod 745 $CHROOT
 | 
				
			||||||
printf "Match User $USER\n 	ChrootDirectory $CHROOT" > /etc/ssh/sshd_config.d/70-$USER.conf
 | 
					printf "Match User $USER\n 	ChrootDirectory $CHROOT" > /etc/ssh/sshd_config.d/70-$USER.conf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# cp in all commands and dependencies 
 | 
					# cp in all commands and dependencies 
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user