1
0

Merge pull request 'Update create_chroot_user_custom.sh' (#1) from patch-directory-access into main

Reviewed-on: #1
هذا الالتزام موجود في:
2025-09-04 15:27:25 +00:00
الأصل 0923396f69 e64663dc9d
التزام 551eed997f

عرض الملف

@@ -64,5 +64,7 @@ cp -v /bin/{ls,date,mkdir} $JAIL_PATH/bin/
# Copy required libraries for these commands # 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/ 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 "Chroot jail setup completed for user $USERNAME at $JAIL_PATH"
echo "User will be placed directly in $JAIL_PATH when connecting via SFTP" echo "User will be placed directly in $JAIL_PATH when connecting via SFTP"