Update create_chroot_user_custom.sh #1
@@ -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"
|
المرجع في مشكلة جديدة
حظر مستخدم