Operating System - HP-UX
1833780 Members
2769 Online
110063 Solutions
New Discussion

Re: SU restriction using PAM

 
Selvakumar_4
Occasional Advisor

SU restriction using PAM

Hi,

Just I would like to do su restriction to oracle user same like su to root.

How can we configure this in /etc/pam.conf.

Thanks,
Selva
4 REPLIES 4
Marcel Boogert_1
Trusted Contributor

Re: SU restriction using PAM

Selvakumar_4
Occasional Advisor

Re: SU restriction using PAM

MB,

Thanks for your response.
I don't have /etc/pam.d in my HP system.
I have only 2 files in /etc

1. pam.conf
2. pam_user.conf

Thanks,
Selva
Ivan Ferreira
Honored Contributor

Re: SU restriction using PAM

I believe that what you want cannot be done with pam. But you can use sudo, and enable a specific list of users use su - oracle:

# visudo

User_Alias ORACLESU = user1, user2, user3

ORACLESU ALL = /usr/bin/su - oracle

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Selvakumar_4
Occasional Advisor

Re: SU restriction using PAM

Ivan,

Thanks. In our environment we are not encouraging SUDO. Do I need latest PAM to achieve this. Because we could do in Linux.

Pls advice.

Thanks,
Selva