Results 1 to 2 of 2

Thread: restricting user who can su to root

  1. #1
    takiza-n NNTP User

    Default restricting user who can su to root

    Hello,

    Env: OpenSuSE 11.1

    I want to restrict users who can su to root by using pam_wheel.so module.
    So, I edited /etc/pam.d/su to following.

    #%PAM-1.0
    auth sufficient pam_rootok.so
    auth required pam_wheel.so use_uid
    auth include common-auth
    account include common-account
    password include common-password
    session include common-session
    session optional pam_xauth.so

    But, a user who is not belong to wheel group still can su to root..

    Please help!

  2. #2
    Join Date
    Jun 2008
    Location
    West Yorkshire, UK
    Posts
    3,611

    Default Re: restricting user who can su to root

    The simple answer is to change the root password and don't tell any users - or only those whom you want to be able to use su.

    But why would a user need to use su?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •