V
V
Vladislav2022-03-20 12:02:54
linux
Vladislav, 2022-03-20 12:02:54

How to grant permissions to a user for a command in Linux?

Tell me how to give the user the right to command chown
The user is in the sudo group. It can execute the command, but you need to write sudo before the command.
How can I make it able to run this command without sudo and password?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
vreitech, 2022-03-20
@cr1gger

You can "remove" sudo through alias in .bashrc.
You can remove the password requirement with the NOPASSWD directive: in /etc/sudoers.

D
Drno, 2022-03-20
@Drno

Don't do it like that :(

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question