Re-indent.
This commit is contained in:
parent
3dd5866244
commit
8c229ea473
@ -61,18 +61,18 @@ static struct stat statbuf; /* fstat buffer for file size */
|
|||||||
static void usage (void)
|
static void usage (void)
|
||||||
{
|
{
|
||||||
fputs (_("Usage: faillog [options]\n"
|
fputs (_("Usage: faillog [options]\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Options:\n"
|
"Options:\n"
|
||||||
" -a, --all display faillog records for all users\n"
|
" -a, --all display faillog records for all users\n"
|
||||||
" -h, --help display this help message and exit\n"
|
" -h, --help display this help message and exit\n"
|
||||||
" -l, --lock-time SEC after failed login lock accout to SEC seconds\n"
|
" -l, --lock-time SEC after failed login lock accout to SEC seconds\n"
|
||||||
" -m, --maximum MAX set maximum failed login counters to MAX\n"
|
" -m, --maximum MAX set maximum failed login counters to MAX\n"
|
||||||
" -r, --reset reset the counters of login failures\n"
|
" -r, --reset reset the counters of login failures\n"
|
||||||
" -t, --time DAYS display faillog records more recent than DAYS\n"
|
" -t, --time DAYS display faillog records more recent than DAYS\n"
|
||||||
" -u, --user LOGIN display faillog record or maintains failure\n"
|
" -u, --user LOGIN display faillog record or maintains failure\n"
|
||||||
" counters and limits (if used with -r, -m or -l\n"
|
" counters and limits (if used with -r, -m or -l\n"
|
||||||
" options) only for user with LOGIN\n"
|
" options) only for user with LOGIN\n"
|
||||||
"\n"), stderr);
|
"\n"), stderr);
|
||||||
exit (E_USAGE);
|
exit (E_USAGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -106,16 +106,16 @@ static void check_perms (void);
|
|||||||
static void usage (void)
|
static void usage (void)
|
||||||
{
|
{
|
||||||
fputs (_("Usage: groupadd [options] GROUP\n"
|
fputs (_("Usage: groupadd [options] GROUP\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Options:\n"
|
"Options:\n"
|
||||||
" -f, --force force exit with success status if the\n"
|
" -f, --force force exit with success status if the\n"
|
||||||
" specified group already exists\n"
|
" specified group already exists\n"
|
||||||
" -g, --gid GID use GID for the new group\n"
|
" -g, --gid GID use GID for the new group\n"
|
||||||
" -h, --help display this help message and exit\n"
|
" -h, --help display this help message and exit\n"
|
||||||
" -K, --key KEY=VALUE overrides /etc/login.defs defaults\n"
|
" -K, --key KEY=VALUE overrides /etc/login.defs defaults\n"
|
||||||
" -o, --non-unique allow create group with duplicate\n"
|
" -o, --non-unique allow create group with duplicate\n"
|
||||||
" (non-unique) GID\n"
|
" (non-unique) GID\n"
|
||||||
"\n"), stderr);
|
"\n"), stderr);
|
||||||
exit (E_USAGE);
|
exit (E_USAGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -101,14 +101,14 @@ static gid_t get_gid (const char *gidstr);
|
|||||||
static void usage (void)
|
static void usage (void)
|
||||||
{
|
{
|
||||||
fputs (_("Usage: groupmod [options] GROUP\n"
|
fputs (_("Usage: groupmod [options] GROUP\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Options:\n"
|
"Options:\n"
|
||||||
" -g, --gid GID force use new GID by GROUP\n"
|
" -g, --gid GID force use new GID by GROUP\n"
|
||||||
" -h, --help display this help message and exit\n"
|
" -h, --help display this help message and exit\n"
|
||||||
" -n, --new-name NEW_GROUP force use NEW_GROUP name by GROUP\n"
|
" -n, --new-name NEW_GROUP force use NEW_GROUP name by GROUP\n"
|
||||||
" -o, --non-unique allow using duplicate (non-unique) GID by GROUP\n"
|
" -o, --non-unique allow using duplicate (non-unique) GID by GROUP\n"
|
||||||
" -p, --password PASSWORD use encrypted password for the new password\n"
|
" -p, --password PASSWORD use encrypted password for the new password\n"
|
||||||
"\n"), stderr);
|
"\n"), stderr);
|
||||||
exit (E_USAGE);
|
exit (E_USAGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,13 +69,13 @@ static struct passwd *pwent;
|
|||||||
static void usage (void)
|
static void usage (void)
|
||||||
{
|
{
|
||||||
fputs (_("Usage: lastlog [options]\n"
|
fputs (_("Usage: lastlog [options]\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Options:\n"
|
"Options:\n"
|
||||||
" -b, --before DAYS print only lastlog records older than DAYS\n"
|
" -b, --before DAYS print only lastlog records older than DAYS\n"
|
||||||
" -h, --help display this help message and exit\n"
|
" -h, --help display this help message and exit\n"
|
||||||
" -t, --time DAYS print only lastlog records more recent than DAYS\n"
|
" -t, --time DAYS print only lastlog records more recent than DAYS\n"
|
||||||
" -u, --user LOGIN print lastlog record of the specified LOGIN\n"
|
" -u, --user LOGIN print lastlog record of the specified LOGIN\n"
|
||||||
"\n"), stderr);
|
"\n"), stderr);
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
40
src/passwd.c
40
src/passwd.c
@ -144,26 +144,26 @@ static long getnumber (const char *);
|
|||||||
static void usage (int status)
|
static void usage (int status)
|
||||||
{
|
{
|
||||||
fputs (_("Usage: passwd [options] [LOGIN]\n"
|
fputs (_("Usage: passwd [options] [LOGIN]\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Options:\n"
|
"Options:\n"
|
||||||
" -a, --all report password status on all accounts\n"
|
" -a, --all report password status on all accounts\n"
|
||||||
" -d, --delete delete the password for the named account\n"
|
" -d, --delete delete the password for the named account\n"
|
||||||
" -e, --expire force expire the password for the named account\n"
|
" -e, --expire force expire the password for the named account\n"
|
||||||
" -h, --help display this help message and exit\n"
|
" -h, --help display this help message and exit\n"
|
||||||
" -k, --keep-tokens change password only if expired\n"
|
" -k, --keep-tokens change password only if expired\n"
|
||||||
" -i, --inactive INACTIVE set password inactive after expiration\n"
|
" -i, --inactive INACTIVE set password inactive after expiration\n"
|
||||||
" to INACTIVE\n"
|
" to INACTIVE\n"
|
||||||
" -l, --lock lock the named account\n"
|
" -l, --lock lock the named account\n"
|
||||||
" -n, --mindays MIN_DAYS set minimum number of days before password\n"
|
" -n, --mindays MIN_DAYS set minimum number of days before password\n"
|
||||||
" change to MIN_DAYS\n"
|
" change to MIN_DAYS\n"
|
||||||
" -q, --quiet quiet mode\n"
|
" -q, --quiet quiet mode\n"
|
||||||
" -r, --repository REPOSITORY change password in REPOSITORY repository\n"
|
" -r, --repository REPOSITORY change password in REPOSITORY repository\n"
|
||||||
" -S, --status report password status on the named account\n"
|
" -S, --status report password status on the named account\n"
|
||||||
" -u, --unlock unlock the named account\n"
|
" -u, --unlock unlock the named account\n"
|
||||||
" -w, --warndays WARN_DAYS set expiration warning days to WARN_DAYS\n"
|
" -w, --warndays WARN_DAYS set expiration warning days to WARN_DAYS\n"
|
||||||
" -x, --maxdays MAX_DAYS set maximim number of days before password\n"
|
" -x, --maxdays MAX_DAYS set maximim number of days before password\n"
|
||||||
" change to MAX_DAYS\n"
|
" change to MAX_DAYS\n"
|
||||||
"\n"), stderr);
|
"\n"), stderr);
|
||||||
exit (status);
|
exit (status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
20
src/su.c
20
src/su.c
@ -275,16 +275,16 @@ static void run_shell (const char *shellstr, char *args[], int doshell,
|
|||||||
static void usage (void)
|
static void usage (void)
|
||||||
{
|
{
|
||||||
fputs (_("Usage: su [options] [LOGIN]\n"
|
fputs (_("Usage: su [options] [LOGIN]\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Options:\n"
|
"Options:\n"
|
||||||
" -c, --command COMMAND pass COMMAND to the invoked shell\n"
|
" -c, --command COMMAND pass COMMAND to the invoked shell\n"
|
||||||
" -h, --help display this help message and exit\n"
|
" -h, --help display this help message and exit\n"
|
||||||
" -, -l, --login make the shell a login shell\n"
|
" -, -l, --login make the shell a login shell\n"
|
||||||
" -m, -p,\n"
|
" -m, -p,\n"
|
||||||
" --preserve-environment do not reset environment variables, and\n"
|
" --preserve-environment do not reset environment variables, and\n"
|
||||||
" keep the same shell\n"
|
" keep the same shell\n"
|
||||||
" -s, --shell SHELL use SHELL instead of the default in passwd\n"
|
" -s, --shell SHELL use SHELL instead of the default in passwd\n"
|
||||||
"\n"), stderr);
|
"\n"), stderr);
|
||||||
exit (E_USAGE);
|
exit (E_USAGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -612,34 +612,34 @@ static int get_groups (char *list)
|
|||||||
static void usage (void)
|
static void usage (void)
|
||||||
{
|
{
|
||||||
fputs (_("Usage: useradd [options] LOGIN\n"
|
fputs (_("Usage: useradd [options] LOGIN\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Options:\n"
|
"Options:\n"
|
||||||
" -b, --base-dir BASE_DIR base directory for the new user account\n"
|
" -b, --base-dir BASE_DIR base directory for the new user account\n"
|
||||||
" home directory\n"
|
" home directory\n"
|
||||||
" -c, --comment COMMENT set the GECOS field for the new user account\n"
|
" -c, --comment COMMENT set the GECOS field for the new user account\n"
|
||||||
" -d, --home-dir HOME_DIR home directory for the new user account\n"
|
" -d, --home-dir HOME_DIR home directory for the new user account\n"
|
||||||
" -D, --defaults print or save modified default useradd\n"
|
" -D, --defaults print or save modified default useradd\n"
|
||||||
" configuration\n"
|
" configuration\n"
|
||||||
" -e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE\n"
|
" -e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE\n"
|
||||||
" -f, --inactive INACTIVE set password inactive after expiration\n"
|
" -f, --inactive INACTIVE set password inactive after expiration\n"
|
||||||
" to INACTIVE\n"
|
" to INACTIVE\n"
|
||||||
" -g, --gid GROUP force use GROUP for the new user account\n"
|
" -g, --gid GROUP force use GROUP for the new user account\n"
|
||||||
" -G, --groups GROUPS list of supplementary groups for the new\n"
|
" -G, --groups GROUPS list of supplementary groups for the new\n"
|
||||||
" user account\n"
|
" user account\n"
|
||||||
" -h, --help display this help message and exit\n"
|
" -h, --help display this help message and exit\n"
|
||||||
" -k, --skel SKEL_DIR specify an alternative skel directory\n"
|
" -k, --skel SKEL_DIR specify an alternative skel directory\n"
|
||||||
" -K, --key KEY=VALUE overrides /etc/login.defs defaults\n"
|
" -K, --key KEY=VALUE overrides /etc/login.defs defaults\n"
|
||||||
" -l, do not add the user to the lastlog and\n"
|
" -l, do not add the user to the lastlog and\n"
|
||||||
" faillog databases\n"
|
" faillog databases\n"
|
||||||
" -m, --create-home create home directory for the new user\n"
|
" -m, --create-home create home directory for the new user\n"
|
||||||
" account\n"
|
" account\n"
|
||||||
" -o, --non-unique allow create user with duplicate\n"
|
" -o, --non-unique allow create user with duplicate\n"
|
||||||
" (non-unique) UID\n"
|
" (non-unique) UID\n"
|
||||||
" -p, --password PASSWORD use encrypted password for the new user\n"
|
" -p, --password PASSWORD use encrypted password for the new user\n"
|
||||||
" account\n"
|
" account\n"
|
||||||
" -s, --shell SHELL the login shell for the new user account\n"
|
" -s, --shell SHELL the login shell for the new user account\n"
|
||||||
" -u, --uid UID force use the UID for the new user account\n"
|
" -u, --uid UID force use the UID for the new user account\n"
|
||||||
"\n"), stderr);
|
"\n"), stderr);
|
||||||
exit (E_USAGE);
|
exit (E_USAGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,13 +100,13 @@ static void remove_mailbox (void);
|
|||||||
static void usage (void)
|
static void usage (void)
|
||||||
{
|
{
|
||||||
fputs (_("Usage: userdel [options] LOGIN\n"
|
fputs (_("Usage: userdel [options] LOGIN\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Options:\n"
|
"Options:\n"
|
||||||
" -f, --force force removal of files,\n"
|
" -f, --force force removal of files,\n"
|
||||||
" even if not owned by user\n"
|
" even if not owned by user\n"
|
||||||
" -h, --help display this help message and exit\n"
|
" -h, --help display this help message and exit\n"
|
||||||
" -r, --remove remove home directory and mail spool\n"
|
" -r, --remove remove home directory and mail spool\n"
|
||||||
"\n"), stderr);
|
"\n"), stderr);
|
||||||
exit (E_USAGE);
|
exit (E_USAGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -277,29 +277,29 @@ static int get_groups (char *list)
|
|||||||
static void usage (void)
|
static void usage (void)
|
||||||
{
|
{
|
||||||
fputs (_("Usage: usermod [options] LOGIN\n"
|
fputs (_("Usage: usermod [options] LOGIN\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Options:\n"
|
"Options:\n"
|
||||||
" -c, --comment COMMENT new value of the GECOS field\n"
|
" -c, --comment COMMENT new value of the GECOS field\n"
|
||||||
" -d, --home HOME_DIR new home directory for the user account\n"
|
" -d, --home HOME_DIR new home directory for the user account\n"
|
||||||
" -e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE\n"
|
" -e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE\n"
|
||||||
" -f, --inactive INACTIVE set password inactive after expiration\n"
|
" -f, --inactive INACTIVE set password inactive after expiration\n"
|
||||||
" to INACTIVE\n"
|
" to INACTIVE\n"
|
||||||
" -g, --gid GROUP force use GROUP as new primary group\n"
|
" -g, --gid GROUP force use GROUP as new primary group\n"
|
||||||
" -G, --groups GROUPS new list of supplementary GROUPS\n"
|
" -G, --groups GROUPS new list of supplementary GROUPS\n"
|
||||||
" -a, --append append the user to the supplemental GROUPS\n"
|
" -a, --append append the user to the supplemental GROUPS\n"
|
||||||
" mentioned by the -G option without removing\n"
|
" mentioned by the -G option without removing\n"
|
||||||
" him/her from other groups\n"
|
" him/her from other groups\n"
|
||||||
" -h, --help display this help message and exit\n"
|
" -h, --help display this help message and exit\n"
|
||||||
" -l, --login NEW_LOGIN new value of the login name\n"
|
" -l, --login NEW_LOGIN new value of the login name\n"
|
||||||
" -L, --lock lock the user account\n"
|
" -L, --lock lock the user account\n"
|
||||||
" -m, --move-home move contents of the home directory to the\n"
|
" -m, --move-home move contents of the home directory to the\n"
|
||||||
" new location (use only with -d)\n"
|
" new location (use only with -d)\n"
|
||||||
" -o, --non-unique allow using duplicate (non-unique) UID\n"
|
" -o, --non-unique allow using duplicate (non-unique) UID\n"
|
||||||
" -p, --password PASSWORD use encrypted password for the new password\n"
|
" -p, --password PASSWORD use encrypted password for the new password\n"
|
||||||
" -s, --shell SHELL new login shell for the user account\n"
|
" -s, --shell SHELL new login shell for the user account\n"
|
||||||
" -u, --uid UID new UID for the user account\n"
|
" -u, --uid UID new UID for the user account\n"
|
||||||
" -U, --unlock unlock the user account\n"
|
" -U, --unlock unlock the user account\n"
|
||||||
"\n"), stderr);
|
"\n"), stderr);
|
||||||
exit (E_USAGE);
|
exit (E_USAGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user