Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 396 Bytes

README.md

File metadata and controls

13 lines (7 loc) · 396 Bytes

sudoers-add

Bash script that takes a sudoers config validates it and adds it to /etc/sudoers.d/{sudoers-file-name}

Usage

sudoers-add [file_path] [sudoers-file-name]

[content] | sudoers-add sudoers-file-name

This will take a sudoers config validate it and add it to /etc/sudoers.d/{sudoers-file-name}

The config can come from a file, first usage example or piped in second example.