Bug 14693 - Permission issues are not explained well
Summary: Permission issues are not explained well
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: 4.13.7
Hardware: All Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-24 02:46 UTC by viraptor
Modified: 2021-04-24 02:46 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description viraptor 2021-04-24 02:46:29 UTC
When a path of a share is not accessible to smbd for some reason, the message is:

[2021/04/22 19:56:10.962390, 0] ../../source3/smbd/service.c:781(make_connection_snum)
make_connection_snum: canonicalize_connect_path failed for service transmission, path /data/some_share

This does not point to a specific reason and is hard to interpret (you can find it asked on the internet multiple times with no clear explanation besides "disable selinux").

The issue turns out to be caused by failure to traverse the higher paths, even if the full path would be allowed.

601954 lstat("/data", 0x7ffcabcad570) = -1 EACCES (Permission denied)

A better log message with the specific failure would make this much easier to debug: for example what errno happened and when accessing which path.