Pluggable Authentication mode (PAM) RHEL 5

  • Share
  • CevherShare
  • Share

 

PAM – Pluggable Authentication Module. PAM was first proposed by Sun Microsystem  in 1995 and it was first adopted with Redhat Linux in 1996.

PAM provides permissions for service and process to work. To secure the system from users as well as from root access PAM will be used and it give all types of security purpose. PAM configuration can control root access and its functionality.

#cd /etc/pam.d
pam.d is the directory for PAM working and its structure. PAM configuration files will be available only in this directory.

 

reboot is the file where we can configure our system for user with disabled reboot option, with the below code we can make it. reboot is inside /etc/pam.d

Read: How To: Configure LINUX – User Can Login in Specified Days Only

#cd /etc/pam.d

#vim reboot

#%pam-1.0
auth required pam_rootok.so
auth required pam_console.so

:wq!

By doing this , a user can’t reboot the system by using reboot command(i.e, Reboot command will not work for user to reboot the system)

This type of configuration will be used for online test, because if we reboot our system our dynamic IP will get changed and can get a another chance of writing exam.

Read: How To : Allow Root, Users To Login Only Through Specified Terminals With PAM

prasad

About prasad

Prasad K has written 111 post in this blog.

One Response to Pluggable Authentication mode (PAM) RHEL 5

  1. Tad Knights says:

    My site is nothing like this. You should be producing a ridicolous quantity of visitors with this excellent content material you may have.