The Samba-Bugzilla – Bug 3129
Poor error message on bad directory permissions
Last modified: 2005-10-03 20:39:58 UTC
After hours of frustration, I discovered that the reason Samba was telling me...
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
[2005/10/03 01:07:30, 0] smbd/service.c:make_connection_snum(615)
'/home/me/Shared' does not exist or is not a directory, when connecting to
...was because /home/me was chmodded 700 instead of 711.
Obviously, the directory does exist, and it is a directory. However, the error
messages give no clue as to what the real problem is. In the case of a
permission problem, shouldn't the error (at least in the logs) say so? It sure
would have saved me hours of hair-pulling, and judging from some Googling, other
people as well.
Created attachment 1468 [details]
Proposed patch with better message.
Sorry about the wasted time. Hopefully this better message (which I've just
checked into the code) will help.
Wow, that was fast. You guys rock. :)