I search about visudo
and got three ideas:
user ALL=(ALL) NOPASSWD: command
user ALL=(ALL:ALL) NOPASSWD: command
user ALL=NOPASSWD: command
which one is better to make a passwordless program?
I search about visudo
and got three ideas:
user ALL=(ALL) NOPASSWD: command
user ALL=(ALL:ALL) NOPASSWD: command
user ALL=NOPASSWD: command
which one is better to make a passwordless program?
It depends on what you want to achieve and you did not explain it. All three will work to some extent, they differ in possible target users/groups. This is described rather extensively in man sudoers
.
Can you explain ALL=(ALL)
, ALL=(ALL:ALL)
, ALL=NOPASSWD
? I don’t know what they are doing more than I know, what I know is them can make the command passwordless.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.