Bug 3129 - Poor error message on bad directory permissions
Summary: Poor error message on bad directory permissions
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: File Services (show other bugs)
Version: 3.0.14a
Hardware: All Linux
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-02 23:54 UTC by Adam Porter
Modified: 2005-10-03 20:39 UTC (History)
0 users

See Also:


Attachments
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
[shared]

...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.
Jeremy.
Comment 3 Adam Porter 2005-10-03 20:39:58 UTC
Wow, that was fast.  You guys rock.  :)