[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#310982: smbmount does not honor uid and gid options with 2.4 kernel



On Fri, May 27, 2005 at 12:20:49PM -0700, Steve Langasek wrote:
> On Sat, May 28, 2005 at 05:17:39AM +1000, Andrew Bartlett wrote:
> Yeah, on second look I see that it can be done in smbmount, and this would
> be a far more expedient fix.

You mean something like the patch below ?
(Not tested yet, want to be sure this is the idea)

Cheers,
-- 
Bill. <ballombe@debian.org>

Imagine a large red swirl here. 

--- samba-3.0.14a.orig/source/client/smbmount.c
+++ samba-3.0.14a/source/client/smbmount.c
@@ -212,6 +212,8 @@
                c->capabilities &= ~CAP_STATUS32;
                c->force_dos_errors = True;
        }
+        if (mount_uid || mount_gid || mount_fmask || mount_dmask)
+                c->capabilities &= ~CAP_UNIX;

        if (!cli_session_setup(c, username,
                               password, strlen(password),




Reply to: