Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • NOPASSWD for yum

    Posted on

    If I have a user (me) in the sudoers as:

    user1 ALL=(ALL) ALL
    

    Is it possible to also enter:

    user1 ALL=(ALL) NOPASSWD: /usr/bin/yum *
    

    The end result is that the user can still run root commands with a password prompt but run yum without a password prompt.
    Is this possible?
    I just tested it and it does not seem to work, unless I am doing something wrong. I also want to be able to run yum update with options too (yum -y update).

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat