DEBUG when write access rejected to a read-only share: Might save newbies lots of frustration ...
Richard Sharpe
realrichardsharpe at gmail.com
Fri Jul 22 13:30:19 MDT 2011
Hi,
Would anyone like to add this small change:
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 0e198ee..077cd24 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -1448,6 +1448,7 @@ static connection_struct *switch_message(uint8 type, struc
/* Does it need write permission? */
if ((flags & NEED_WRITE) && !CAN_WRITE(conn)) {
+ DEBUG(2, ("Write access to read-only share rejected.\n")
reply_nterror(req, NT_STATUS_MEDIA_WRITE_PROTECTED);
return conn;
}
It might save newbies a lot of hair pulling.
--
Regards,
Richard Sharpe
More information about the samba-technical
mailing list