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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In