=head1 SYNOPSIS
-B<sudo> S<[B<-D> I<level>]> B<-h> | B<-K> | B<-k> | B<-V>
+B<sudo> B<-h> | B<-K> | B<-k> | B<-V>
B<sudo> B<-v> [B<-AknS>]
S<[B<-a> I<auth_type>]>
-S<[B<-D> I<level>]>
S<[B<-g> I<group name>|I<#gid>]> S<[B<-p> I<prompt>]>
S<[B<-u> I<user name>|I<#uid>]>
B<sudo> B<-l[l]> [B<-AknS>]
S<[B<-a> I<auth_type>]>
-S<[B<-D> I<level>]>
S<[B<-g> I<group name>|I<#gid>]> S<[B<-p> I<prompt>]>
S<[B<-U> I<user name>]> S<[B<-u> I<user name>|I<#uid>]> [I<command>]
B<sudo> [B<-AbEHnPS>]
S<[B<-a> I<auth_type>]>
S<[B<-C> I<fd>]>
-S<[B<-D> I<level>]>
S<[B<-c> I<class>|I<->]>
S<[B<-g> I<group name>|I<#gid>]> S<[B<-p> I<prompt>]>
S<[B<-r> I<role>]> S<[B<-t> I<type>]>
S<[B<-a> I<auth_type>]>
S<[B<-C> I<fd>]>
S<[B<-c> I<class>|I<->]>
-S<[B<-D> I<level>]>
S<[B<-g> I<group name>|I<#gid>]> S<[B<-p> I<prompt>]>
S<[B<-u> I<user name>|I<#uid>]> file ...
as root, or the B<sudo> command must be run from a shell that is already
root. This option is only available on systems with BSD login classes.
-=item -D I<level>
-
-Enable debugging of B<sudo> plugins and B<sudo> itself. The I<level>
-may be a value from 1 through 9.
-
=item -E
The B<-E> (I<preserve> I<environment>) option indicates to the
{ "login_class" },
#define ARG_DEBUG_FLAGS 2
{ "debug_flags" },
-#define ARG_DEBUG_LEVEL 3
- { "debug_level" },
-#define ARG_PRESERVE_ENVIRONMENT 4
+#define ARG_PRESERVE_ENVIRONMENT 3
{ "preserve_environment" },
-#define ARG_RUNAS_GROUP 5
+#define ARG_RUNAS_GROUP 4
{ "runas_group" },
-#define ARG_SET_HOME 6
+#define ARG_SET_HOME 5
{ "set_home" },
-#define ARG_USER_SHELL 7
+#define ARG_USER_SHELL 6
{ "run_shell" },
-#define ARG_LOGIN_SHELL 8
+#define ARG_LOGIN_SHELL 7
{ "login_shell" },
-#define ARG_IGNORE_TICKET 9
+#define ARG_IGNORE_TICKET 8
{ "ignore_ticket" },
-#define ARG_PROMPT 10
+#define ARG_PROMPT 9
{ "prompt" },
-#define ARG_SELINUX_ROLE 11
+#define ARG_SELINUX_ROLE 10
{ "selinux_role" },
-#define ARG_SELINUX_TYPE 12
+#define ARG_SELINUX_TYPE 11
{ "selinux_type" },
-#define ARG_RUNAS_USER 13
+#define ARG_RUNAS_USER 12
{ "runas_user" },
-#define ARG_PROGNAME 14
+#define ARG_PROGNAME 13
{ "progname" },
-#define ARG_IMPLIED_SHELL 15
+#define ARG_IMPLIED_SHELL 14
{ "implied_shell" },
-#define ARG_PRESERVE_GROUPS 16
+#define ARG_PRESERVE_GROUPS 15
{ "preserve_groups" },
-#define ARG_NONINTERACTIVE 17
+#define ARG_NONINTERACTIVE 16
{ "noninteractive" },
-#define ARG_SUDOEDIT 18
+#define ARG_SUDOEDIT 17
{ "sudoedit" },
-#define ARG_CLOSEFROM 19
+#define ARG_CLOSEFROM 18
{ "closefrom" },
-#define ARG_NET_ADDRS 20
+#define ARG_NET_ADDRS 19
{ "network_addrs" },
-#define NUM_SETTINGS 21
+#define NUM_SETTINGS 20
{ NULL }
};
break;
#endif
case 'D':
- if ((debug_level = atoi(optarg)) < 1 || debug_level > 9) {
- warningx(_("the argument to -D must be between 1 and 9 inclusive"));
- usage(1);
- }
- sudo_settings[ARG_DEBUG_LEVEL].value = optarg;
+ /* Ignored for backwards compatibility. */
break;
case 'E':
sudo_settings[ARG_PRESERVE_ENVIRONMENT].value = "true";
/* sudo.c */
bool exec_setup(struct command_details *details, const char *ptyname, int ptyfd);
int run_command(struct command_details *details);
-extern int debug_level;
extern const char *list_user, *runas_user, *runas_group;
extern struct user_details user_details;