#!/bin/bash

# First handle Pegasus files with no group ownership

x=`/usr/bin/find /etc/init.d/tog-pegasus -gid 1000 | /usr/bin/wc -l`
if [ "$x" != "0" ]; then
   /usr/bin/find /etc /usr /var -gid 1000 2>/dev/null | /usr/bin/xargs chown -h root.root
fi

# miscellaneous files

chmod 644 /dev/audio 2>/dev/null
chown root.root /dev/audio 2>/dev/null
chmod 440 /etc/xinetd.conf 2>/dev/null
chmod 644 /etc/skel/.fonts 2>/dev/null
chmod 644 /etc/skel/.mozilla 2>/dev/null
chmod 640 /etc/security/access.conf 2>/dev/null
chmod 600 /etc/sysctl.conf 2>/dev/null
chown hscroot.hmc /home/hscroot 2>/dev/null


# now handle unused account

/usr/bin/chsh -s /bin/false ftp 2>&1 >/dev/null
/usr/bin/chsh -s /bin/false games 2>&1 >/dev/null
/usr/bin/chsh -s /bin/false news 2>&1 >/dev/null
/usr/bin/chsh -s /bin/false uucp 2>&1 >/dev/null

exit 0

