This how Samba works for a 'guest' share:
If an unknown user contacts Samba and 'map to guest = bad user' is set in the 'global' part of the smb.conf file, then the user is silently mapped to the guest user. This guest user is usually the user 'nobody', but can be changed by setting 'guest account = <THE_REQUIRED_USER>' in the smb.conf file.
Only an authenticated user or a unknown user mapped to guest will be accepted by Samba.
Once a user is accepted, then an attempt is made to change to the shares directory. This means that whatever user it is, that user must be able to traverse the path, in the case of a 'guest' user, the user 'nobody' must be able to traverse '/home/pi/Base/work/worktable' and it will not be able to. It will stop at 'home/pi' because 'nobody' isn't 'pi' and only the user 'pi' can traverse 'home/pi'. If you had placed the share somewhere else, in /srv for instance, and set the required permissions, it would have worked.
The problem with Samba is that it requires some configuration and possibly the reading of documentation to find out what to configure, sadly, a lot of people will not do this, they just expect it to work without doing anything.
If an unknown user contacts Samba and 'map to guest = bad user' is set in the 'global' part of the smb.conf file, then the user is silently mapped to the guest user. This guest user is usually the user 'nobody', but can be changed by setting 'guest account = <THE_REQUIRED_USER>' in the smb.conf file.
Only an authenticated user or a unknown user mapped to guest will be accepted by Samba.
Once a user is accepted, then an attempt is made to change to the shares directory. This means that whatever user it is, that user must be able to traverse the path, in the case of a 'guest' user, the user 'nobody' must be able to traverse '/home/pi/Base/work/worktable' and it will not be able to. It will stop at 'home/pi' because 'nobody' isn't 'pi' and only the user 'pi' can traverse 'home/pi'. If you had placed the share somewhere else, in /srv for instance, and set the required permissions, it would have worked.
The problem with Samba is that it requires some configuration and possibly the reading of documentation to find out what to configure, sadly, a lot of people will not do this, they just expect it to work without doing anything.
Statistics: Posted by hortimech — Tue Jul 15, 2025 7:37 am