Originally posted by: MarkSkinner
I would like to make you aware that I have yum-updated Samba on several AIX servers to the latest code level available on AIX Toolbox and after each update noticed the same problem, which is that Samba -related errors occur on server shutdown and Samba does not automatically start on reboot.
I was able to identify the problem as being invalid links in subdirectories of the /etc/rc.d directory.
Here is what was showing after the code was updated:
# find . -type l -exec ls -ld {} \;
-----------------------------------------------------------------------------
lrwxrwxrwx 1 root system 14 Nov 05 17:13 ./rc2.d/K00cups -> ../init.d/cups
lrwxrwxrwx 1 root system 14 Jan 29 15:19 ./rc2.d/Knmbd -> ../init.d/${i}
lrwxrwxrwx 1 root system 14 Jan 29 15:19 ./rc2.d/Ksmbd -> ../init.d/${i}
lrwxrwxrwx 1 root system 14 Jan 29 15:19 ./rc2.d/Kwinbindd -> ../init.d/${i}
lrwxrwxrwx 1 root system 21 Nov 05 17:13 ./rc2.d/S90sudo -> /etc/rc.d/init.d/sudo
lrwxrwxrwx 1 root system 14 Nov 05 17:13 ./rc2.d/S99cups -> ../init.d/cups
lrwxrwxrwx 1 root system 14 Jan 29 15:19 ./rc2.d/Snmbd -> ../init.d/${i}
lrwxrwxrwx 1 root system 14 Jan 29 15:19 ./rc2.d/Ssmbd -> ../init.d/${i}
lrwxrwxrwx 1 root system 14 Jan 29 15:19 ./rc2.d/Swinbindd -> ../init.d/${i}
lrwxrwxrwx 1 root system 14 Nov 05 17:13 ./rc3.d/K00cups -> ../init.d/cups
lrwxrwxrwx 1 root system 14 Jan 29 15:19 ./rc3.d/Knmbd -> ../init.d/${i}
lrwxrwxrwx 1 root system 14 Jan 29 15:19 ./rc3.d/Ksmbd -> ../init.d/${i}
lrwxrwxrwx 1 root system 14 Jan 29 15:19 ./rc3.d/Kwinbindd -> ../init.d/${i}
lrwxrwxrwx 1 root system 14 Nov 05 17:13 ./rc3.d/S99cups -> ../init.d/cups
lrwxrwxrwx 1 root system 14 Jan 29 15:19 ./rc3.d/Snmbd -> ../init.d/${i}
lrwxrwxrwx 1 root system 14 Jan 29 15:19 ./rc3.d/Ssmbd -> ../init.d/${i}
lrwxrwxrwx 1 root system 14 Jan 29 15:19 ./rc3.d/Swinbindd -> ../init.d/${i}
-----------------------------------------------------------------------------
Here is what the links need to be to work properly (I just backed up/restored the links from a working Samba server):
# find . -type l -exec ls -ld {} \;
-----------------------------------------------------------------------------
lrwxrwxrwx 1 root system 14 Jan 29 2019 ./rc2.d/K00cups -> ../init.d/cups
lrwxrwxrwx 1 root system 14 Aug 01 2019 ./rc2.d/Knmbd -> ../init.d/nmbd
lrwxrwxrwx 1 root system 14 Aug 01 2019 ./rc2.d/Ksmbd -> ../init.d/smbd
lrwxrwxrwx 1 root system 18 Aug 01 2019 ./rc2.d/Kwinbindd -> ../init.d/winbindd
lrwxrwxrwx 1 root system 21 Jan 29 2019 ./rc2.d/S90sudo -> /etc/rc.d/init.d/sudo
lrwxrwxrwx 1 root system 14 Jan 29 2019 ./rc2.d/S99cups -> ../init.d/cups
lrwxrwxrwx 1 root system 14 Aug 01 2019 ./rc2.d/Snmbd -> ../init.d/nmbd
lrwxrwxrwx 1 root system 14 Aug 01 2019 ./rc2.d/Ssmbd -> ../init.d/smbd
lrwxrwxrwx 1 root system 18 Aug 01 2019 ./rc2.d/Swinbindd -> ../init.d/winbindd
lrwxrwxrwx 1 root system 14 Jan 29 2019 ./rc3.d/K00cups -> ../init.d/cups
lrwxrwxrwx 1 root system 14 Aug 01 2019 ./rc3.d/Knmbd -> ../init.d/nmbd
lrwxrwxrwx 1 root system 14 Aug 01 2019 ./rc3.d/Ksmbd -> ../init.d/smbd
lrwxrwxrwx 1 root system 18 Aug 01 2019 ./rc3.d/Kwinbindd -> ../init.d/winbindd
lrwxrwxrwx 1 root system 14 Jan 29 2019 ./rc3.d/S99cups -> ../init.d/cups
lrwxrwxrwx 1 root system 14 Aug 01 2019 ./rc3.d/Snmbd -> ../init.d/nmbd
lrwxrwxrwx 1 root system 14 Aug 01 2019 ./rc3.d/Ssmbd -> ../init.d/smbd
lrwxrwxrwx 1 root system 18 Aug 01 2019 ./rc3.d/Swinbindd -> ../init.d/winbindd
-----------------------------------------------------------------------------
Thanks,
--Mark