Ask Your Question

sudo dnf upgrade -y

asked 2017-01-26 00:50:05 -0500

AnatolijNowak gravatar image

I have a server with a limited user account gamemaster. How can i edit sudoers to allow gamemaster user RUN ONLY dnf upgrade -y with root privileges and without password ?

i have tried visudo and add string

gamemaster ALL=(ALL) NOPASSWD: /bin/dnf upgrade -y

But it says, that there is syntax error

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-01-26 06:45:17 -0500

fcomida gravatar image

updated 2017-01-26 06:53:59 -0500

youruser ALL=(ALL) NOPASSWD: /usr/bin/dnf upgrade -y, PASSWD:ALL

edit flag offensive delete link more

Question Tools


Asked: 2017-01-26 00:50:05 -0500

Seen: 251 times

Last updated: Jan 26 '17