Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Suppose if we create nologin file under /etc then only root can login, but if we comment on all line in every file under /etc/pam.d/ then other user also login.

That means these /etc/nologin,/etc/securetty are all controlled by pam only (I guess)

Without PAM how can I achieve the same thing?


Describe the system with PAM and without PAM

I am using CentOS 6.2

share|improve this question
Can you explain what you are hoping to accomplish, or why you don't want to use PAM to accomplish it? It is difficult to know what possible solutions to offer, without knowing what restrictions you are trying to maintain. – Don Simon Aug 27 '12 at 15:10
ok, Then just describe the linux system with PAM and without PAM. – max Aug 27 '12 at 17:24

You must log in to answer this question.

Browse other questions tagged .