==> /var/log/samba4/log.smbd <== [2019/03/05 17:12:30.974291, 0] ../source3/smbd/uid.c:386(change_to_user_internal) change_to_user_internal: chdir_current_service() failed! [2019/03/05 17:12:30.974915, 2] ../source3/smbd/vfs.c:1305(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/storage/share/private/test resolved_name=/ [2019/03/05 17:12:30.975606, 2] ../source3/smbd/vfs.c:1305(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/storage/share/private/test resolved_name=/ [2019/03/05 17:12:30.976144, 2] ../source3/smbd/vfs.c:1305(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/storage/share/private/test resolved_name=/ [2019/03/05 17:12:30.976680, 2] ../source3/smbd/vfs.c:1305(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/storage/share/private/test resolved_name=/ [2019/03/05 17:12:30.977070, 2] ../source3/smbd/vfs.c:1305(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/storage/share/private/test resolved_name=/ [2019/03/05 17:12:30.977523, 2] ../source3/smbd/vfs.c:1305(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/storage/share/private/test resolved_name=/ [2019/03/05 17:12:31.061992, 2] ../source3/smbd/vfs.c:1305(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/storage/share/private/test resolved_name=/ [2019/03/05 17:12:31.067955, 2] ../source3/smbd/vfs.c:1305(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/storage/share/private/test resolved_name=/ [2019/03/05 17:12:31.070314, 2] ../source3/smbd/vfs.c:1305(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/storage/share/private/test resolved_name=/ [2019/03/05 17:12:31.070712, 2] ../source3/smbd/vfs.c:1305(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/storage/share/private/test resolved_name=/ [2019/03/05 17:12:31.071098, 2] ../source3/smbd/vfs.c:1305(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/storage/share/private/test resolved_name=/ [2019/03/05 17:12:31.071635, 2] ../source3/smbd/vfs.c:1305(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/storage/share/private/test resolved_name=/
Mar 26 21:55:13 STS1NAS uwsgi: [freenasOS.Update:848] Could not find latest manifest due to ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))
As long as you haven't upgraded the pool, you should be able to downgrade the OS from 11.2 to 11.1.Is there any way to safely downgrade without loosing data?
unix extensions = no
wide links = yes
aux pam= "valid users="
aux pam= "valid users=%U"
the share is configured with, "use as home share", name = homes, path = path to home share dataset, "browsable to network clients", aux pam= "valid users=", vfs objects="zfs_space, streams_xattr, zfsacl"
Under no normal circumstances should symlink checks return that the conn rootdir resolves to /. Please PM me a debug file and exact steps to reproduce the issue. In general, you should never need to enable widelinks.I don't think it's you, I'm struggling with it as well for the past 2 days. follow symlinks or allow insecure wide links didn't helped.
Code:==> /var/log/samba4/log.smbd <== [2019/03/05 17:12:30.974291, 0] ../source3/smbd/uid.c:386(change_to_user_internal) change_to_user_internal: chdir_current_service() failed! [2019/03/05 17:12:30.974915, 2] ../source3/smbd/vfs.c:1305(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/storage/share/private/test resolved_name=/ [2019/03/05 17:12:30.975606, 2] ../source3/smbd/vfs.c:1305(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/storage/share/private/test resolved_name=/ [2019/03/05 17:12:30.976144, 2] ../source3/smbd/vfs.c:1305(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/storage/share/private/test resolved_name=/ [2019/03/05 17:12:30.976680, 2] ../source3/smbd/vfs.c:1305(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/storage/share/private/test resolved_name=/ [2019/03/05 17:12:30.977070, 2] ../source3/smbd/vfs.c:1305(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/storage/share/private/test resolved_name=/ [2019/03/05 17:12:30.977523, 2] ../source3/smbd/vfs.c:1305(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/storage/share/private/test resolved_name=/ [2019/03/05 17:12:31.061992, 2] ../source3/smbd/vfs.c:1305(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/storage/share/private/test resolved_name=/ [2019/03/05 17:12:31.067955, 2] ../source3/smbd/vfs.c:1305(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/storage/share/private/test resolved_name=/ [2019/03/05 17:12:31.070314, 2] ../source3/smbd/vfs.c:1305(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/storage/share/private/test resolved_name=/ [2019/03/05 17:12:31.070712, 2] ../source3/smbd/vfs.c:1305(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/storage/share/private/test resolved_name=/ [2019/03/05 17:12:31.071098, 2] ../source3/smbd/vfs.c:1305(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/storage/share/private/test resolved_name=/ [2019/03/05 17:12:31.071635, 2] ../source3/smbd/vfs.c:1305(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/storage/share/private/test resolved_name=/
mount -vvv -t cifs -o 'username=tesla,password=some_password' //192.168.66.22/TeslaCam /mnt/test-mount
mount -vvv -t cifs -o 'username=tesla,password=some_password,vers=2.1' //192.168.66.22/TeslaCam /mnt/test-mount
I still have a similar problem when accessing folders with many files from a Mac over SMB. After a while the share disconnects and I see the "Bad access attempt: . is a symlink outside the share path" in the log.Under no normal circumstances should symlink checks return that the conn rootdir resolves to /. Please PM me a debug file and exact steps to reproduce the issue. In general, you should never need to enable widelinks.
For proper ACL behavior, the ZFS dataset's aclmode should be set to "restricted". This has been known to cause issues for some SMB users.
96.arx fname=A040C005_220625_RNET.0582096.arx (A040C005_220625_RNET.0582096.arx) [2023/03/25 12:02:57.310219, 3] ../../source3/smbd/dir.c:1034(smbd_dirptr_get_entry) smbd_dirptr_get_entry mask=[*] found 8Horses-Electric_Child/220625_SD10/Camera_Raw/Video/A040RNET_hde/A040RNET/A040C005_220625_RNET/A040C005_220625_RNET.0581624.arx fname=A040C005_220625_RNET.0581624.arx (A040C005_220625_RNET.0581624.arx) [2023/03/25 12:02:57.324517, 3] ../../source3/smbd/dir.c:1034(smbd_dirptr_get_entry) smbd_dirptr_get_entry mask=[*] found 8Horses-Electric_Child/220625_SD10/Camera_Raw/Video/A040RNET_hde/A040RNET/A040C005_220625_RNET/A040C005_220625_RNET.0585203.arx fname=A040C005_220625_RNET.0585203.arx (A040C005_220625_RNET.0585203.arx) [2023/03/25 12:02:57.342323, 3] ../../source3/smbd/dir.c:1034(smbd_dirptr_get_entry) smbd_dirptr_get_entry mask=[*] found 8Horses-Electric_Child/220625_SD10/Camera_Raw/Video/A040RNET_hde/A040RNET/A040C005_220625_RNET/A040C005_220625_RNET.0584443.arx fname=A040C005_220625_RNET.0584443.arx (A040C005_220625_RNET.0584443.arx) [2023/03/25 12:02:57.362548, 3] ../../source3/smbd/dir.c:1034(smbd_dirptr_get_entry) smbd_dirptr_get_entry mask=[*] found 8Horses-Electric_Child/220625_SD10/Camera_Raw/Video/A040RNET_hde/A040RNET/A040C005_220625_RNET/A040C005_220625_RNET.0584831.arx fname=A040C005_220625_RNET.0584831.arx (A040C005_220625_RNET.0584831.arx) [2023/03/25 12:02:57.377332, 2] ../../source3/smbd/service.c:1191(close_cnum) mac-pro (ipv4:192.168.178.25:59049) closed connection to service ec_backup [2023/03/25 12:02:57.377413, 3] ../../source3/smbd/vfs.c:1259(check_reduced_name) check_reduced_name: Bad access attempt: . is a symlink outside the share path conn_rootdir =/mnt/Tank/ec_backup resolved_name=/ [2023/03/25 12:02:57.379953, 3] ../../source3/smbd/server_exit.c:240(exit_server_common) Server exit (NT_STATUS_CONNECTION_DISCONNECTED) [2023/03/25 12:03:10.537696, 3] ../../source3/smbd/smb2_server.c:3956(smbd_smb2_request_error_ex) smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_FILE_CLOSED] || at ../../source3/smbd/smb2_server.c:3334 [2023/03/25 12:03:29.5