Trying to add chown user:group /dir/* to /etc/sudoers: syntax error near line xx What now?

Solution Verified - Updated -

Issue

We are trying to add /bin/chown user:group /dir/* to a Cmnd_Alias in the sudoers file but getting error:

>>> /etc/sudoers: syntax error near line xx <<<<
>What now?

Environment

  • Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content