NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
nasageek
Nov 10, 2011Aspirant
Disable Unused Services (CUPS for instance)?
Is there any way to turn off unused daemons in the ReadyNAS Duo? My IT security department has flagged my NAS as having a vulnerability in CUPS. That's fine, I don't use it as a print server, so I w...
chirpa
Nov 10, 2011Luminary
$ grep -B15 -n /usr/sbin/cupsd /etc/rc2.d/S01readynas_startup
388-# don't start cupsd for rackmount
389-rackmount="1500 2100 3100 3200 4200"
390-is_rackmount=0
391-for model in $rackmount
392-do
393- if grep "model:" /proc/sys/dev/boot/info | grep -q $model ; then
394- is_rackmount=1
395- break
396- fi
397-done
398-if [ $is_rackmount -eq 1 ]; then
399- if grep -q "load printers = 1" /etc/samba/smb.conf ; then
400- sed -i 's/load printers = 1/load printers = 0/' /etc/samba/smb.conf
401- fi
402-else
403: start-stop-daemon -q -S -mp /var/run/cupsd.pid -x /usr/sbin/cupsd
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!