I tried to write script for generation of big amount of sudo rules. I followed the upstream documentation[1] "Example 14.1. Creating Basic sudo Rules"
There is a command:
$ ipa sudorule-add-allow-command --sudocmd "/usr/bin/vim" files-commands Rule name: files-commands Enabled: TRUE sudo Commands: /usr/bin/vim ------------------------- Number of members added 1 -------------------------
Unfortunately, the real output is different:
Usage: ipa [global-options] sudorule-add-allow-command SUDORULE-NAME [options] ipa: error: ambiguous option: --sudocmd (--sudocmdgroups, --sudocmds?)
[1] http://www.freeipa.org/docs/master/html-desktop/index.html#defining-sudorules
attachment freeipa-rga-0026-Typo-in-upstream-documentation.patch
Docs master: 16f7ff509147c46b1b7188e131e948432ca9bfaf Typo in upstream documentation
Ticket has been cloned to Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1124355
Metadata Update from @lslebodn: - Issue assigned to rga - Issue set to the milestone: FreeIPA 4.0.2
Login to comment on this ticket.