[Samba] selective utmp logging

jason kawaja kawaja at ece.ufl.edu
Tue Jan 11 16:18:18 GMT 2005


i have a maintenance smb account (not guest) logon every hour to check
and report various things.  this causes a log in utmp for every machine
i have, my utmp is getting rather large soley on the maintenance logons.

what i would like to do, is deny logging of an smb connection if the
username is equal to the maintenance user.

my first thought was smbd/session.c but im not sure on the struct or if
there is a better way.

something like :

        if (vuser->user.unix_name == 'muser0') {
                return True;
        }

thoughts?

--
Jason Kawaja
http://www.ietf.org/rfc/rfc1855.txt


More information about the samba mailing list