version 1.1.1.4, 2013/07/22 10:46:12
|
version 1.1.1.6, 2014/06/15 16:12:54
|
Line 4 NNAAMMEE
|
Line 4 NNAAMMEE
|
vviissuuddoo - edit the sudoers file |
vviissuuddoo - edit the sudoers file |
|
|
SSYYNNOOPPSSIISS |
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 |
DDEESSCCRRIIPPTTIIOONN |
vviissuuddoo edits the _s_u_d_o_e_r_s file in a safe fashion, analogous to vipw(1m). |
vviissuuddoo edits the _s_u_d_o_e_r_s file in a safe fashion, analogous to vipw(1m). |
Line 26 DDEESSCCRRIIPPTTIIOONN
|
Line 26 DDEESSCCRRIIPPTTIIOONN
|
vviissuuddoo parses the _s_u_d_o_e_r_s file after the edit and will not save the |
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 |
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 |
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 |
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 |
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, |
with extreme care because if vviissuuddoo believes there to be a parse error, |
Line 37 DDEESSCCRRIIPPTTIIOONN
|
Line 37 DDEESSCCRRIIPPTTIIOONN
|
|
|
The options are as follows: |
The options are as follows: |
|
|
--cc Enable _c_h_e_c_k_-_o_n_l_y mode. The existing _s_u_d_o_e_r_s file will be | --cc, ----cchheecckk |
| Enable _c_h_e_c_k_-_o_n_l_y mode. The existing _s_u_d_o_e_r_s file will be |
checked for syntax errors, owner and mode. A message will be |
checked for syntax errors, owner and mode. A message will be |
printed to the standard output describing the status of |
printed to the standard output describing the status of |
_s_u_d_o_e_r_s unless the --qq option was specified. If the check |
_s_u_d_o_e_r_s unless the --qq option was specified. If the check |
Line 45 DDEESSCCRRIIPPTTIIOONN
|
Line 46 DDEESSCCRRIIPPTTIIOONN
|
If an error is encountered, vviissuuddoo will exit with a value of |
If an error is encountered, vviissuuddoo will exit with a value of |
1. |
1. |
|
|
--ff _s_u_d_o_e_r_s Specify an alternate _s_u_d_o_e_r_s file location. With this option | --ff _s_u_d_o_e_r_s, ----ffiillee=_s_u_d_o_e_r_s |
vviissuuddoo will edit (or check) the _s_u_d_o_e_r_s file of your choice, | Specify an alternate _s_u_d_o_e_r_s file location. With this |
instead of the default, _/_e_t_c_/_s_u_d_o_e_r_s. The lock file used is | option, vviissuuddoo will edit (or check) the _s_u_d_o_e_r_s file of your |
the specified _s_u_d_o_e_r_s file with ``.tmp'' appended to it. In | choice, instead of the default, _/_e_t_c_/_s_u_d_o_e_r_s. The lock file |
_c_h_e_c_k_-_o_n_l_y mode only, the argument to --ff may be `-', | used is the specified _s_u_d_o_e_r_s file with ``.tmp'' appended to |
| it. In _c_h_e_c_k_-_o_n_l_y mode only, the argument to --ff may be `-', |
indicating that _s_u_d_o_e_r_s will be read from the standard input. |
indicating that _s_u_d_o_e_r_s will be read from the standard input. |
|
|
--hh The --hh (_h_e_l_p) option causes vviissuuddoo to print a short help | --hh, ----hheellpp Display a short help message to the standard output and exit. |
message to the standard output and exit. | |
|
|
--qq Enable _q_u_i_e_t mode. In this mode details about syntax errors | --qq, ----qquuiieett |
| Enable _q_u_i_e_t mode. In this mode details about syntax errors |
are not printed. This option is only useful when combined |
are not printed. This option is only useful when combined |
with the --cc option. |
with the --cc option. |
|
|
--ss Enable _s_t_r_i_c_t checking of the _s_u_d_o_e_r_s file. If an alias is | --ss, ----ssttrriicctt |
| Enable _s_t_r_i_c_t checking of the _s_u_d_o_e_r_s file. If an alias is |
used before it is defined, vviissuuddoo will consider this a parse |
used before it is defined, vviissuuddoo will consider this a parse |
error. Note that it is not possible to differentiate between |
error. Note that it is not possible to differentiate between |
an alias and a host name or user name that consists solely of |
an alias and a host name or user name that consists solely of |
uppercase letters, digits, and the underscore (`_') |
uppercase letters, digits, and the underscore (`_') |
character. |
character. |
|
|
--VV The --VV (_v_e_r_s_i_o_n) option causes vviissuuddoo to print its version | --VV, ----vveerrssiioonn |
number and exit. | 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 |
EENNVVIIRROONNMMEENNTT |
The following environment variables may be consulted depending on the |
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: |
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: |
Line 144 DDIISSCCLLAAIIMMEERR
|
Line 156 DDIISSCCLLAAIIMMEERR
|
file distributed with ssuuddoo or http://www.sudo.ws/sudo/license.html for |
file distributed with ssuuddoo or http://www.sudo.ws/sudo/license.html for |
complete details. |
complete details. |
|
|
Sudo 1.8.7 June 12, 2013 Sudo 1.8.7 | Sudo 1.8.10 February 15, 2014 Sudo 1.8.10 |