Originally posted by: ejk
I updated Samba from 4.6.11-1 to 4.10.6-1, using "yum update".
The yum update was successful, but it left these broken symbolic links to /etc/rc.d/rc2.d directory.
lrwxrwxrwx 1 root system 14 Dec 10 15:05 Swinbindd -> ../init.d/${i}
lrwxrwxrwx 1 root system 14 Dec 10 15:05 Kwinbindd -> ../init.d/${i}
lrwxrwxrwx 1 root system 14 Dec 10 15:05 Snmbd -> ../init.d/${i}
lrwxrwxrwx 1 root system 14 Dec 10 15:05 Ksmbd -> ../init.d/${i}
lrwxrwxrwx 1 root system 14 Dec 10 15:05 Knmbd -> ../init.d/${i}
lrwxrwxrwx 1 root system 14 Dec 10 15:05 Ssmbd -> ../init.d/${i}
These were fixed using this script:
cd /etc/rc.d/rc2.d && for i in winbindd nmbd smbd
do
for j in S K
do
ln -sf "../init.d/${i}" "${j}${i}"
done
done
IMHO the most likely reason was use of single quotes aka ' instead of double quotes aka " in the shell script that created these symbolic links.
#AIX-Open-Source-Software#AIXOpenSource