the-bastion/etc/sudoers.d/osh-plugin-accountModifyCommand

5 lines
324 B
Text
Raw Normal View History

2020-10-16 00:32:37 +08:00
# grant access to a command
%osh-accountGrantCommand ALL=(root) NOPASSWD:/usr/bin/env perl -T /opt/bastion/bin/helper/osh-accountModifyCommand --action grant *
# revoke access to a command
%osh-accountRevokeCommand ALL=(root) NOPASSWD:/usr/bin/env perl -T /opt/bastion/bin/helper/osh-accountModifyCommand --action revoke *