Web lists-archives.com

Re: [Samba] Samba Won't start after upgrading Operating system




On Sun, 24 Feb 2019 13:08:07 -0500
Robert Steinmetz <rob@xxxxxxxxxxxxxxxx> wrote:

> Rowland Penny via samba wrote:
> On Sat, 23 Feb 2019 19:55:03 -0500
> Robert Steinmetz via samba <samba@xxxxxxxxxxxxxxx> wrote:
> 
> I ungraded my Linux Operating system from Ubuntu 16.04 LTS to 8.04 LTS
> 
> Samba will not start after an upgrade to 18.04. My samba is running
> as an NT style member server server with smbd nmbd and winbindd all 
> running. None of them will start.
> 
> It worked this morning.
> 
> This morning it was running Version 4.3.11-Ubuntu
> 
> This afternoon after the upgrade it's Version 4.7.6-Ubuntu
> 
> The logs in /var/spool/samba are empty.
> 
> 
> root@louise:/var/log/samba# systemctl start smbd
> Job for smbd.service failed because the control process exited with 
> error code.
> See "systemctl status smbd.service" and "journalctl -xe" for details.
> root@louise:/var/log/samba# systemctl status smbd
> 
> 
>   smbd.service - Samba SMB Daemon
>     Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor 
> preset: ena
>     Active: failed (Result: exit-code) since Sat 2019-02-23 18:01:35 
> EST; 20s ago
>       Docs: man:smbd(8)
>             man:samba(7)
>             man:smb.conf(5)
>    Process: 4594 ExecStart=/usr/sbin/smbd --foreground 
> --no-process-group $SMBDOP
>   Main PID: 4594 (code=exited, status=1/FAILURE)
> 
> Feb 23 18:01:35 louise systemd[1]: Starting Samba SMB Daemon...
> Feb 23 18:01:35 louise systemd[1]: smbd.service: Main process exited, 
> code=exite
> Feb 23 18:01:35 louise systemd[1]: smbd.service: Failed with result 
> 'exit-code'.
> Feb 23 18:01:35 louise systemd[1]: Failed to start Samba SMB Daemon.
> lines 1-13/13 (END)
> 
> The information on all three processes is virtually identical.
> 
> testparm gives a few warnings but it's been doing that for a while
> with no apparent problem See below.
> 
> root@louise:/var/log/samba# testparm
> Load smb config files from /etc/samba/smb.conf
> rlimit_max: increasing rlimit_max (1024) to minimum Windows limit
> (16384) WARNING: The "idmap uid" option is deprecated
> WARNING: The "idmap gid" option is deprecated
> handle_name_resolve_order: WARNING: Ignoring invalid list value
> 'hosts' for parameter 'name resolve order'
> Error loading services.
> 
> I've found a number of posts with similar problems but none seem 
> directly on point.
> 
> 
> 
> 
> The value for 'name resolv order' is 'host' not 'hosts', if this
> doesn't fix it, please post your smb.conf.
> 
> 
> 
> I am planning an upgrade but I need to upgrade the OS first.
> 
> Unfortunately while changing the name resolv order did allow testparm
> to run I now have another problem.
> 
> I thought I had resolved my problem in the earlier post, However I
> have an additional problem. No users can login. Windows reports there
> is no path to the shares and that is cannot access the member server,
> although it shows up in the lists of servers and can beaccessed by
> administrator accounts.
> 
> wbinfo -u works and gives a list of all users
> 
> getent passwd does not show any remote users of the PDC

Does 'getent passwd username' work ?

> 
> I have rejoined the domain with net join -U administrator
> 
> The PDC is running Samba Version Version 4.3.11-Ubuntu
> The member server is running 4.7.6-Ubuntu
> 
>  #testparm
> Load smb config files from /etc/samba/smb.conf
> rlimit_max: increasing rlimit_max (1024) to minimum Windows limit
> (16384) WARNING: The "idmap uid" option is deprecated
> WARNING: The "idmap gid" option is deprecated
> Processing section "[printers]"
> Processing section "[print$]"
> Processing section "[Hamlet]"
> Processing section "[Projects]"
> Processing section "[Office]"
> Processing section "[Sigma]"
> Processing section "[Windows]"
> Processing section "[Recovered]"
> Processing section "[Vault]"
> Processing section "[Files]"
> Processing section "[Arris]"
> Loaded services file OK.
> Server role: ROLE_DOMAIN_MEMBER
> 
> Press enter to see a dump of your service definitions
> Hers is the global section of the smb.conf file as seen by testparm
> 
> [global]
>         idmap gid = 10000-20000
>         idmap uid = 10000-20000

The above have been superseded by 'idmap config' so you can probably
remove them.
 
>         log file = /var/log/samba/log.%m
>         max log size = 1000
>         name resolve order = wins bcast host
>         panic action = /usr/share/samba/panic-action %d
>         security = DOMAIN

Is winbind running ?

>         server string = %h file server (Samba, Ubuntu)
>         template shell = /bin/bash
>         winbind enum groups = Yes
>         winbind enum users = Yes
>         winbind use default domain = Yes
>         wins proxy = Yes
>         wins server = 192.168.1.24
>         workgroup = ATLANTA
>         idmap config * : range = 10000-20000
>         idmap config * : backend = tdb
>         admin users = administrator rob
>         hosts allow = 192.168.1.0/255.255.255.0
> 

Rowland

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba