--- embedaddon/sudo/doc/visudo.cat 2013/10/14 07:56:34 1.1.1.5 +++ embedaddon/sudo/doc/visudo.cat 2014/06/15 16:12:54 1.1.1.6 @@ -4,7 +4,7 @@ NNAAMMEE vviissuuddoo - edit the sudoers file SSYYNNOOPPSSIISS - vviissuuddoo [--cchhqqssVV] [--ff _s_u_d_o_e_r_s] + vviissuuddoo [--cchhqqssVV] [--ff _s_u_d_o_e_r_s] [--xx _f_i_l_e] DDEESSCCRRIIPPTTIIOONN vviissuuddoo edits the _s_u_d_o_e_r_s file in a safe fashion, analogous to vipw(1m). @@ -26,7 +26,7 @@ DDEESSCCRRIIPPTTIIOONN vviissuuddoo parses the _s_u_d_o_e_r_s file after the edit and will not save the changes if there is a syntax error. Upon finding an error, vviissuuddoo will print a message stating the line number(s) where the error occurred and - the user will receive the ``What now?'' prompt. At this point the user + the user will receive the ``What now?'' prompt. At this point the user may enter `e' to re-edit the _s_u_d_o_e_r_s file, `x' to exit without saving the changes, or `Q' to quit and save changes. The `Q' option should be used with extreme care because if vviissuuddoo believes there to be a parse error, @@ -72,6 +72,15 @@ DDEESSCCRRIIPPTTIIOONN --VV, ----vveerrssiioonn Print the vviissuuddoo and _s_u_d_o_e_r_s grammar versions and exit. + --xx _f_i_l_e, ----eexxppoorrtt=_f_i_l_e + Export _s_u_d_o_e_r_s in JSON format and write it to _f_i_l_e. If _f_i_l_e + is `-', the exported _s_u_d_o_e_r_s policy will be written to the + standard output. The exported format is intended to be + easier for third-party applications to parse than the + traditional _s_u_d_o_e_r_s format. The various values have explicit + types which removes much of the ambiguity of the _s_u_d_o_e_r_s + format. + EENNVVIIRROONNMMEENNTT The following environment variables may be consulted depending on the value of the _e_d_i_t_o_r and _e_n_v___e_d_i_t_o_r _s_u_d_o_e_r_s settings: @@ -147,4 +156,4 @@ DDIISSCCLLAAIIMMEERR file distributed with ssuuddoo or http://www.sudo.ws/sudo/license.html for complete details. -Sudo 1.8.8 August 14, 2013 Sudo 1.8.8 +Sudo 1.8.10 February 15, 2014 Sudo 1.8.10