Hi,
To restict root login to the console only edit: /etc/default/login
and add the following line:
CONSOLE=/dev/console
Then, even if you know the root password it will only let you login as root on the machine´'s keyboard, or via a serial line line connected directly to the machine.
To restrict the people who can su to root, create the wheel group in /etc/group and add your admins to it, (it's a comma seperated list) thus:
wheel::11:accout1,account2,account3
etc.
Then issue the following commands:
chgrp wheel /usr/bin/su
chmod 4750 /usr/bin/su
This will mean that only the people in the wheel group can su to root.
You can check for other people trying to su to root with the help of the following, /etc/default/su contains the config file for su, (for details of the file use the "man su" command) this will tell you where the logfile of attempts is made and if attempts are logged to syslog or not. One usefull thing to do is echo su attempts to the console. you can keep a console open on your desktop by launching a small xterm with the -C flag to cause it to capture console messages. Stick it top left on your screen and it will update whenever a console message is passed to it. With su commands it tells you the time, the account name and whether they were successfull or not.
If you're interested in "hardening" Solaris futher then consult the following page:
The following page is also usefull:
especially the "big list"
This will make you smile:
Which includes this:
Which I reckon every PFY should read before they make the leap
Welcome to life as a sysadmin
later
jb