AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  /etc/sudoers -

    Posted Fri September 15, 2006 01:24 PM

    Originally posted by: SystemAdmin


    want an operator ID to only be able to reset passwd of people in a specific group - using sudo (not sure how to config /etc/sudoers.

    thx
    Dudley


  • 2.  Re: /etc/sudoers -

    Posted Fri September 22, 2006 02:53 PM

    Originally posted by: SystemAdmin


    I would start by writing a shell script similiar to:

    username=user1 #pass as parms
    vgroup=opergrp

    if ( lsgroup -a users $vgroup | grep -q $username )
    then
    # allow operator to change this users password
    passwd $username
    else
    echo "This user is not in opergrp, no change made"
    fi

    I would then add this one particular script to sudo (/etc/sudoers) using the visudo command and adding the necessary entries.