Binand Raj S rearranged electrons thusly:
> > also su in pam.d i created the wheel group and added root and user1 to
> > that but still user2 is able to do su.
> I don't get what you mean here. How do you create groups in /etc/pam.d?
> If you want to add a group, then use the groupadd(8) command. To add
> users to that new group use the usermod(8) command.
I think he wants to modify pam.d so that only members of the "wheel" group can
su ...
Try
su auth required /lib/security/pam_wheel.so group=wheel
in /etc/pam.conf
--suresh
--
Suresh Ramasubramanian <--> mallet <at> efn <dot> org
EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin
----------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/LIH