SAMBA_2_2 'admin users' feature broken

Jeremy Allison jeremy at valinux.com
Tue Oct 31 01:29:19 GMT 2000


D Davies wrote:
> 
> Hi,
> 
> Again, using SAMBA_2_2. If I use this on my [slash$]
> service:
> path = /
> admin users = admin
> 
> Then in the logfile I see my user 'admin' connecting to the
> service as an 'admin' user with "root privelages".  But this
> is not reflected in the behaviour.  For example if I use the
> Windows Explorer on the Win9X client to create something
> like:

Ok - try the following bugfix (bug caused due to restructuring
of code between 2.0.x and 2.2.x).

Cheers,

	Jeremy.

Index: smbd/uid.c
===================================================================
RCS file: /data/cvs/samba/source/smbd/uid.c,v
retrieving revision 1.50.4.1
diff -u -r1.50.4.1 uid.c
--- smbd/uid.c  2000/10/13 01:59:32     1.50.4.1
+++ smbd/uid.c  2000/10/31 01:27:09
@@ -121,6 +121,7 @@
                return False;

        if (conn->force_user ||
+           conn->admin_user ||
            lp_security() == SEC_SHARE ||
            !(vuser) || (vuser->guest)) {
                uid = conn->uid;

-- 
--------------------------------------------------------
Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.
--------------------------------------------------------




More information about the samba-technical mailing list