As I promised to look the manual for you:
There are two ways mentioned:
The first on is to use Customized Authentication
vi /usr/lib/security/methods.cfg
Then write the following:
secondPassword:
program=/usr/local/bin/getSecondPassword
Then do this
vi /etc/security/user
inside write this:
root:
auth1 = SYSTEM,secondPassword
Now you will have to define your getSecondPassword script. For example:
vi /usr/local/bin/getSecondPassword
Code:
print "Please enter the second Password: "
stty -echo
read PASSWORD
stty echo
if [[ $PASSWORD = "d1f2g3" ]]
then
exit 0
else
exit 255
fi
The second way is to use Two-Key Authentication:
vi /etc/security/user
then write the following:
root:
auth1 = SYSTEM;deputy1,SYSTEM;deputy2
Then when you login you should get something like this:
login: root
deputy1's Password:
deputy2's Password:
both passwords must be entered correctly before root can login.
I never tried the above to be honest. That's as per the manual
Regards,
Khalid