diff --git a/create_chroot_user_custom.sh b/create_chroot_user_custom.sh index b7c9f63..684adca 100644 --- a/create_chroot_user_custom.sh +++ b/create_chroot_user_custom.sh @@ -64,5 +64,7 @@ cp -v /bin/{ls,date,mkdir} $JAIL_PATH/bin/ # Copy required libraries for these commands cp -v /lib64/{libselinux.so.1,libcap.so.2,libacl.so.1,libc.so.6,libpcre.so.1,libdl.so.2,ld-linux-x86-64.so.2,libattr.so.1,libpthread.so.0} $JAIL_PATH/lib64/ +chmod -R a+rX $JAIL_PATH + echo "Chroot jail setup completed for user $USERNAME at $JAIL_PATH" echo "User will be placed directly in $JAIL_PATH when connecting via SFTP" \ No newline at end of file