JET install sudo config

From JetResources
Jump to: navigation, search

Parent

install_sudo_config

#!/usr/bin/ksh

if [ ! -f "/usr/local/etc/sudoers" ] ; then
  exit
fi

echo "jsmith ALL=(ALL) NOPASSWD: ALL" >> /usr/local/etc/sudoers 
echo "sysadmin ALL=(ALL) NOPASSWD: ALL" >> /usr/local/etc/sudoers
chgrp root /usr/local/etc/sudoers
chmod 0440 /usr/local/etc/sudoers
chmod u+s /usr/local/bin/sudo
if [ -d "/opt/SUNWexplo/output" ] ; then
    chmod 755 /opt/SUNWexplo/output
fi