Bug 3129 - Poor error message on bad directory permissions
Poor error message on bad directory permissions
Product: Samba 3.0
Classification: Unclassified
Component: File Services
All Linux
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2005-10-02 23:54 UTC by Adam Porter
Modified: 2005-10-03 20:39 UTC (History)
0 users

See Also:

Proposed patch with better message. (1.72 KB, patch)
2005-10-03 11:11 UTC, Jeremy Allison
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Porter 2005-10-02 23:54:22 UTC
After hours of frustration, I discovered that the reason Samba was telling me...

tree connect failed: NT_STATUS_BAD_NETWORK_NAME

...and logging...

[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.
Comment 1 Jeremy Allison 2005-10-03 11:11:21 UTC
Created attachment 1468 [details]
Proposed patch with better message.
Comment 2 Jeremy Allison 2005-10-03 11:12:09 UTC
Sorry about the wasted time. Hopefully this better message (which I've just
checked into the code) will help.
Comment 3 Adam Porter 2005-10-03 20:39:58 UTC
Wow, that was fast.  You guys rock.  :)