mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Initial revision
This commit is contained in:
90
options.h
Normal file
90
options.h
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* CU sudo version 1.3.1
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 1, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* Please send bugs, changes, problems to sudo-bugs@cs.colorado.edu
|
||||
*/
|
||||
|
||||
/* XXX - this should be include *AFTER* sudo.h */
|
||||
|
||||
#ifndef _SUDO_OPTIONS_H
|
||||
#define _SUDO_OPTINOS_H
|
||||
|
||||
/*
|
||||
* DANGER DANGER DANGER!
|
||||
* Before you change anything here read through the OPTIONS file
|
||||
* for a description of what this stuff does.
|
||||
*/
|
||||
|
||||
/* Configurable Sudo options */
|
||||
|
||||
/*#define FQDN /* expect fully qualified hosts in sudoers */
|
||||
#define LOGGING SLOG_SYSLOG /* log via SLOG_SYSLOG, SLOG_FILE, SLOG_BOTH */
|
||||
#define LOGFAC LOG_LOCAL2 /* syslog facility for sudo to use */
|
||||
#define MAXLOGFILELEN 80 /* max chars per log line (for line wrapping) */
|
||||
/*#define NO_ROOT_SUDO /* root is not allowed to use sudo */
|
||||
#define SUDOERS_OWNER "root" /* sudoers file owner (usually root) */
|
||||
/*#define EXEMPTGROUP 100 /* no passwd needed for users in this group */
|
||||
#define ALERTMAIL "root" /* user that gets sudo mail */
|
||||
#define SEND_MAIL_WHEN_NO_USER /* send mail when user not in sudoers file */
|
||||
/*#define SEND_MAIL_WHEN_NOT_OK /* send mail if no permissions to run command */
|
||||
/*#define ENV_EDITOR /* visudo honors EDITOR and VISUAL envars */
|
||||
#define SHORT_MESSAGE /* short sudo message, no copyright printed */
|
||||
#define TIMEOUT 5 /* minutes before sudo asks for passwd again */
|
||||
#define PASSWORD_TIMEOUT 5 /* passwd prompt timeout (in minutes) */
|
||||
#define TRIES_FOR_PASSWORD 3 /* number of tries to enter passwd correctly */
|
||||
/*#define USE_INSULTS /* insult the user for incorrect passwords */
|
||||
/*#define HAL /* 2001-like insults--must define USE_INSULTS */
|
||||
/*#define USE_EXECV /* use execv() instead of execvp() */
|
||||
#define EDITOR _PATH_VI /* default editor to use */
|
||||
#define MAILER _PATH_SENDMAIL /* what mailer to use */
|
||||
#define UMASK 0022 /* umask that the root-run prog should use */
|
||||
#define INCORRECT_PASSWORD "Sorry, try again." /* message for bad passwd */
|
||||
#define MAILSUBJECT "*** SECURITY information ***" /* subject of mail sent */
|
||||
/*#define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/etc:/etc" /* secure path */
|
||||
|
||||
/********** You probably don't want to modify anything below here ***********/
|
||||
|
||||
#ifdef USE_EXECV
|
||||
# define EXEC execv
|
||||
#else
|
||||
# define EXEC execvp
|
||||
#endif /* USE_EXECV */
|
||||
|
||||
/*
|
||||
* syslog(3) parameters
|
||||
*/
|
||||
|
||||
#if (LOGGING & SLOG_SYSLOG)
|
||||
# include <syslog.h>
|
||||
# ifndef Syslog_ident
|
||||
# define Syslog_ident "sudo"
|
||||
# endif
|
||||
# ifndef Syslog_options
|
||||
# define Syslog_options 0
|
||||
# endif
|
||||
# if !defined(Syslog_facility) && defined(LOG_NFACILITIES)
|
||||
# define Syslog_facility LOGFAC
|
||||
# endif
|
||||
# ifndef Syslog_priority_OK
|
||||
# define Syslog_priority_OK LOG_NOTICE
|
||||
# endif
|
||||
# ifndef Syslog_priority_NO
|
||||
# define Syslog_priority_NO LOG_ALERT
|
||||
# endif
|
||||
#endif /* LOGGING & SLOG_SYSLOG */
|
||||
|
||||
#endif /* _SUDO_OPTIONS_H */
|
Reference in New Issue
Block a user