On Fri, Apr 04, 2003 at 08:25:48PM +0200, Maarten wrote: > I am currently running a redhat server on which multiple 2 groups of > administrators (lets say group A and group B) are logging in for different > kinds of tasks. I would like to allow both groups to use the su binary to > change into another user. > > group a is allowed to su to root > group b is allowed to su to control
I think you might be interested in the "sudo" command for at least part of your requirements here. The man page fopr sudo doesn't quite communicate everything its capable of so you would be wise to seek some other sources on the net. > > If a member of group A is suing to root, I would like him to provide the > root password before he is granted these privileges. If a member of group b > is suing to control, I would like him to gain the control identity, without > having to enter a password first. Members of group b should not be allowed > to su to root. > > Now, I am having a bit of a problem to implement these features. With my > current implementation I managed to: > - Allow group a to su to root > - allow group b to su to control > - disallow group b to su to root > Nevertheless, group b still has to enter a password in order to su to > control. I managed to get group b to su to control without a password by > adding the next line to /etc/pam.d/su: > auth sufficient /lib/security/pam_wheel.so trust use_uid group=b > however, now group b is also able to su to root without providing a > password, and that is something I definately do not want... > > Does any of you here have the answer on what line I should add to my pam > configuration in order to grant group b just those rights to su to control > without a password? My configuration is included below. > > thanks! maarten > > /etc/pam.d/su > auth sufficient /lib/security/pam_rootok.so > auth required /lib/security/pam_stack.so service=system-auth > auth sufficient /lib/security/pam_stack.so service=root-members > auth sufficient /lib/security/pam_stack.so service=other-members > auth required /lib/security/pam_deny.so > account required /lib/security/pam_stack.so service=system-auth > password required /lib/security/pam_stack.so service=system-auth > session required /lib/security/pam_stack.so service=system-auth > session optional /lib/security/pam_xauth.so > > /etc/pam.d/root-members > auth required /lib/security/pam_wheel.so use_uid group=wheel > auth required /lib/security/pam_listfile.so item=user sense=allow > onerr=fail file=/etc/pam.d/root > > /etc/pam.d/root > root > > /etc/pam.d/other-members > auth sufficient /lib/security/pam_wheel.so trust use_uid > auth sufficient /lib/security/pam_stack.so service=control-members > auth required /lib/security/pam_deny.so > > /etc/pam.d/control-members > auth required /lib/security/pam_wheel.so use_uid group=control > auth required /lib/security/pam_listfile.so item=user sense=allow > onerr=fail file=/etc/pam.d/control > > /etc/pam.d/control > control > > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list > -- Jeff Kinz, Open-PC, Emergent Research, Hudson, MA. [EMAIL PROTECTED] copyright 2003. Use is restricted. Any use is an acceptance of the offer at http://www.kinz.org/policy.html. Don't forget to change your password often. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
