View Issue Details

IDProjectCategoryView StatusLast Update
0000763Samba ServerBugpublic2022-07-09 23:08
Reporterdazarewicz Assigned Topsmedley  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
PlatformAMD SMPOSArcaOSOS Version5.0.7
Summary0000763: Server (smbd) dies needlessly after producing a warning in the log file
Description  [2022/07/02 13:46:57.487000, 0] ../../lib/param/loadparm.c:1136(lp_set_enum_parm)
    WARNING: Ignoring invalid value 'SHARE' for parameter 'security'
  [2022/07/02 13:46:57.487000, 0] ../../source3/smbd/server.c:1803(main)
    error opening config file 'D:\MPTN\ETC/samba/smb.conf'

Sure, it's a warning but it got ignored. It shouldn't be fatal.

The second error seems wrong since it obviously opened the file to parse the previous
warning.
Additional Information[global]
    workgroup = AZARNET
    server string = David A
    security = SHARE
    null passwords = Yes
    guest account = guest
    username map = D:\MPTN\ETC\samba\private\smbusermap
    log file = D:\MPTN\ETC\samba\log\log.smbd.%U.%M
    time server = Yes
    load printers = No
    printcap name = E:\etc\printcap
    enumports command = E:\samba\enumports.cmd
    add user script = E:\samba\usermod.cmd -a "%u"
    rename user script = E:\samba\usermod.cmd -r "%uold" "%unew"
    delete user script = E:\samba\usermod.cmd -x "%u"
    add group script = E:\samba\groupmod.cmd -a "%g"
    delete group script = E:\samba\groupmod.cmd -x "%g"
    add user to group script = E:\samba\groupmod.cmd -j "%g" "%u"
    delete user from group script = E:\samba\groupmod.cmd -l "%g" "%u"
    set primary group script = E:\samba\usermod.cmd -p "%u" "%g"
    add machine script = E:\samba\usermod.cmd -a "%u"
    lm announce = Yes
    wins support = Yes
    add share command = E:\samba\addshare.cmd
    change share command = E:\samba\changeshare.cmd
    delete share command = E:\samba\delshare.cmd
    lock directory = D:\MPTN\ETC\samba\lock
    nmbd bind explicit broadcast = No
    comment = David Azarewicz
    create mask = 0777
    ea support = Yes
    store dos attributes = Yes
TagsNo tags attached.

Activities

dazarewicz

2022-07-09 15:34

reporter   ~0004457

Samba server version is: 4.11.6-ArcaNoae

psmedley

2022-07-09 22:56

administrator   ~0004466

I can reproduce this here.

psmedley

2022-07-09 23:01

administrator   ~0004467

I might try reproducing this on linux. Agree it seems odd, but the code in server/smbd.c is:
    if (!lp_load_initial_only(get_dyn_CONFIGFILE())) {
        DEBUG(0, ("error opening config file '%s'\n", get_dyn_CONFIGFILE()));
        exit(1);
    }

I'll need to did deeper, but 'error opening config file' appears to relate to an error with one of the directives inside the config file, not an error opening the file itseld.

psmedley

2022-07-09 23:08

administrator   ~0004468

Looks like something else that needs to be handled either by the rpm, or in migration:

https://ubuntuforums.org/showthread.php?t=2397350

The setting appears to have been deprecated in 0000487:0002012 - and probably removed later.

Without a valid security setting, the server dies. The log messages suck, but I'm not intending to address core Samba code.

Issue History

Date Modified Username Field Change
2022-07-09 15:24 dazarewicz New Issue
2022-07-09 15:34 dazarewicz Note Added: 0004457
2022-07-09 22:56 psmedley Assigned To => psmedley
2022-07-09 22:56 psmedley Status new => confirmed
2022-07-09 22:56 psmedley Note Added: 0004466
2022-07-09 23:01 psmedley Note Added: 0004467
2022-07-09 23:08 psmedley Status confirmed => resolved
2022-07-09 23:08 psmedley Resolution open => no change required
2022-07-09 23:08 psmedley Note Added: 0004468
2024-01-19 21:01 psmedley Category 10 => Bug