[Samba] Re: string overflow in safe_strcpy

Carl cmatthews at myrealbox.com
Thu Jun 24 23:57:53 GMT 2004


Corey Spalding wrote:

> I recently upgraded both of my samba servers (mirrors of each other) to 
> 3.0.4, my log files now fill with the following messages (hundred lines 
> per day):
> 
> Jun 24 13:55:33 Clyde smbd[8597]: [2004/06/24 13:55:33, 0] 
> lib/util_str.c:safe_strcpy_fn(602)
> Jun 24 13:55:33 Clyde smbd[8597]:   ERROR: string overflow by 1 (9 - 8) 
> in safe_strcpy [LIBRA~V$.DOC]
> Jun 24 14:20:34 Clyde smbd[8597]: [2004/06/24 14:20:34, 0] 
> lib/util_str.c:safe_strcpy_fn(602)
> Jun 24 14:20:34 Clyde smbd[8597]:   ERROR: string overflow by 1 (11 - 
> 10) in safe_strcpy [Config.pol.bak]
> 
> The messages appear when I'm browsing any share setup on either server.
> 
> Heres the smb.conf from the backup server.
> 
> # Global parameters
> [global]
>        unix charset = UTF8
>        workgroup = SPRINGFIELD
>        server string = Clyde
>        security = SHARE
>        map to guest = Bad User
>        passwd program = /usr/bin/passwd%u
>        passwd chat = *password* %n\n *password* %n\n *successful*
>        log level = 1
>        name resolve order = lmhosts host wins bcast
>        mangling method = hash
>        add user script = /usr/sbin/adduser -n -g machines -c Machine -d 
> /dev/null -s /bin/false %m$
>        add machine script = /usr/sbin/useradd -d /dev/null -g 503  -s 
> /bin/false -M %u
>        logon path = \\%L\Profiles\%U
>        os level = 60
>        preferred master = No
>        local master = No
>        domain master = No
>        wins support = Yes
>        ldap ssl = no
>        idmap uid = 10000-20000
>        idmap gid = 10000-20000
>        winbind enum users = No
>        winbind enum groups = No
>        path = /var/spool/samba
>        admin users = root, cspalding
>        read only = No
>        guest ok = Yes
> 
> [homes]
>        comment = Home Directories
>        path = /home/%U
>        create mask = 0700
>        directory mask = 0700
>        guest ok = No
>        nt acl support = No
>        locking = No
> 
> [netlogon]
>        comment = Network Logon Service
>        path = /home/NETLOGON
>        nt acl support = No
>        locking = No
> 
> [Profiles]
>        comment = Nt Roaming Profiles
>        path = /home/profiles
>        create mask = 0777
>        guest ok = No
> 
> [public]
>        comment = Public on Clyde
>        path = /usr2/public
>        create mask = 0777
>        force create mode = 0777
>        directory mask = 0777
>        force directory mode = 0777
> 
> [printers]
>        comment = All Printers
>        printable = Yes
>        browseable = No
> 
> [apache]
>        comment = webserver share
>        path = /var/www/html
>        username = billy, at billy, nobody, cspalding
>        valid users = cspalding, mcaley, lynn, billy
>        admin users = cspalding, mcaley, corey
>        write list = billy, @billy
> 
> [office]
>        path = /usr2/office
> 
> 
> 
> Any ideas how to get rid of this error? Its more of a nuisance that 
> anything else at the moment.
> 
> 

Yeah i get this problem too, with samba 3.04 on FC1 exactly the same, 
string errors when browsing any share which fills up my 
/var/log/messages file


Any one know a fix?



More information about the samba mailing list