[Samba] string overflow in safe_strcpy
Corey Spalding
cspalding at bradford.library.on.ca
Sat Jun 26 15:16:24 GMT 2004
Not sure if this will be of any help to anyone else, but I have seem to
fixed my own problem. It turns out that the line "mangling method =
hash" was causing my log files to fill with the string overflow error
(on a side note, it also slowed the smb shares to a crawl on one of the
servers). Anyways removing the line seems to have fixed the problem.
Hope this helps someone else.
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.
>
>
More information about the samba
mailing list