diff options
Diffstat (limited to 'man/zh_CN')
47 files changed, 0 insertions, 9360 deletions
diff --git a/man/zh_CN/Makefile.in b/man/zh_CN/Makefile.in deleted file mode 100644 index ea92e5b6..00000000 --- a/man/zh_CN/Makefile.in +++ /dev/null @@ -1,714 +0,0 @@ -# Makefile.in generated by automake 1.11.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software -# Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -VPATH = @srcdir@ -am__make_dryrun = \ - { \ - am__dry=no; \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ - | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ - *) \ - for am__flg in $$MAKEFLAGS; do \ - case $$am__flg in \ - *=*|--*) ;; \ - *n*) am__dry=yes; break;; \ - esac; \ - done;; \ - esac; \ - test $$am__dry = yes; \ - } -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -@USE_PAM_FALSE@am__append_1 = $(man_nopam) -@USE_PAM_TRUE@am__append_2 = $(man_nopam) -DIST_COMMON = $(srcdir)/../generate_mans.mak \ - $(srcdir)/../generate_translations.mak $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in -subdir = man/zh_CN -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -SOURCES = -DIST_SOURCES = -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } -man1dir = $(mandir)/man1 -am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man3dir)" \ - "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(man8dir)" -man3dir = $(mandir)/man3 -man5dir = $(mandir)/man5 -man8dir = $(mandir)/man8 -NROFF = nroff -MANS = $(man_MANS) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -GROUP_NAME_MAX_LENGTH = @GROUP_NAME_MAX_LENGTH@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBACL = @LIBACL@ -LIBATTR = @LIBATTR@ -LIBAUDIT = @LIBAUDIT@ -LIBCRACK = @LIBCRACK@ -LIBCRYPT = @LIBCRYPT@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMD = @LIBMD@ -LIBOBJS = @LIBOBJS@ -LIBPAM = @LIBPAM@ -LIBS = @LIBS@ -LIBSELINUX = @LIBSELINUX@ -LIBSEMANAGE = @LIBSEMANAGE@ -LIBSKEY = @LIBSKEY@ -LIBTCB = @LIBTCB@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -POSUB = @POSUB@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMLCATALOG = @XMLCATALOG@ -XML_CATALOG_FILE = @XML_CATALOG_FILE@ -XSLTPROC = @XSLTPROC@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@/zh_CN -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -man_MANS = man1/chage.1 man1/chfn.1 man8/chgpasswd.8 man8/chpasswd.8 \ - man1/chsh.1 man1/expiry.1 man5/faillog.5 man8/faillog.8 \ - man3/getspnam.3 man1/gpasswd.1 man8/groupadd.8 man8/groupdel.8 \ - man8/groupmems.8 man8/groupmod.8 man1/groups.1 man8/grpck.8 \ - man8/grpconv.8 man8/grpunconv.8 man5/gshadow.5 man8/lastlog.8 \ - man1/login.1 man5/login.defs.5 man8/logoutd.8 man1/newgrp.1 \ - man8/newusers.8 man8/nologin.8 man1/passwd.1 man5/passwd.5 \ - man8/pwck.8 man8/pwconv.8 man8/pwunconv.8 man1/sg.1 \ - man3/shadow.3 man5/shadow.5 man1/su.1 man5/suauth.5 \ - man8/useradd.8 man8/userdel.8 man8/usermod.8 man8/vigr.8 \ - man8/vipw.8 $(am__append_1) -man_nopam = \ - man5/limits.5 \ - man5/login.access.5 \ - man5/porttime.5 - -EXTRA_DIST = $(man_MANS) man1/id.1 man8/sulogin.8 $(am__append_2) -LANG = $(notdir $(CURDIR)) -@ENABLE_REGENERATE_MAN_TRUE@@USE_PAM_FALSE@PAM_COND = no_pam -@ENABLE_REGENERATE_MAN_TRUE@@USE_PAM_TRUE@PAM_COND = pam -@ENABLE_REGENERATE_MAN_TRUE@@SHADOWGRP_FALSE@SHADOWGRP_COND = no_gshadow -@ENABLE_REGENERATE_MAN_TRUE@@SHADOWGRP_TRUE@SHADOWGRP_COND = gshadow -@ENABLE_REGENERATE_MAN_TRUE@@WITH_TCB_FALSE@TCB_COND = no_tcb -@ENABLE_REGENERATE_MAN_TRUE@@WITH_TCB_TRUE@TCB_COND = tcb -@ENABLE_REGENERATE_MAN_TRUE@@USE_SHA_CRYPT_FALSE@SHA_CRYPT_COND = no_sha_crypt -@ENABLE_REGENERATE_MAN_TRUE@@USE_SHA_CRYPT_TRUE@SHA_CRYPT_COND = sha_crypt -CLEANFILES = .xml2po.mo $(EXTRA_DIST) $(addsuffix .xml,$(EXTRA_DIST)) config.xml -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../generate_translations.mak $(srcdir)/../generate_mans.mak $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu man/zh_CN/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu man/zh_CN/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; -$(srcdir)/../generate_translations.mak $(srcdir)/../generate_mans.mak: - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-man1: $(man_MANS) - @$(NORMAL_INSTALL) - @list1=''; \ - list2='$(man_MANS)'; \ - test -n "$(man1dir)" \ - && test -n "`echo $$list1$$list2`" \ - || exit 0; \ - echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ - { for i in $$list1; do echo "$$i"; done; \ - if test -n "$$list2"; then \ - for i in $$list2; do echo "$$i"; done \ - | sed -n '/\.1[a-z]*$$/p'; \ - fi; \ - } | while read p; do \ - if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; echo "$$p"; \ - done | \ - sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ - -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ - sed 'N;N;s,\n, ,g' | { \ - list=; while read file base inst; do \ - if test "$$base" = "$$inst"; then list="$$list $$file"; else \ - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ - fi; \ - done; \ - for i in $$list; do echo "$$i"; done | $(am__base_list) | \ - while read files; do \ - test -z "$$files" || { \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ - done; } - -uninstall-man1: - @$(NORMAL_UNINSTALL) - @list=''; test -n "$(man1dir)" || exit 0; \ - files=`{ for i in $$list; do echo "$$i"; done; \ - l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ - sed -n '/\.1[a-z]*$$/p'; \ - } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ - -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ - dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) -install-man3: $(man_MANS) - @$(NORMAL_INSTALL) - @list1=''; \ - list2='$(man_MANS)'; \ - test -n "$(man3dir)" \ - && test -n "`echo $$list1$$list2`" \ - || exit 0; \ - echo " $(MKDIR_P) '$(DESTDIR)$(man3dir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(man3dir)" || exit 1; \ - { for i in $$list1; do echo "$$i"; done; \ - if test -n "$$list2"; then \ - for i in $$list2; do echo "$$i"; done \ - | sed -n '/\.3[a-z]*$$/p'; \ - fi; \ - } | while read p; do \ - if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; echo "$$p"; \ - done | \ - sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \ - -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ - sed 'N;N;s,\n, ,g' | { \ - list=; while read file base inst; do \ - if test "$$base" = "$$inst"; then list="$$list $$file"; else \ - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \ - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst" || exit $$?; \ - fi; \ - done; \ - for i in $$list; do echo "$$i"; done | $(am__base_list) | \ - while read files; do \ - test -z "$$files" || { \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man3dir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(man3dir)" || exit $$?; }; \ - done; } - -uninstall-man3: - @$(NORMAL_UNINSTALL) - @list=''; test -n "$(man3dir)" || exit 0; \ - files=`{ for i in $$list; do echo "$$i"; done; \ - l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ - sed -n '/\.3[a-z]*$$/p'; \ - } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \ - -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ - dir='$(DESTDIR)$(man3dir)'; $(am__uninstall_files_from_dir) -install-man5: $(man_MANS) - @$(NORMAL_INSTALL) - @list1=''; \ - list2='$(man_MANS)'; \ - test -n "$(man5dir)" \ - && test -n "`echo $$list1$$list2`" \ - || exit 0; \ - echo " $(MKDIR_P) '$(DESTDIR)$(man5dir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(man5dir)" || exit 1; \ - { for i in $$list1; do echo "$$i"; done; \ - if test -n "$$list2"; then \ - for i in $$list2; do echo "$$i"; done \ - | sed -n '/\.5[a-z]*$$/p'; \ - fi; \ - } | while read p; do \ - if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; echo "$$p"; \ - done | \ - sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \ - -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ - sed 'N;N;s,\n, ,g' | { \ - list=; while read file base inst; do \ - if test "$$base" = "$$inst"; then list="$$list $$file"; else \ - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man5dir)/$$inst'"; \ - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man5dir)/$$inst" || exit $$?; \ - fi; \ - done; \ - for i in $$list; do echo "$$i"; done | $(am__base_list) | \ - while read files; do \ - test -z "$$files" || { \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man5dir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(man5dir)" || exit $$?; }; \ - done; } - -uninstall-man5: - @$(NORMAL_UNINSTALL) - @list=''; test -n "$(man5dir)" || exit 0; \ - files=`{ for i in $$list; do echo "$$i"; done; \ - l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ - sed -n '/\.5[a-z]*$$/p'; \ - } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \ - -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ - dir='$(DESTDIR)$(man5dir)'; $(am__uninstall_files_from_dir) -install-man8: $(man_MANS) - @$(NORMAL_INSTALL) - @list1=''; \ - list2='$(man_MANS)'; \ - test -n "$(man8dir)" \ - && test -n "`echo $$list1$$list2`" \ - || exit 0; \ - echo " $(MKDIR_P) '$(DESTDIR)$(man8dir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(man8dir)" || exit 1; \ - { for i in $$list1; do echo "$$i"; done; \ - if test -n "$$list2"; then \ - for i in $$list2; do echo "$$i"; done \ - | sed -n '/\.8[a-z]*$$/p'; \ - fi; \ - } | while read p; do \ - if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; echo "$$p"; \ - done | \ - sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \ - -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ - sed 'N;N;s,\n, ,g' | { \ - list=; while read file base inst; do \ - if test "$$base" = "$$inst"; then list="$$list $$file"; else \ - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \ - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst" || exit $$?; \ - fi; \ - done; \ - for i in $$list; do echo "$$i"; done | $(am__base_list) | \ - while read files; do \ - test -z "$$files" || { \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man8dir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(man8dir)" || exit $$?; }; \ - done; } - -uninstall-man8: - @$(NORMAL_UNINSTALL) - @list=''; test -n "$(man8dir)" || exit 0; \ - files=`{ for i in $$list; do echo "$$i"; done; \ - l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ - sed -n '/\.8[a-z]*$$/p'; \ - } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \ - -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ - dir='$(DESTDIR)$(man8dir)'; $(am__uninstall_files_from_dir) -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - @list='$(MANS)'; if test -n "$$list"; then \ - list=`for p in $$list; do \ - if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ - if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \ - if test -n "$$list" && \ - grep 'ab help2man is required to generate this page' $$list >/dev/null; then \ - echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \ - grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \ - echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \ - echo " typically \`make maintainer-clean' will remove them" >&2; \ - exit 1; \ - else :; fi; \ - else :; fi - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(MANS) -installdirs: - for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(man8dir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -@ENABLE_REGENERATE_MAN_FALSE@clean-local: -clean: clean-am - -clean-am: clean-generic clean-libtool clean-local mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-man - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: install-man1 install-man3 install-man5 install-man8 - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-man - -uninstall-man: uninstall-man1 uninstall-man3 uninstall-man5 \ - uninstall-man8 - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - clean-local distclean distclean-generic distclean-libtool \ - distdir dvi dvi-am html html-am info info-am install \ - install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-man1 install-man3 install-man5 install-man8 \ - install-pdf install-pdf-am install-ps install-ps-am \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - uninstall uninstall-am uninstall-man uninstall-man1 \ - uninstall-man3 uninstall-man5 uninstall-man8 - - -@ENABLE_REGENERATE_MAN_TRUE@config.xml: ../config.xml.in -@ENABLE_REGENERATE_MAN_TRUE@ $(MAKE) -C .. config.xml -@ENABLE_REGENERATE_MAN_TRUE@ cp ../config.xml $@ - -@ENABLE_REGENERATE_MAN_TRUE@%.xml: ../%.xml ../po/$(LANG).po -@ENABLE_REGENERATE_MAN_TRUE@ xml2po --expand-all-entities -l $(LANG) -p ../po/$(LANG).po -o $@ ../$@ -@ENABLE_REGENERATE_MAN_TRUE@ sed -i 's:\(^<refentry .*\)>:\1 lang="$(LANG)">:' $@ - -@ENABLE_REGENERATE_MAN_TRUE@%.xml-config: %.xml -@ENABLE_REGENERATE_MAN_TRUE@ if grep -q SHADOW-CONFIG-HERE $<; then \ -@ENABLE_REGENERATE_MAN_TRUE@ sed -e 's/^<!-- SHADOW-CONFIG-HERE -->/<!ENTITY % config SYSTEM "config.xml">%config;/' $< > $@; \ -@ENABLE_REGENERATE_MAN_TRUE@ else \ -@ENABLE_REGENERATE_MAN_TRUE@ sed -e 's/^\(<!DOCTYPE .*docbookx.dtd"\)>/\1 [<!ENTITY % config SYSTEM "config.xml">%config;]>/' $< > $@; \ -@ENABLE_REGENERATE_MAN_TRUE@ fi - -@ENABLE_REGENERATE_MAN_TRUE@man1/% man3/% man5/% man8/%: %.xml-config Makefile config.xml -@ENABLE_REGENERATE_MAN_TRUE@ $(XSLTPROC) --stringparam profile.condition "$(PAM_COND);$(SHADOWGRP_COND);$(TCB_COND);$(SHA_CRYPT_COND)" \ -@ENABLE_REGENERATE_MAN_TRUE@ --param "man.authors.section.enabled" "0" \ -@ENABLE_REGENERATE_MAN_TRUE@ --stringparam "man.output.base.dir" "" \ -@ENABLE_REGENERATE_MAN_TRUE@ --param "man.output.in.separate.dir" "1" \ -@ENABLE_REGENERATE_MAN_TRUE@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/profile-docbook.xsl $< - -@ENABLE_REGENERATE_MAN_TRUE@clean-local: -@ENABLE_REGENERATE_MAN_TRUE@ for d in man1 man3 man5 man8; do [ -d $$d ] && rmdir $$d; done - -#$(man_MANS): -# @echo you need to run configure with --enable-man to generate man pages -# @false - -@ENABLE_REGENERATE_MAN_TRUE@man8/grpconv.8 man8/grpunconv.8 man8/pwunconv.8: man8/pwconv.8 - -@ENABLE_REGENERATE_MAN_TRUE@man3/getspnam.3: man3/shadow.3 - -@ENABLE_REGENERATE_MAN_TRUE@man8/vigr.8: man8/vipw.8 - -@ENABLE_REGENERATE_MAN_FALSE@$(man_MANS): -@ENABLE_REGENERATE_MAN_FALSE@ @echo you need to run configure with --enable-man to generate man pages -@ENABLE_REGENERATE_MAN_FALSE@ @false - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/man/zh_CN/man1/chage.1 b/man/zh_CN/man1/chage.1 deleted file mode 100644 index c790f2b7..00000000 --- a/man/zh_CN/man1/chage.1 +++ /dev/null @@ -1,175 +0,0 @@ -'\" t -.\" Title: chage -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 用户命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "CHAGE" "1" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "用户命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -chage \- 更改用户密码过期信息 -.SH "大纲" -.HP \w'\fBchage\fR\ 'u -\fBchage\fR [\fI选项\fR] \fI登录\fR -.SH "描述" -.PP -The -\fBchage\fR -command changes the number of days between password changes and the date of the last password change\&. This information is used by the system to determine when a user must change his/her password\&. -.SH "选项" -.PP -\fBchage\fR -命令可以接受的选项有: -.PP -\fB\-d\fR, \fB\-\-lastday\fR\fILAST_DAY\fR -.RS 4 -Set the number of days since January 1st, 1970 when the password was last changed\&. The date may also be expressed in the format YYYY\-MM\-DD (or the format more commonly used in your area)\&. -.RE -.PP -\fB\-E\fR, \fB\-\-expiredate\fR\fIEXPIRE_DATE\fR -.RS 4 -Set the date or number of days since January 1, 1970 on which the user\*(Aqs account will no longer be accessible\&. The date may also be expressed in the format YYYY\-MM\-DD (or the format more commonly used in your area)\&. A user whose account is locked must contact the system administrator before being able to use the system again\&. -.sp -\fIEXPIRE_DATE\fR -设置为 -\fI\-1\fR -会移除账户的过期日期。 -.RE -.PP -\fB\-h\fR, \fB\-\-help\fR -.RS 4 -现实帮助信息并退出。 -.RE -.PP -\fB\-I\fR, \fB\-\-inactive\fR\fIINACTIVE\fR -.RS 4 -Set the number of days of inactivity after a password has expired before the account is locked\&. The -\fIINACTIVE\fR -option is the number of days of inactivity\&. A user whose account is locked must contact the system administrator before being able to use the system again\&. -.sp -\fIINACTIVE\fR -设置为 -\fI\-1\fR -会移除账户禁用功能。 -.RE -.PP -\fB\-l\fR, \fB\-\-list\fR -.RS 4 -现实账户年龄信息。 -.RE -.PP -\fB\-m\fR, \fB\-\-mindays\fR\fIMIN_DAYS\fR -.RS 4 -在密码更改之间的最小天数设置为 -\fIMIN_DAYS\fR。此字段中的 0 值表示用户可以在任何时间更改其密码。 -.RE -.PP -\fB\-M\fR, \fB\-\-maxdays\fR\fIMAX_DAYS\fR -.RS 4 -Set the maximum number of days during which a password is valid\&. When -\fIMAX_DAYS\fR -plus -\fILAST_DAY\fR -is less than the current day, the user will be required to change his/her password before being able to use his/her account\&. This occurrence can be planned for in advance by use of the -\fB\-W\fR -option, which provides the user with advance warning\&. -.sp -\fIMAX_DAYS\fR -设置为 -\fI\-1\fR -会移除密码有效性检查。 -.RE -.PP -\fB\-R\fR, \fB\-\-root\fR\fICHROOT_DIR\fR -.RS 4 -Apply changes in the -\fICHROOT_DIR\fR -directory and use the configuration files from the -\fICHROOT_DIR\fR -directory\&. -.RE -.PP -\fB\-W\fR, \fB\-\-warndays\fR\fIWARN_DAYS\fR -.RS 4 -Set the number of days of warning before a password change is required\&. The -\fIWARN_DAYS\fR -option is the number of days prior to the password expiring that a user will be warned his/her password is about to expire\&. -.RE -.PP -如果没有选择任何选项,\fBchage\fR -会进入交互模式,以所有字段的当前值提示用户。输入一个新值可以更改这些字段,或者留空使用当前值。当前值出现在 -\fI[ ]\fR -标记对里。 -.SH "注意" -.PP -\fBchage\fR -需要有一个影子密码文件才可用。 -.PP -只有 root 才可以使用 -\fBchage\fR,一个特殊情况是 -\fB\-l\fR -选项,用来让非特权用户觉得自己的密码或账户何时过期。 -.SH "配置文件" -.PP -在 -/etc/login\&.defs -中有如下配置变量,可以用来更改此工具的行为: -.SH "文件" -.PP -/etc/passwd -.RS 4 -用户账户信息。 -.RE -.PP -/etc/shadow -.RS 4 -安全用户账户信息。 -.RE -.SH "退出值" -.PP -\fBchage\fR -命令有如下退出值:.PP -\fI0\fR -.RS 4 -成功 -.RE -.PP -\fI1\fR -.RS 4 -权限不够 -.RE -.PP -\fI2\fR -.RS 4 -无效的命令语法 -.RE -.PP -\fI15\fR -.RS 4 -无法找到影子密码文件 -.RE -.SH "参见" -.PP -\fBpasswd\fR(5), -\fBshadow\fR(5)\&. diff --git a/man/zh_CN/man1/chfn.1 b/man/zh_CN/man1/chfn.1 deleted file mode 100644 index b25ede53..00000000 --- a/man/zh_CN/man1/chfn.1 +++ /dev/null @@ -1,161 +0,0 @@ -'\" t -.\" Title: chfn -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 用户命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "CHFN" "1" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "用户命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -chfn \- 更改真名和信息 -.SH "大纲" -.HP \w'\fBchfn\fR\ 'u -\fBchfn\fR [\fI选项\fR] [\fI登录\fR] -.SH "描述" -.PP -The -\fBchfn\fR -command changes user fullname, office room number, office phone number, and home phone number information for a user\*(Aqs account\&. This information is typically printed by -\fBfinger\fR(1) -and similar programs\&. A normal user may only change the fields for her own account, subject to the restrictions in -/etc/login\&.defs\&. (The default configuration is to prevent users from changing their fullname\&.) The superuser may change any field for any account\&. Additionally, only the superuser may use the -\fB\-o\fR -option to change the undefined portions of the GECOS field\&. -.PP -These fields must not contain any colons\&. Except for the -\fIother\fR -field, they should not contain any comma or equal sign\&. It is also recommended to avoid non\-US\-ASCII characters, but this is only enforced for the phone numbers\&. The -\fIother\fR -field is used to store accounting information used by other applications\&. -.SH "选项" -.PP -\fBchfn\fR -命令可以接受的选项有: -.PP -\fB\-f\fR, \fB\-\-full\-name\fR\fIFULL_NAME\fR -.RS 4 -更改用户的全名 -.RE -.PP -\fB\-h\fR, \fB\-\-home\-phone\fR\fIHOME_PHONE\fR -.RS 4 -Change the user\*(Aqs home phone number\&. -.RE -.PP -\fB\-o\fR, \fB\-\-other\fR\fIOTHER\fR -.RS 4 -Change the user\*(Aqs other GECOS information\&. This field is used to store accounting information used by other applications, and can be changed only by a superuser\&. -.RE -.PP -\fB\-r\fR, \fB\-\-room\fR\fIROOM_NUMBER\fR -.RS 4 -Change the user\*(Aqs room number\&. -.RE -.PP -\fB\-R\fR, \fB\-\-root\fR\fICHROOT_DIR\fR -.RS 4 -Apply changes in the -\fICHROOT_DIR\fR -directory and use the configuration files from the -\fICHROOT_DIR\fR -directory\&. -.RE -.PP -\fB\-u\fR, \fB\-\-help\fR -.RS 4 -现实帮助信息并退出。 -.RE -.PP -\fB\-w\fR, \fB\-\-work\-phone\fR\fIWORK_PHONE\fR -.RS 4 -Change the user\*(Aqs office phone number\&. -.RE -.PP -If none of the options are selected, -\fBchfn\fR -operates in an interactive fashion, prompting the user with the current values for all of the fields\&. Enter the new value to change the field, or leave the line blank to use the current value\&. The current value is displayed between a pair of -\fB[ ]\fR -marks\&. Without options, -\fBchfn\fR -prompts for the current user account\&. -.SH "配置文件" -.PP -在 -/etc/login\&.defs -中有如下配置变量,可以用来更改此工具的行为: -.PP -\fBCHFN_AUTH\fR (boolean) -.RS 4 -如果为 -\fIyes\fR,\fBchfn\fR -进行任何更改前都要要求认证,除非由超级用户运行。 -.RE -.PP -\fBCHFN_RESTRICT\fR (string) -.RS 4 -This parameter specifies which values in the -\fIgecos\fR -field of the -/etc/passwd -file may be changed by regular users using the -\fBchfn\fR -program\&. It can be any combination of letters -\fIf\fR, -\fIr\fR, -\fIw\fR, -\fIh\fR, for Full name, Room number, Work phone, and Home phone, respectively\&. For backward compatibility, -\fIyes\fR -is equivalent to -\fIrwh\fR -and -\fIno\fR -is equivalent to -\fIfrwh\fR\&. If not specified, only the superuser can make any changes\&. The most restrictive setting is better achieved by not installing -\fBchfn\fR -SUID\&. -.RE -.PP -\fBLOGIN_STRING\fR (string) -.RS 4 -此字符串用于提示输入密码。默认是 "Password: ",或者翻译了的结果(汉语中翻译为了\(lq密码:\(rq)。如果设置了此变量,提示不会被翻译。 -.sp -如果字符串包含 -\fI%s\fR,将会被用户名替换。 -.RE -.SH "文件" -.PP -/etc/login\&.defs -.RS 4 -Shadow 密码套件配置。 -.RE -.PP -/etc/passwd -.RS 4 -用户账户信息。 -.RE -.SH "参见" -.PP -\fBchsh\fR(1), -\fBlogin.defs\fR(5), -\fBpasswd\fR(5)\&. diff --git a/man/zh_CN/man1/chsh.1 b/man/zh_CN/man1/chsh.1 deleted file mode 100644 index 04fe379e..00000000 --- a/man/zh_CN/man1/chsh.1 +++ /dev/null @@ -1,119 +0,0 @@ -'\" t -.\" Title: chsh -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 用户命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "CHSH" "1" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "用户命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -chsh \- 更改登录 shell -.SH "大纲" -.HP \w'\fBchsh\fR\ 'u -\fBchsh\fR [\fI选项\fR] [\fI登录\fR] -.SH "描述" -.PP -The -\fBchsh\fR -command changes the user login shell\&. This determines the name of the user\*(Aqs initial login command\&. A normal user may only change the login shell for her own account; the superuser may change the login shell for any account\&. -.SH "选项" -.PP -\fBchsh\fR -命令可以接受的选项有: -.PP -\fB\-h\fR, \fB\-\-help\fR -.RS 4 -现实帮助信息并退出。 -.RE -.PP -\fB\-R\fR, \fB\-\-root\fR\fICHROOT_DIR\fR -.RS 4 -Apply changes in the -\fICHROOT_DIR\fR -directory and use the configuration files from the -\fICHROOT_DIR\fR -directory\&. -.RE -.PP -\fB\-s\fR, \fB\-\-shell\fR\fISHELL\fR -.RS 4 -用户的新登录 shell 的名称。将此字段设置为空会让系统选择默认的登录 shell。 -.RE -.PP -If the -\fB\-s\fR -option is not selected, -\fBchsh\fR -operates in an interactive fashion, prompting the user with the current login shell\&. Enter the new value to change the shell, or leave the line blank to use the current one\&. The current shell is displayed between a pair of -\fI[ ]\fR -marks\&. -.SH "注意" -.PP -The only restriction placed on the login shell is that the command name must be listed in -/etc/shells, unless the invoker is the superuser, and then any value may be added\&. An account with a restricted login shell may not change her login shell\&. For this reason, placing -/bin/rsh -in -/etc/shells -is discouraged since accidentally changing to a restricted shell would prevent the user from ever changing her login shell back to its original value\&. -.SH "配置文件" -.PP -在 -/etc/login\&.defs -中有如下配置变量,可以用来更改此工具的行为: -.PP -\fBCHSH_AUTH\fR (boolean) -.RS 4 -如果 -\fIyes\fR,\fBchsh\fR -程序在做任何更改之前都会要求认证,除非是以超级用户身份运行的。 -.RE -.PP -\fBLOGIN_STRING\fR (string) -.RS 4 -此字符串用于提示输入密码。默认是 "Password: ",或者翻译了的结果(汉语中翻译为了\(lq密码:\(rq)。如果设置了此变量,提示不会被翻译。 -.sp -如果字符串包含 -\fI%s\fR,将会被用户名替换。 -.RE -.SH "文件" -.PP -/etc/passwd -.RS 4 -用户账户信息。 -.RE -.PP -/etc/shells -.RS 4 -可用的登录 shell 的列表。 -.RE -.PP -/etc/login\&.defs -.RS 4 -Shadow 密码套件配置。 -.RE -.SH "参见" -.PP -\fBchfn\fR(1), -\fBlogin.defs\fR(5), -\fBpasswd\fR(5)\&. diff --git a/man/zh_CN/man1/expiry.1 b/man/zh_CN/man1/expiry.1 deleted file mode 100644 index 9977f79f..00000000 --- a/man/zh_CN/man1/expiry.1 +++ /dev/null @@ -1,73 +0,0 @@ -'\" t -.\" Title: expiry -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 用户命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "EXPIRY" "1" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "用户命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -expiry \- check and enforce password expiration policy -.SH "大纲" -.HP \w'\fBexpiry\fR\ 'u -\fBexpiry\fR \fI选项\fR -.SH "描述" -.PP -The -\fBexpiry\fR -command checks (\fB\-c\fR) the current password expiration and forces (\fB\-f\fR) changes when required\&. It is callable as a normal user command\&. -.SH "选项" -.PP -\fBexpiry\fR -选项可以接受的选项有: -.PP -\fB\-c\fR, \fB\-\-check\fR -.RS 4 -Check the password expiration of the current user\&. -.RE -.PP -\fB\-f\fR, \fB\-\-force\fR -.RS 4 -如果用户密码过期,则强制用户修改密码。 -.RE -.PP -\fB\-h\fR, \fB\-\-help\fR -.RS 4 -现实帮助信息并退出。 -.RE -.SH "文件" -.PP -/etc/passwd -.RS 4 -用户账户信息。 -.RE -.PP -/etc/shadow -.RS 4 -安全用户账户信息。 -.RE -.SH "参见" -.PP -\fBpasswd\fR(5), -\fBshadow\fR(5)\&. diff --git a/man/zh_CN/man1/gpasswd.1 b/man/zh_CN/man1/gpasswd.1 deleted file mode 100644 index d53e0bd9..00000000 --- a/man/zh_CN/man1/gpasswd.1 +++ /dev/null @@ -1,230 +0,0 @@ -'\" t -.\" Title: gpasswd -.\" Author: Rafal Maszkowski -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 用户命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "GPASSWD" "1" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "用户命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -gpasswd \- 管理员 /etc/group 和 /etc/gshadow -.SH "大纲" -.HP \w'\fBgpasswd\fR\ 'u -\fBgpasswd\fR [\fI选项\fR] \fIgroup\fR -.SH "描述" -.PP -The -\fBgpasswd\fR -command is used to administer -/etc/group, and /etc/gshadow\&. Every group can have -administrators, -members and a password\&. -.PP -System administrators can use the -\fB\-A\fR -option to define group administrator(s) and the -\fB\-M\fR -option to define members\&. They have all rights of group administrators and members\&. -.PP - -\fBgpasswd\fR -called by -a group administrator -with a group name only prompts for the new password of the -\fIgroup\fR\&. -.PP -If a password is set the members can still use -\fBnewgrp\fR(1) -without a password, and non\-members must supply the password\&. -.SS "请注意组密码" -.PP -Group passwords are an inherent security problem since more than one person is permitted to know the password\&. However, groups are a useful tool for permitting co\-operation between different users\&. -.SH "选项" -.PP -除了 -\fB\-A\fR -和 -\fB\-M\fR -选项,其它选项不能联合使用。 -.PP -\fBgpasswd\fR -可以接受的选项有: -.PP -\fB\-a\fR, \fB\-\-add\fR\fIuser\fR -.RS 4 -向名为 -\fIgroup\fR -的组中添加用户 -\fIuser\fR。 -.RE -.PP -\fB\-d\fR, \fB\-\-delete\fR\fIuser\fR -.RS 4 -从名为 -\fIgroup\fR -的组中移除用户 -\fIuser\fR。 -.RE -.PP -\fB\-h\fR, \fB\-\-help\fR -.RS 4 -现实帮助信息并退出。 -.RE -.PP -\fB\-Q\fR, \fB\-\-root\fR\fICHROOT_DIR\fR -.RS 4 -Apply changes in the -\fICHROOT_DIR\fR -directory and use the configuration files from the -\fICHROOT_DIR\fR -directory\&. -.RE -.PP -\fB\-r\fR, \fB\-\-remove\-password\fR -.RS 4 -Remove the password from the named -\fIgroup\fR\&. The group password will be empty\&. Only group members will be allowed to use -\fBnewgrp\fR -to join the named -\fIgroup\fR\&. -.RE -.PP -\fB\-R\fR, \fB\-\-restrict\fR -.RS 4 -Restrict the access to the named -\fIgroup\fR\&. The group password is set to "!"\&. Only group members with a password will be allowed to use -\fBnewgrp\fR -to join the named -\fIgroup\fR\&. -.RE -.PP -\fB\-A\fR, \fB\-\-administrators\fR\fIuser\fR,\&.\&.\&. -.RS 4 -设置有管理权限的用户列表。 -.RE -.PP -\fB\-M\fR, \fB\-\-members\fR\fIuser\fR,\&.\&.\&. -.RS 4 -设置组成员列表。 -.RE -.SH "CAVEATS" -.PP -This tool only operates on the -/etc/group -and /etc/gshadow files\&. -Thus you cannot change any NIS or LDAP group\&. This must be performed on the corresponding server\&. -.SH "配置文件" -.PP -在 -/etc/login\&.defs -中有如下配置变量,可以用来更改此工具的行为: -.PP -\fBENCRYPT_METHOD\fR (string) -.RS 4 -这定义了系统加密密码的默认算法(如果没有在命令行上指定算法)。 -.sp -可以使用如下值:\fIDES\fR -(default), -\fIMD5\fR, \fISHA256\fR, \fISHA512\fR\&. -.sp -注意,此参数会覆盖 -\fBMD5_CRYPT_ENAB\fR -变量。 -.RE -.PP -\fBMAX_MEMBERS_PER_GROUP\fR (number) -.RS 4 -每个组条目的最大成员数。达到最大值时,在 -/etc/group -开始一个新条目(行)(使用同样的名称,同样的密码,同样的 GID)。 -.sp -默认值是 0,意味着组中的成员数没有限制。 -.sp -此功能(分割组)允许限制组文件中的行长度。这对于确保 NIS 组的行比长于 1024 字符。 -.sp -如果要强制这个限制,可以使用 25。 -.sp -注意:分割组可能不受所有工具的支持(甚至在 Shadow 工具集中)。您不应该使用这个变量,除非真的需要。 -.RE -.PP -\fBMD5_CRYPT_ENAB\fR (boolean) -.RS 4 -表示密码是否必须使用基于 MD5 的算法加密。如果设为 -\fIyes\fR,新密码将使用可以和新版 FreeBSD 兼容的基于 MD5 的算法加密。它支持无限长度的密码以及更长的盐字符串。如果您需要将加密的密码复制到其它不理解新算法的系统,设置为 -\fIno\fR。默认值是 -\fIno\fR。 -.sp -This variable is superseded by the -\fBENCRYPT_METHOD\fR -variable or by any command line option used to configure the encryption algorithm\&. -.sp -此变量已经废弃。您应该使用 -\fBENCRYPT_METHOD\fR。 -.RE -.PP -\fBSHA_CRYPT_MIN_ROUNDS\fR (number), \fBSHA_CRYPT_MAX_ROUNDS\fR (number) -.RS 4 -\fBENCRYPT_METHOD\fR -设为 -\fISHA256\fR -或 -\fISHA512\fR -时,此项确定加密算法默认使用 SHA 轮转数目(当轮转数没有通过命令行指定时)。 -.sp -使用很多轮转,会让暴力破解更加困难。但是需要注意,认证用户时也会需要更多的 CPU 资源。 -.sp -如果没有指定,libc 会选择默认的轮转数(5000)。 -.sp -值必须在 1000 \- 999,999,999 之间。 -.sp -如果只设置了一个 -\fBSHA_CRYPT_MIN_ROUNDS\fR -或 -\fBSHA_CRYPT_MAX_ROUNDS\fR -值,就会使用这个值。 -.sp -如果 -\fBSHA_CRYPT_MIN_ROUNDS\fR -> -\fBSHA_CRYPT_MAX_ROUNDS\fR,将会使用大的那个。 -.RE -.SH "文件" -.PP -/etc/group -.RS 4 -组账户信息。 -.RE -.PP -/etc/gshadow -.RS 4 -安全组账户信息。 -.RE -.SH "参见" -.PP -\fBnewgrp\fR(1), -\fBgroupadd\fR(8), -\fBgroupdel\fR(8), -\fBgroupmod\fR(8), -\fBgrpck\fR(8), -\fBgroup\fR(5), \fBgshadow\fR(5)\&. diff --git a/man/zh_CN/man1/groups.1 b/man/zh_CN/man1/groups.1 deleted file mode 100644 index 6058f367..00000000 --- a/man/zh_CN/man1/groups.1 +++ /dev/null @@ -1,64 +0,0 @@ -'\" t -.\" Title: groups -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 用户命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "GROUPS" "1" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "用户命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -groups \- 现实当前组名 -.SH "大纲" -.HP \w'\fBgroups\fR\ 'u -\fBgroups\fR [\fI用户\fR] -.SH "描述" -.PP -The -\fBgroups\fR -command displays the current group names or ID values\&. If the value does not have a corresponding entry in -/etc/group, the value will be displayed as the numerical group value\&. The optional -\fIuser\fR -parameter will display the groups for the named -\fIuser\fR\&. -.SH "注意" -.PP -Systems which do not support concurrent group sets will have the information from -/etc/group -reported\&. The user must use -\fBnewgrp\fR -or -\fBsg\fR -to change his current real and effective group ID\&. -.SH "文件" -.PP -/etc/group -.RS 4 -组账户信息。 -.RE -.SH "参见" -.PP -\fBnewgrp\fR(1), -\fBgetgid\fR(2), -\fBgetgroups\fR(2), -\fBgetuid\fR(2)\&. diff --git a/man/zh_CN/man1/id.1 b/man/zh_CN/man1/id.1 deleted file mode 100644 index d3ebac84..00000000 --- a/man/zh_CN/man1/id.1 +++ /dev/null @@ -1,61 +0,0 @@ -'\" t -.\" Title: id -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 用户命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "ID" "1" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "用户命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -id \- display current user and group ID names -.SH "大纲" -.HP \w'\fBid\fR\ 'u -\fBid\fR [\-a] -.SH "描述" -.PP -The -\fBid\fR -command displays the current real and effective user and group ID names or values\&. If the value does not have a corresponding entry in -/etc/passwd -or -/etc/group, the value will be displayed without the corresponding name\&. The optional -\fB\-a\fR -flag will display the group set on systems which support multiple concurrent group membership\&. -.SH "文件" -.PP -/etc/group -.RS 4 -组账户信息。 -.RE -.PP -/etc/passwd -.RS 4 -用户账户信息。 -.RE -.SH "参见" -.PP - -\fBgetgid\fR(2), -\fBgetgroups\fR(2), -\fBgetuid\fR(2) diff --git a/man/zh_CN/man1/login.1 b/man/zh_CN/man1/login.1 deleted file mode 100644 index 0bb56959..00000000 --- a/man/zh_CN/man1/login.1 +++ /dev/null @@ -1,482 +0,0 @@ -'\" t -.\" Title: login -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 用户命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "LOGIN" "1" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "用户命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -login \- 在系统上启动回话 -.SH "大纲" -.HP \w'\fBlogin\fR\ 'u -\fBlogin\fR [\-p] [\-h\ \fI主机\fR] [\fI用户名\fR] [\fIENV=VAR\fR...] -.HP \w'\fBlogin\fR\ 'u -\fBlogin\fR [\-p] [\-h\ \fI主机\fR] \-f \fI用户名\fR -.HP \w'\fBlogin\fR\ 'u -\fBlogin\fR [\-p] \-r\ \fI主机\fR -.SH "描述" -.PP -The -\fBlogin\fR -program is used to establish a new session with the system\&. It is normally invoked automatically by responding to the -\fIlogin:\fR -prompt on the user\*(Aqs terminal\&. -\fBlogin\fR -may be special to the shell and may not be invoked as a sub\-process\&. When called from a shell, -\fBlogin\fR -should be executed as -\fBexec login\fR -which will cause the user to exit from the current shell (and thus will prevent the new logged in user to return to the session of the caller)\&. Attempting to execute -\fBlogin\fR -from any shell but the login shell will produce an error message\&. -.PP -The user is then prompted for a password, where appropriate\&. Echoing is disabled to prevent revealing the password\&. Only a small number of password failures are permitted before -\fBlogin\fR -exits and the communications link is severed\&. -.PP -If password aging has been enabled for your account, you may be prompted for a new password before proceeding\&. You will be forced to provide your old password and the new password before continuing\&. Please refer to -\fBpasswd\fR(1) -for more information\&. -.PP -After a successful login, you will be informed of any system messages and the presence of mail\&. You may turn off the printing of the system message file, -/etc/motd, by creating a zero\-length file -\&.hushlogin -in your login directory\&. The mail message will be one of "\fIYou have new mail\&.\fR", "\fIYou have mail\&.\fR", or "\fINo Mail\&.\fR" according to the condition of your mailbox\&. -.PP -Your user and group ID will be set according to their values in the -/etc/passwd -file\&. The value for -\fB$HOME\fR, -\fB$SHELL\fR, -\fB$PATH\fR, -\fB$LOGNAME\fR, and -\fB$MAIL\fR -are set according to the appropriate fields in the password entry\&. Ulimit, umask and nice values may also be set according to entries in the GECOS field\&. -.PP -On some installations, the environmental variable -\fB$TERM\fR -will be initialized to the terminal type on your tty line, as specified in -/etc/ttytype\&. -.PP -命令解释器的初始化脚本也可能执行。请参考手册中相应的章节来获取关于此功能的更多信息。 -.PP -在登录 shell 中以第一个字符是\(lq*\(rq标注的是子系统登录。给定的主目录将被用于用户实际登录的新文件系统的根。 -.PP -The -\fBlogin\fR -program is NOT responsible for removing users from the utmp file\&. It is the responsibility of -\fBgetty\fR(8) -and -\fBinit\fR(8) -to clean up apparent ownership of a terminal session\&. If you use -\fBlogin\fR -from the shell prompt without -\fBexec\fR, the user you use will continue to appear to be logged in even after you log out of the "subsession"\&. -.SH "选项" -.PP -\fB\-f\fR -.RS 4 -不要执行认证,用户已经预认证过。 -.sp -注意:此时,\fIusername\fR -是强制的。 -.RE -.PP -\fB\-h\fR -.RS 4 -此登录的远程主机名。 -.RE -.PP -\fB\-p\fR -.RS 4 -保留环境。 -.RE -.PP -\fB\-r\fR -.RS 4 -为 rlogin (远程登录)执行 autologin (自动登录)协议。 -.RE -.PP -\fB\-r\fR, -\fB\-h\fR -and -\fB\-f\fR -只能用于 root 使用 -\fBlogin\fR -时。 -.SH "CAVEATS" -.PP -此版本的 -\fBlogin\fR -有很多编译选项,只有一部分可以在任何站点使用。 -.PP -文件的位置由系统配置决定。 -.PP -The -\fBlogin\fR -program is NOT responsible for removing users from the utmp file\&. It is the responsibility of -\fBgetty\fR(8) -and -\fBinit\fR(8) -to clean up apparent ownership of a terminal session\&. If you use -\fBlogin\fR -from the shell prompt without -\fBexec\fR, the user you use will continue to appear to be logged in even after you log out of the "subsession"\&. -.PP -As with any program, -\fBlogin\fR\*(Aqs appearance can be faked\&. If non\-trusted users have physical access to a machine, an attacker could use this to obtain the password of the next person coming to sit in front of the machine\&. Under Linux, the SAK mechanism can be used by users to initiate a trusted path and prevent this kind of attack\&. -.SH "配置文件" -.PP -在 -/etc/login\&.defs -中有如下配置变量,可以用来更改此工具的行为: -.PP -\fBCONSOLE\fR (string) -.RS 4 -如果定义了,或者是包含设备名(没行一个)的文件的完整路径名,或者是\(lq:\(rq分隔的设备名列表。将只会在这写设备上允许 root 登录。 -.sp -如果没有定义,可以在任何设备上使用 root。 -.sp -指定的设备时不带 /dev/ 前缀。 -.RE -.PP -\fBCONSOLE_GROUPS\fR (string) -.RS 4 -在控制台登录时,添加到用户附加组集中的组列表(就如 CONSOLE 所确定的)。默认是无。 -使用时需要注意:这可能使用户获取这些组的永久权限,甚至登录到的不是此控制台时。 -.RE -.PP -\fBDEFAULT_HOME\fR (boolean) -.RS 4 -如果不能 cd 到主目录时,说明是否允许登录。默认是否。 -.sp -如果设置为 -\fIyes\fR,如果不能 cd 到主目录时,用户将会登录到根目录(/)。 -.RE -.PP -\fBENV_HZ\fR (string) -.RS 4 -如果设置了,将会用于在用户登录时定义 HZ 环境变量。值必须以 -\fIHZ=\fR -开头。Linux 上的常用值是 -\fIHZ=100\fR。 -.RE -.PP -\fBENV_PATH\fR (string) -.RS 4 -If set, it will be used to define the PATH environment variable when a regular user login\&. The value is a colon separated list of paths (for example -\fI/bin:/usr/bin\fR) and can be preceded by -\fIPATH=\fR\&. The default value is -\fIPATH=/bin:/usr/bin\fR\&. -.RE -.PP -\fBENV_SUPATH\fR (string) -.RS 4 -If set, it will be used to define the PATH environment variable when the superuser login\&. The value is a colon separated list of paths (for example -\fI/sbin:/bin:/usr/sbin:/usr/bin\fR) and can be preceded by -\fIPATH=\fR\&. The default value is -\fIPATH=/sbin:/bin:/usr/sbin:/usr/bin\fR\&. -.RE -.PP -\fBENV_TZ\fR (string) -.RS 4 -如果设置了,它将用于在用户登录时定义 TZ 环境变量。此值可以是以 -\fITZ=\fR -开头的时区名(例如 -\fITZ=CST6CDT\fR),或者是包含时区规则的文件完整路径(例如 -/etc/tzname)。 -.sp -如果将完整路径指定为了一个不存在或不可读的文件,则默认使用 -\fITZ=CST6CDT\fR。 -.RE -.PP -\fBENVIRON_FILE\fR (string) -.RS 4 -如果此文件存在,并且可读,将会从中读取登录环境。所有行都必须是 name=value 的格式。 -.sp -以 # 开头的行将视为注释,并被忽略。 -.RE -.PP -\fBERASECHAR\fR (number) -.RS 4 -终端擦除字符 (\fI010\fR -= backspace, -\fI0177\fR -= DEL)。 -.sp -此值可以使用前缀\(lq0\(rq表示八进制,\(lq0x\(rq表示十六进制。 -.RE -.PP -\fBFAIL_DELAY\fR (number) -.RS 4 -登录失败后,等待多少秒才再允许登录。 -.RE -.PP -\fBFAILLOG_ENAB\fR (boolean) -.RS 4 -允许登录并显示 -/var/log/faillog -登录失败信息。 -.RE -.PP -\fBFAKE_SHELL\fR (string) -.RS 4 -如果设置了,\fBlogin\fR -将执行此 shell 而不是在 -/etc/passwd -中指定的用户 shell。 -.RE -.PP -\fBFTMP_FILE\fR (string) -.RS 4 -如果定义,登录失败会以 utmp 格式记录在此文件中。 -.RE -.PP -\fBHUSHLOGIN_FILE\fR (string) -.RS 4 -If defined, this file can inhibit all the usual chatter during the login sequence\&. If a full pathname is specified, then hushed mode will be enabled if the user\*(Aqs name or shell are found in the file\&. If not a full pathname, then hushed mode will be enabled if the file exists in the user\*(Aqs home directory\&. -.RE -.PP -\fBISSUE_FILE\fR (string) -.RS 4 -如果定义了,此文件将在每次的登录提示之前现实。 -.RE -.PP -\fBKILLCHAR\fR (number) -.RS 4 -终端 KILL 字符 (\fI025\fR -= CTRL/U)。 -.sp -此值可以使用前缀\(lq0\(rq表示八进制,\(lq0x\(rq表示十六进制。 -.RE -.PP -\fBLASTLOG_ENAB\fR (boolean) -.RS 4 -允许记录和显示 /var/log/lastlog 登录时间信息。 -.RE -.PP -\fBLOGIN_RETRIES\fR (number) -.RS 4 -密码错误时,重试的最大次数。 -.RE -.PP -\fBLOGIN_STRING\fR (string) -.RS 4 -此字符串用于提示输入密码。默认是 "Password: ",或者翻译了的结果(汉语中翻译为了\(lq密码:\(rq)。如果设置了此变量,提示不会被翻译。 -.sp -如果字符串包含 -\fI%s\fR,将会被用户名替换。 -.RE -.PP -\fBLOGIN_TIMEOUT\fR (number) -.RS 4 -最大登录时间(以秒为单位)。 -.RE -.PP -\fBLOG_OK_LOGINS\fR (boolean) -.RS 4 -允许记录成功登录。 -.RE -.PP -\fBLOG_UNKFAIL_ENAB\fR (boolean) -.RS 4 -在记录到登录失败时,允许记录未知用户名。 -.sp -注意:如果用户不小心将密码输入到了登录名中,记录未知用户名可能是一个安全隐患。 -.RE -.PP -\fBMAIL_CHECK_ENAB\fR (boolean) -.RS 4 -启用登录时检查和现实邮箱状态。 -.sp -如果 shell 的启动文件已经检查了邮件("mailx \-e" 或者其它同功能的工具),您应该禁用它。 -.RE -.PP -\fBMAIL_DIR\fR (string) -.RS 4 -邮箱目录。修改或删除用户账户时需要处理邮箱,如果没有指定,将使用编译时指定的默认值。 -.RE -.PP -\fBMAIL_FILE\fR (string) -.RS 4 -定义用户邮箱文件的位置(相对于主目录)。 -.RE -.PP -\fBMAIL_DIR\fR -and -\fBMAIL_FILE\fR -变量由 -\fBuseradd\fR,\fBusermod\fR -和 -\fBuserdel\fR -用于创建、移动或删除用户邮箱。 -.PP -如果 -\fBMAIL_CHECK_ENAB\fR -设置为 -\fIyes\fR,它们也被用于定义 -\fBMAIL\fR -环境变量。 -.PP -\fBMOTD_FILE\fR (string) -.RS 4 -If defined, ":" delimited list of "message of the day" files to be displayed upon login\&. -.RE -.PP -\fBNOLOGINS_FILE\fR (string) -.RS 4 -If defined, name of file whose presence will inhibit non\-root logins\&. The contents of this file should be a message indicating why logins are inhibited\&. -.RE -.PP -\fBPORTTIME_CHECKS_ENAB\fR (boolean) -.RS 4 -Enable checking of time restrictions specified in -/etc/porttime\&. -.RE -.PP -\fBQUOTAS_ENAB\fR (boolean) -.RS 4 -Enable setting of resource limits from -/etc/limits -and ulimit, umask, and niceness from the user\*(Aqs passwd gecos field\&. -.RE -.PP -\fBTTYGROUP\fR (string), \fBTTYPERM\fR (string) -.RS 4 -The terminal permissions: the login tty will be owned by the -\fBTTYGROUP\fR -group, and the permissions will be set to -\fBTTYPERM\fR\&. -.sp -By default, the ownership of the terminal is set to the user\*(Aqs primary group and the permissions are set to -\fI0600\fR\&. -.sp - -\fBTTYGROUP\fR -can be either the name of a group or a numeric group identifier\&. -.sp -If you have a -\fBwrite\fR -program which is "setgid" to a special group which owns the terminals, define TTYGROUP to the group number and TTYPERM to 0620\&. Otherwise leave TTYGROUP commented out and assign TTYPERM to either 622 or 600\&. -.RE -.PP -\fBTTYTYPE_FILE\fR (string) -.RS 4 -If defined, file which maps tty line to TERM environment parameter\&. Each line of the file is in a format something like "vt100 tty01"\&. -.RE -.PP -\fBULIMIT\fR (number) -.RS 4 -默认 -\fBulimit\fR -值。 -.RE -.PP -\fBUMASK\fR (number) -.RS 4 -文件模式创建掩码初始化为此值。如果没有指定,掩码初始化为 022。 -.sp -\fBuseradd\fR -和 -\fBnewusers\fR -使用此掩码设置它们创建的用户主目录的模式。 -.sp -也被 -\fBlogin\fR -用于指定用户的初始 umask。注意,此掩码可以被用户的 GECOS 行覆盖(当设置了 -\fBQUOTAS_ENAB\fR -时),也可以被带 -\fIK\fR -指示符的 -\fBlimits\fR(5) -定义的限制值覆盖。 -.RE -.PP -\fBUSERGROUPS_ENAB\fR (boolean) -.RS 4 -如果 uid 和 gid 相同,用户名和主用户名也相同,使非 root 组的组掩码位和属主位相同 (如:022 \-> 002, 077 \-> 007)。 -.sp -如果设置为 -\fIyes\fR,如果组中没有成员了,\fBuserdel\fR -将移除此用户组,\fBuseradd\fR -创建用户时,也会创建一个同名的默认组。 -.RE -.SH "文件" -.PP -/var/run/utmp -.RS 4 -当前登录会话的列表。 -.RE -.PP -/var/log/wtmp -.RS 4 -先前的登录会话列表。 -.RE -.PP -/etc/passwd -.RS 4 -用户账户信息。 -.RE -.PP -/etc/shadow -.RS 4 -安全用户账户信息。 -.RE -.PP -/etc/motd -.RS 4 -System message of the day file\&. -.RE -.PP -/etc/nologin -.RS 4 -阻止非 root 用户登录。 -.RE -.PP -/etc/ttytype -.RS 4 -终端类型列表。 -.RE -.PP -$HOME/\&.hushlogin -.RS 4 -阻止现实系统信息。 -.RE -.PP -/etc/login\&.defs -.RS 4 -Shadow 密码套件配置。 -.RE -.SH "参见" -.PP -\fBmail\fR(1), -\fBpasswd\fR(1), -\fBsh\fR(1), -\fBsu\fR(1), -\fBlogin.defs\fR(5), -\fBnologin\fR(5), -\fBpasswd\fR(5), -\fBsecuretty\fR(5), -\fBgetty\fR(8)\&. diff --git a/man/zh_CN/man1/newgrp.1 b/man/zh_CN/man1/newgrp.1 deleted file mode 100644 index 478b9709..00000000 --- a/man/zh_CN/man1/newgrp.1 +++ /dev/null @@ -1,99 +0,0 @@ -'\" t -.\" Title: newgrp -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 用户命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "NEWGRP" "1" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "用户命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -newgrp \- 登录到一个新组 -.SH "大纲" -.HP \w'\fBnewgrp\fR\ 'u -\fBnewgrp\fR [\-] [\fIgroup\fR] -.SH "描述" -.PP -The -\fBnewgrp\fR -command is used to change the current group ID during a login session\&. If the optional -\fB\-\fR -flag is given, the user\*(Aqs environment will be reinitialized as though the user had logged in, otherwise the current environment, including current working directory, remains unchanged\&. -.PP - -\fBnewgrp\fR -changes the current real group ID to the named group, or to the default group listed in -/etc/passwd -if no group name is given\&. -\fBnewgrp\fR -also tries to add the group to the user groupset\&. If not root, the user will be prompted for a password if she does not have a password (in -/etc/shadow -if this user has an entry in the shadowed password file, or in -/etc/passwd -otherwise) and the group does, or if the user is not listed as a member and the group has a password\&. The user will be denied access if the group password is empty and the user is not listed as a member\&. -.PP -If there is an entry for this group in -/etc/gshadow, then the list of members and the password of this group will be taken from this file, otherwise, the entry in -/etc/group -is considered\&. -.SH "配置文件" -.PP -在 -/etc/login\&.defs -中有如下配置变量,可以用来更改此工具的行为: -.PP -\fBSYSLOG_SG_ENAB\fR (boolean) -.RS 4 -允许\(lqsyslog\(rq记录 -\fBsg\fR -的活动。 -.RE -.SH "文件" -.PP -/etc/passwd -.RS 4 -用户账户信息。 -.RE -.PP -/etc/shadow -.RS 4 -安全用户账户信息。 -.RE -.PP -/etc/group -.RS 4 -组账户信息。 -.RE -.PP -/etc/gshadow -.RS 4 -安全组账户信息。 -.RE -.SH "参见" -.PP -\fBid\fR(1), -\fBlogin\fR(1), -\fBsu\fR(1), -\fBsg\fR(1), -\fBgpasswd\fR(1), -\fBgroup\fR(5), \fBgshadow\fR(5)\&. diff --git a/man/zh_CN/man1/passwd.1 b/man/zh_CN/man1/passwd.1 deleted file mode 100644 index 02901f91..00000000 --- a/man/zh_CN/man1/passwd.1 +++ /dev/null @@ -1,346 +0,0 @@ -'\" t -.\" Title: passwd -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 用户命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "PASSWD" "1" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "用户命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -passwd \- 更改用户密码 -.SH "大纲" -.HP \w'\fBpasswd\fR\ 'u -\fBpasswd\fR [\fI选项\fR] [\fI登录\fR] -.SH "描述" -.PP -\fBpasswd\fR -命令用来更改用户账户的密码。普通用户通常只更改其自己账户的密码,而超级用户可以更改任何账户的密码。\fBpasswd\fR -也更改账户或相关的密码有效期。 -.SS "密码更改" -.PP -如果有旧密码,首先提示用户输入旧密码。加密这个密码然后和存储的密码进行比较。用户只有一次机会输入正确密码。允许超级用户略过这个步骤,以便更改忘记了的密码。 -.PP -输入了密码之后,会检查密码年龄信息,以查看此时是否允许用户更改密码。如果不允许,\fBpasswd\fR -拒绝更改密码,然后退出。 -.PP -提示用户输入两次新密码。第二次和第一次进行比较,并且需要相同才能更改密码。 -.PP -然后,测试密码的负责程度。一般来讲,密码应该包含 6 到 8 位字符,从下边的一个或多个集合中选择: -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -小写字母 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -数字 0 到 9 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -标点符号 -.RE -.PP -必须要留意不能包含系统默认的擦除和杀死字符。\fBpasswd\fR -会拒绝复杂度不满足要求的密码。 -.SS "关于用户密码的提示" -.PP -密码的安全性依赖于加密算法的强度和密钥空间的大小。旧的 -\fIUNIX\fR -系统加密算法基于 NBS DES 算法。推荐使用更新的算法(查看 -\fBENCRYPT_METHOD\fR)。密钥空间的大小依赖于选择的密码的随机性。 -.PP -由于粗心地或处理选择密码,会危及密码的安全。由于这个原因,您不应该选择出现在词典中或者必须要写下来才能记住的密码。密码也不应该是一个名字、许可证号、生日或者街道号。所有这些可以用于猜测来损害系统安全。 -.PP -您可以在在 http://zh\&.wikipedia\&.org/zh\-cn/密码强度 找到怎样选择强壮密码的建议。 -.SH "选项" -.PP -\fBpasswd\fR -命令可以接受的选项有: -.PP -\fB\-a\fR, \fB\-\-all\fR -.RS 4 -此选项只能和 -\fB\-S\fR -一起使用,来显示所有用户的状态。 -.RE -.PP -\fB\-d\fR, \fB\-\-delete\fR -.RS 4 -删除用户密码(让它为空)。这是禁用一个用户密码的快速方法。它将设置给出名称的账户。 -.RE -.PP -\fB\-e\fR, \fB\-\-expire\fR -.RS 4 -让一个账户的密码立即过期。这可以强制一个用户下次登录时更改密码。 -.RE -.PP -\fB\-h\fR, \fB\-\-help\fR -.RS 4 -现实帮助信息并退出。 -.RE -.PP -\fB\-i\fR, \fB\-\-inactive\fR\fIINACTIVE\fR -.RS 4 -此选项用于在密码过期一定天数之后禁用账户。一个用户账户密码已经过期 -\fIINACTIVE\fR -天之后,用户将不能再登录进账户。 -.RE -.PP -\fB\-k\fR, \fB\-\-keep\-tokens\fR -.RS 4 -表示密码更改只应该因为认证口令(密码)过期更改。用户希望保持他们尚未过期的口令。 -.RE -.PP -\fB\-l\fR, \fB\-\-lock\fR -.RS 4 -锁定指定账户的密码。此选项通过将密码更改为一个不可能与加密值匹配的值来禁用(它在密码开头添加一个\(lq!\(rq)。 -.sp -注意,这并没有禁用此账户。用户仍然可以通过其它认证方式(如 SSH 密码)来登录。要禁用此账户,管理员需要使用 -\fBusermod \-\-expiredate 1\fR -(设置账户的过期时间为1970年1月2日)。 -.sp -被锁定了密码的用户不允许更改密码。 -.RE -.PP -\fB\-n\fR, \fB\-\-mindays\fR\fIMIN_DAYS\fR -.RS 4 -在密码更改之间的最小天数设置为 -\fIMIN_DAYS\fR。此字段中的 0 值表示用户可以在任何时间更改其密码。 -.RE -.PP -\fB\-q\fR, \fB\-\-quiet\fR -.RS 4 -安静模式。 -.RE -.PP -\fB\-r\fR, \fB\-\-repository\fR\fIREPOSITORY\fR -.RS 4 -在 -\fIREPOSITORY\fR -中更改密码 -.RE -.PP -\fB\-R\fR, \fB\-\-root\fR\fICHROOT_DIR\fR -.RS 4 -Apply changes in the -\fICHROOT_DIR\fR -directory and use the configuration files from the -\fICHROOT_DIR\fR -directory\&. -.RE -.PP -\fB\-S\fR, \fB\-\-status\fR -.RS 4 -显示账户状态信息。状态信息包含 7 个字段。首个字段是用户的登录名,第二个字段表示用户账户是否已经锁定密码(L)、没有密码 (NP)或者密码可用(P),第三个字段给出最后一次更改密码的日期。接下来的四个字段分别是密码的最小年龄、最大年龄、警告期和禁用期。这些年龄以天为单位计算。 -.RE -.PP -\fB\-u\fR, \fB\-\-unlock\fR -.RS 4 -解锁指定用户的密码。此操作通过将密码改回先前值(改回使用 -\fB\-l\fR -之前的值)重新启用密码。 -.RE -.PP -\fB\-w\fR, \fB\-\-warndays\fR\fIWARN_DAYS\fR -.RS 4 -设置在要求更改密码之前警告的天数。\fIWARN_DAYS\fR -选项是在密码过期之前提前警告的天数。 -.RE -.PP -\fB\-x\fR, \fB\-\-maxdays\fR\fIMAX_DAYS\fR -.RS 4 -设置密码仍然有效的最大天数。\fIMAX_DAYS\fR -之后,密码会要求更改。 -.RE -.SH "CAVEATS" -.PP -密码复杂性检查在每台机器间不同。用户应该选择适合的尽量复杂的密码。 -.PP -在启动了 NIS 的系统上,如果没有登录 NIS 服务器,用户或许不能更改自己的密码。 -.SH "配置文件" -.PP -在 -/etc/login\&.defs -中有如下配置变量,可以用来更改此工具的行为: -.PP -\fBENCRYPT_METHOD\fR (string) -.RS 4 -这定义了系统加密密码的默认算法(如果没有在命令行上指定算法)。 -.sp -可以使用如下值:\fIDES\fR -(default), -\fIMD5\fR, \fISHA256\fR, \fISHA512\fR\&. -.sp -注意,此参数会覆盖 -\fBMD5_CRYPT_ENAB\fR -变量。 -.RE -.PP -\fBMD5_CRYPT_ENAB\fR (boolean) -.RS 4 -表示密码是否必须使用基于 MD5 的算法加密。如果设为 -\fIyes\fR,新密码将使用可以和新版 FreeBSD 兼容的基于 MD5 的算法加密。它支持无限长度的密码以及更长的盐字符串。如果您需要将加密的密码复制到其它不理解新算法的系统,设置为 -\fIno\fR。默认值是 -\fIno\fR。 -.sp -This variable is superseded by the -\fBENCRYPT_METHOD\fR -variable or by any command line option used to configure the encryption algorithm\&. -.sp -此变量已经废弃。您应该使用 -\fBENCRYPT_METHOD\fR。 -.RE -.PP -\fBOBSCURE_CHECKS_ENAB\fR (boolean) -.RS 4 -对密码更改启用附加检查。 -.RE -.PP -\fBPASS_ALWAYS_WARN\fR (boolean) -.RS 4 -如果是 root,警告弱密码,但是仍然允许使用。 -.RE -.PP -\fBPASS_CHANGE_TRIES\fR (number) -.RS 4 -可以尝试更改密码的最大次数(太容易)。 -.RE -.PP -\fBPASS_MAX_LEN\fR (number), \fBPASS_MIN_LEN\fR (number) -.RS 4 -crypt() 的有效字符位数。\fBPASS_MAX_LEN\fR -默认是 8,除非您自己的 crypt() 更好,否则不要更改。如果 -\fBMD5_CRYPT_ENAB\fR -设为 -\fIyes\fR,会被忽略。 -.RE -.PP -\fBSHA_CRYPT_MIN_ROUNDS\fR (number), \fBSHA_CRYPT_MAX_ROUNDS\fR (number) -.RS 4 -\fBENCRYPT_METHOD\fR -设为 -\fISHA256\fR -或 -\fISHA512\fR -时,此项确定加密算法默认使用 SHA 轮转数目(当轮转数没有通过命令行指定时)。 -.sp -使用很多轮转,会让暴力破解更加困难。但是需要注意,认证用户时也会需要更多的 CPU 资源。 -.sp -如果没有指定,libc 会选择默认的轮转数(5000)。 -.sp -值必须在 1000 \- 999,999,999 之间。 -.sp -如果只设置了一个 -\fBSHA_CRYPT_MIN_ROUNDS\fR -或 -\fBSHA_CRYPT_MAX_ROUNDS\fR -值,就会使用这个值。 -.sp -如果 -\fBSHA_CRYPT_MIN_ROUNDS\fR -> -\fBSHA_CRYPT_MAX_ROUNDS\fR,将会使用大的那个。 -.RE -.SH "文件" -.PP -/etc/passwd -.RS 4 -用户账户信息。 -.RE -.PP -/etc/shadow -.RS 4 -安全用户账户信息。 -.RE -.PP -/etc/login\&.defs -.RS 4 -Shadow 密码套件配置。 -.RE -.SH "退出值" -.PP -\fBpasswd\fR -命令退出,并返回如下值:.PP -\fI0\fR -.RS 4 -成功 -.RE -.PP -\fI1\fR -.RS 4 -权限不够 -.RE -.PP -\fI2\fR -.RS 4 -无效的选项组合 -.RE -.PP -\fI3\fR -.RS 4 -意外的失败,什么也没有做。 -.RE -.PP -\fI4\fR -.RS 4 -意外的失败,passwd -文件丢失 -.RE -.PP -\fI5\fR -.RS 4 -passwd -文件忙,请重试 -.RE -.PP -\fI6\fR -.RS 4 -给了选项一个无效的参数 -.RE -.SH "参见" -.PP -\fBchpasswd\fR(8), -\fBpasswd\fR(5), -\fBshadow\fR(5), -\fBlogin.defs\fR(5),\fBusermod\fR(8)\&. diff --git a/man/zh_CN/man1/sg.1 b/man/zh_CN/man1/sg.1 deleted file mode 100644 index 936680d1..00000000 --- a/man/zh_CN/man1/sg.1 +++ /dev/null @@ -1,95 +0,0 @@ -'\" t -.\" Title: sg -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 用户命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "SG" "1" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "用户命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -sg \- 以不同的组 ID 执行命令 -.SH "大纲" -.HP \w'\fBsg\fR\ 'u -\fBsg\fR [\-] [组\ [\-c]\ 命令] -.SH "描述" -.PP -\fBsg\fR -命令类似于 -\fBnewgrp\fR,但是可以接受一个命令。这个命令将会使用 -/bin/sh -shell 来执行。对于您可以使用 -\fBsg\fR -启动的多数 shell,您需要将多个词的命令用引号引起来。\fBnewgrp\fR -和 -\fBsg\fR -之间的另外一个不同点是某些 shell 对 -\fBnewgrp\fR -有特殊对待,会使用 -\fBnewgrp\fR -创建的一个新的 shell 实例替换自身。这不会发生在 -\fBsg\fR -身上,所以从 -\fBsg\fR -退出后,您会返回到先前的组 ID。 -.SH "配置文件" -.PP -在 -/etc/login\&.defs -中有如下配置变量,可以用来更改此工具的行为: -.PP -\fBSYSLOG_SG_ENAB\fR (boolean) -.RS 4 -允许\(lqsyslog\(rq记录 -\fBsg\fR -的活动。 -.RE -.SH "文件" -.PP -/etc/passwd -.RS 4 -用户账户信息。 -.RE -.PP -/etc/shadow -.RS 4 -安全用户账户信息。 -.RE -.PP -/etc/group -.RS 4 -组账户信息。 -.RE -.PP -/etc/gshadow -.RS 4 -安全组账户信息。 -.RE -.SH "参见" -.PP -\fBid\fR(1), -\fBlogin\fR(1), -\fBnewgrp\fR(1), -\fBsu\fR(1), -\fBgpasswd\fR(1), -\fBgroup\fR(5), \fBgshadow\fR(5)\&. diff --git a/man/zh_CN/man1/su.1 b/man/zh_CN/man1/su.1 deleted file mode 100644 index 2151511e..00000000 --- a/man/zh_CN/man1/su.1 +++ /dev/null @@ -1,424 +0,0 @@ -'\" t -.\" Title: su -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 用户命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "SU" "1" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "用户命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -su \- 更改用户 ID 或成为超级用户 -.SH "大纲" -.HP \w'\fBsu\fR\ 'u -\fBsu\fR [\fI选项\fR] [\fI用户名\fR] -.SH "描述" -.PP -\fBsu\fR -用于让用户在登录期间变成另外一个用户。后边不带 -\fBusername\fR -使用时,\fBsu\fR -默认会变成超级用户。可选的选项 -\fB\-\fR,可以用于提供一个类似于用户直接登录的环境,用户可能期望是这样的。 -.PP -附加参数可以在用户名之后提供,这时,将会把他们提供给用户的登录 shell。特别地,参数 -\fB\-c\fR -将会使下一个参数被多数命令解释器视为命令。这个命令会被 -/etc/passwd -中为目标用户指定的 shell 执行。 -.PP -您可以使用 -\fB\-\-\fR -参数将 -\fBsu\fR -选项和提供给 shell 的参数分隔开来。 -.PP -如果合适,将提示用户输入一个密码。输入无效的密码会产生一个错误消息。所有的尝试,无论成功还是失败,都会被记录,以检测对系统的滥用。 -.PP -当前环境会传递给新 shell。对于普通用户,\fB$PATH\fR -的值重置为 -/bin:/usr/bin,而对于超级用户则是 -/sbin:/bin:/usr/sbin:/usr/bin。这会随 -/etc/login\&.defs -中的 -\fBENV_PATH\fR -和 -\fBENV_SUPATH\fR -值改变。 -.PP -在登录 shell 中以第一个字符是\(lq*\(rq标注的是子系统登录。给定的主目录将被用于用户实际登录的新文件系统的根。 -.SH "选项" -.PP -\fBsu\fR -命令可以接受的选项有: -.PP -\fB\-c\fR, \fB\-\-command\fR\fICOMMAND\fR -.RS 4 -通过使用其 -\fB\-c\fR -选项,指定一个由 shell 运行的命令。 -.sp -执行的命令将不会拥有控制终端。此选项不能用于执行需要控制 TTY 的交互程序。 -.RE -.PP -\fB\-\fR, \fB\-l\fR, \fB\-\-login\fR -.RS 4 -提供一个类似于用户直接登录的环境,用户可能会希望这样。 -.sp -使用了 -\fB\-\fR -时,它必须是 -\fBsu\fR -的最后一个参数。其它形式(\fB\-l\fR -和 -\fB\-\-login\fR) 没有这个限制。 -.RE -.PP -\fB\-s\fR, \fB\-\-shell\fR\fISHELL\fR -.RS 4 -将使用的 shell。 -.sp -使用的 shell 在如下中选择(高优先级在前):.PP -.RS 4 -通过 \-\-shell 指定的 shell。 -.RE -.PP -.RS 4 -如果使用了 -\fB\-\-preserve\-environment\fR,shell 将由 -\fB$SHELL\fR -环境变量指定。 -.RE -.PP -.RS 4 -在 -/etc/passwd -的相应项中为目标用户指定的 shell。 -.RE -.PP -.RS 4 -如果无法通过以上办法找到一个 shell,则使用 -/bin/sh。 -.RE -.sp -如果目标用户的 shell 是有限制的(即,/etc/passwd -中用户项中的 shell 字段没有在 -/etc/shells -中列出),那么 -\fB\-\-shell\fR -选项或 -\fB$SHELL\fR -环境变量不会带入账户,除非 -\fBsu\fR -是被 root 调用的。 -.RE -.PP -\fB\-m\fR, \fB\-p\fR, \fB\-\-preserve\-environment\fR -.RS 4 -保留当前环境,除非:.PP -\fB$PATH\fR -.RS 4 -根据 -/etc/login\&.defs -中的 -\fBENV_PATH\fR -or -\fBENV_SUPATH\fR -选项重设 (请往下看) -.RE -.PP -\fB$IFS\fR -.RS 4 -如果已经设置了,重设 -\(lq<space><tab><newline>\(rq。 -.RE -.sp -如果用户的 shell 受限,此选项无效 (除非是 root 调用的 -\fBsu\fR)。 -.sp -注意,环境的默认行为如下:.PP -.RS 4 -The -\fB$HOME\fR, -\fB$SHELL\fR, -\fB$USER\fR, -\fB$LOGNAME\fR, -\fB$PATH\fR, 和 -\fB$IFS\fR -这些环境变量会被重置。 -.RE -.PP -.RS 4 -如果没有使用 -\fB\-\-login\fR,复制环境,上述几个变量除外。 -.RE -.PP -.RS 4 -如果使用了 -\fB\-\-login\fR,如果设置了 -\fB$TERM\fR, -\fB$COLORTERM\fR, -\fB$DISPLAY\fR -和 -\fB$XAUTHORITY\fR,这些环境变量也会被重置。 -.RE -.PP -.RS 4 -如果使用了 -\fB\-\-login\fR,环境变量 -\fB$TZ\fR, -\fB$HZ\fR, and -\fB$MAIL\fR -也会根据 -/etc/login\&.defs -中的选项 -\fBENV_TZ\fR, -\fBENV_HZ\fR, -\fBMAIL_DIR\fR -和 -\fBMAIL_FILE\fR -重置 (请看下边)。 -.RE -.PP -.RS 4 -如果使用了 -\fB\-\-login\fR,其它环境变量可能会根据 -\fBENVIRON_FILE\fR -文件来设置(请看下边)。 -.RE -.RE -.SH "CAVEATS" -.PP -此版本的 -\fBsu\fR -有很多编译选项,在某些机器上,可能只使用了其中的一部分。 -.SH "配置文件" -.PP -在 -/etc/login\&.defs -中有如下配置变量,可以用来更改此工具的行为: -.PP -\fBCONSOLE\fR (string) -.RS 4 -如果定义了,或者是包含设备名(没行一个)的文件的完整路径名,或者是\(lq:\(rq分隔的设备名列表。将只会在这写设备上允许 root 登录。 -.sp -如果没有定义,可以在任何设备上使用 root。 -.sp -指定的设备时不带 /dev/ 前缀。 -.RE -.PP -\fBCONSOLE_GROUPS\fR (string) -.RS 4 -在控制台登录时,添加到用户附加组集中的组列表(就如 CONSOLE 所确定的)。默认是无。 -使用时需要注意:这可能使用户获取这些组的永久权限,甚至登录到的不是此控制台时。 -.RE -.PP -\fBDEFAULT_HOME\fR (boolean) -.RS 4 -如果不能 cd 到主目录时,说明是否允许登录。默认是否。 -.sp -如果设置为 -\fIyes\fR,如果不能 cd 到主目录时,用户将会登录到根目录(/)。 -.RE -.PP -\fBENV_HZ\fR (string) -.RS 4 -如果设置了,将会用于在用户登录时定义 HZ 环境变量。值必须以 -\fIHZ=\fR -开头。Linux 上的常用值是 -\fIHZ=100\fR。 -.RE -.PP -\fBENVIRON_FILE\fR (string) -.RS 4 -如果此文件存在,并且可读,将会从中读取登录环境。所有行都必须是 name=value 的格式。 -.sp -以 # 开头的行将视为注释,并被忽略。 -.RE -.PP -\fBENV_PATH\fR (string) -.RS 4 -If set, it will be used to define the PATH environment variable when a regular user login\&. The value is a colon separated list of paths (for example -\fI/bin:/usr/bin\fR) and can be preceded by -\fIPATH=\fR\&. The default value is -\fIPATH=/bin:/usr/bin\fR\&. -.RE -.PP -\fBENV_SUPATH\fR (string) -.RS 4 -If set, it will be used to define the PATH environment variable when the superuser login\&. The value is a colon separated list of paths (for example -\fI/sbin:/bin:/usr/sbin:/usr/bin\fR) and can be preceded by -\fIPATH=\fR\&. The default value is -\fIPATH=/sbin:/bin:/usr/sbin:/usr/bin\fR\&. -.RE -.PP -\fBENV_TZ\fR (string) -.RS 4 -如果设置了,它将用于在用户登录时定义 TZ 环境变量。此值可以是以 -\fITZ=\fR -开头的时区名(例如 -\fITZ=CST6CDT\fR),或者是包含时区规则的文件完整路径(例如 -/etc/tzname)。 -.sp -如果将完整路径指定为了一个不存在或不可读的文件,则默认使用 -\fITZ=CST6CDT\fR。 -.RE -.PP -\fBLOGIN_STRING\fR (string) -.RS 4 -此字符串用于提示输入密码。默认是 "Password: ",或者翻译了的结果(汉语中翻译为了\(lq密码:\(rq)。如果设置了此变量,提示不会被翻译。 -.sp -如果字符串包含 -\fI%s\fR,将会被用户名替换。 -.RE -.PP -\fBMAIL_CHECK_ENAB\fR (boolean) -.RS 4 -启用登录时检查和现实邮箱状态。 -.sp -如果 shell 的启动文件已经检查了邮件("mailx \-e" 或者其它同功能的工具),您应该禁用它。 -.RE -.PP -\fBMAIL_DIR\fR (string) -.RS 4 -邮箱目录。修改或删除用户账户时需要处理邮箱,如果没有指定,将使用编译时指定的默认值。 -.RE -.PP -\fBMAIL_FILE\fR (string) -.RS 4 -定义用户邮箱文件的位置(相对于主目录)。 -.RE -.PP -\fBMAIL_DIR\fR -and -\fBMAIL_FILE\fR -变量由 -\fBuseradd\fR,\fBusermod\fR -和 -\fBuserdel\fR -用于创建、移动或删除用户邮箱。 -.PP -如果 -\fBMAIL_CHECK_ENAB\fR -设置为 -\fIyes\fR,它们也被用于定义 -\fBMAIL\fR -环境变量。 -.PP -\fBQUOTAS_ENAB\fR (boolean) -.RS 4 -Enable setting of resource limits from -/etc/limits -and ulimit, umask, and niceness from the user\*(Aqs passwd gecos field\&. -.RE -.PP -\fBSULOG_FILE\fR (string) -.RS 4 -如果定义了,所有的 su 活动都会记录到此文件。 -.RE -.PP -\fBSU_NAME\fR (string) -.RS 4 -如果定义了,就是运行\(lqsu \-\(rq时显示的命令名称。例如,如果定义为\(lqsu\(rq,那么\(lqps\(rq会显示此命令为\(lq\-su\(rq。如果没有定义,\(lqps\(rq将会显示实际执行的 shell,例如类似于\(lq\-sh\(rq。 -.RE -.PP -\fBSU_WHEEL_ONLY\fR (boolean) -.RS 4 -如果为 -\fIyes\fR,用户必须在 -/etc/group -中别设定为 GID 为 0 的组(在大部分 Linux 上叫 -\fIroot\fR)的成员。 -.RE -.PP -\fBSYSLOG_SU_ENAB\fR (boolean) -.RS 4 -除了 sulog 文件日志,也为 -\fBsu\fR -活动启用\(lqsyslog\(rq日志。 -.RE -.PP -\fBUSERGROUPS_ENAB\fR (boolean) -.RS 4 -如果 uid 和 gid 相同,用户名和主用户名也相同,使非 root 组的组掩码位和属主位相同 (如:022 \-> 002, 077 \-> 007)。 -.sp -如果设置为 -\fIyes\fR,如果组中没有成员了,\fBuserdel\fR -将移除此用户组,\fBuseradd\fR -创建用户时,也会创建一个同名的默认组。 -.RE -.SH "文件" -.PP -/etc/passwd -.RS 4 -用户账户信息。 -.RE -.PP -/etc/shadow -.RS 4 -安全用户账户信息。 -.RE -.PP -/etc/login\&.defs -.RS 4 -Shadow 密码套件配置。 -.RE -.SH "退出值" -.PP -成功时,\fBsu\fR -返回执行的命令的退出值。 -.PP -如果命令被信号结束,\fBsu\fR -返回此信号的编号加 128。 -.PP -如果 su 必须要杀死此命令(因为已经要求它结束,可是却没有及时结束),\fBsu\fR -返回 255。 -.PP -\fBsu\fR -中的某些退出值与执行的命令无关:.PP -\fI0\fR -.RS 4 -成功 (只有 -\fB\-\-help\fR) -.RE -.PP -\fI1\fR -.RS 4 -系统或者认证失败 -.RE -.PP -\fI126\fR -.RS 4 -要求的命令不存在 -.RE -.PP -\fI127\fR -.RS 4 -请求的命令不能执行 -.RE -.SH "参见" -.PP -\fBlogin\fR(1), -\fBlogin.defs\fR(5), -\fBsg\fR(1), -\fBsh\fR(1)\&. diff --git a/man/zh_CN/man3/getspnam.3 b/man/zh_CN/man3/getspnam.3 deleted file mode 100644 index cd473da3..00000000 --- a/man/zh_CN/man3/getspnam.3 +++ /dev/null @@ -1 +0,0 @@ -.so man3/shadow.3 diff --git a/man/zh_CN/man3/shadow.3 b/man/zh_CN/man3/shadow.3 deleted file mode 100644 index 37df2817..00000000 --- a/man/zh_CN/man3/shadow.3 +++ /dev/null @@ -1,254 +0,0 @@ -'\" t -.\" Title: shadow -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 库函数调用 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "SHADOW" "3" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "库函数调用" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -shadow, getspnam \- 加密密码文件工具函数 -.SH "SYNTAX" -.PP - -\fI#include <shadow\&.h>\fR -.PP - -\fIstruct spwd *getspent();\fR -.PP - -\fIstruct spwd *getspnam(char\fR -\fI*name\fR\fI);\fR -.PP - -\fIvoid setspent();\fR -.PP - -\fIvoid endspent();\fR -.PP - -\fIstruct spwd *fgetspent(FILE\fR -\fI*fp\fR\fI);\fR -.PP - -\fIstruct spwd *sgetspent(char\fR -\fI*cp\fR\fI);\fR -.PP - -\fIint putspent(struct spwd\fR -\fI*p,\fR -\fIFILE\fR -\fI*fp\fR\fI);\fR -.PP - -\fIint lckpwdf();\fR -.PP - -\fIint ulckpwdf();\fR -.SH "描述" -.PP -\fIshadow\fR -处理 shadow 密码文件 -/etc/shadow -的内容。\fI#include\fR -文件中的结构是: -.sp -.if n \{\ -.RS 4 -.\} -.nf -struct spwd { - char *sp_namp; /* user login name */ - char *sp_pwdp; /* encrypted password */ - long int sp_lstchg; /* last password change */ - long int sp_min; /* days until change allowed\&. */ - long int sp_max; /* days before change required */ - long int sp_warn; /* days warning for expiration */ - long int sp_inact; /* days before account inactive */ - long int sp_expire; /* date when account expires */ - unsigned long int sp_flag; /* reserved for future use */ -} - -.fi -.if n \{\ -.RE -.\} -.PP -每个字段的含义是: -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -sp_namp \- 指向以 null 结束的用户名的指针 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -sp_pwdp \- 指向 null 结束的密码的指针 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -sp_lstchg \- 最近更改密码的日期(日期计算方法是从1970年1月1日开始的天数) -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -sp_min \- days before which password may not be changed -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -sp_max \- days after which password must be changed -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -sp_warn \- days before password is to expire that user is warned of pending password expiration -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -sp_inact \- days after password expires that account is considered inactive and disabled -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -sp_expire \- days since Jan 1, 1970 when account will be disabled -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -sp_flag \- reserved for future use -.RE -.SH "描述" -.PP - -\fIgetspent\fR, -\fIgetspname\fR, -\fIfgetspent\fR, and -\fIsgetspent\fR -each return a pointer to a -\fIstruct spwd\fR\&. -\fIgetspent\fR -returns the next entry from the file, and -\fIfgetspent\fR -returns the next entry from the given stream, which is assumed to be a file of the proper format\&. -\fIsgetspent\fR -returns a pointer to a -\fIstruct spwd\fR -using the provided string as input\&. -\fIgetspnam\fR -searches from the current position in the file for an entry matching -\fIname\fR\&. -.PP -\fIsetspent\fR -和 -\fIendspent\fR -分别用来开始和结束对影子密码文件的访问。 -.PP -需要使用 -\fIlckpwdf\fR -和 -\fIulckpwdf\fR -函数来确保对 -/etc/shadow -文件的互斥访问。\fIlckpwdf\fR -使用 -\fIpw_lock\fR -来获取一个最长为 15 秒的锁,然后继续使用 -\fIspw_lock\fR -来获取长度为开始的 15 秒时间的剩余量的第二把锁。总计 15 秒之后,无论哪个失败,\fIlckpwdf\fR -都返回 \-1。两把锁都获取成功时,返回 0。 -.SH "DIAGNOSTICS" -.PP -如果没有更多条目了或者处理时出错,此函数返回 NULL。使用 -\fIint\fR -类型返回值的函数返回 0 表示成功,\-1 表示失败。 -.SH "CAVEATS" -.PP -这些函数只能由超级用户使用,因为对影子密码文件的访问是受限的。 -.SH "文件" -.PP -/etc/shadow -.RS 4 -安全用户账户信息。 -.RE -.SH "参见" -.PP -\fBgetpwent\fR(3), -\fBshadow\fR(5)\&. diff --git a/man/zh_CN/man5/faillog.5 b/man/zh_CN/man5/faillog.5 deleted file mode 100644 index e5558acd..00000000 --- a/man/zh_CN/man5/faillog.5 +++ /dev/null @@ -1,66 +0,0 @@ -'\" t -.\" Title: faillog -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 文件格式和转化 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "FAILLOG" "5" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "文件格式和转化" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -faillog \- 登录失败的日志文件 -.SH "描述" -.PP - -/var/log/faillog -maintains a count of login failures and the limits for each account\&. -.PP -The file contains fixed length records, indexed by numerical UID\&. Each record contains the count of login failures since the last successful login; the maximum number of failures before the account is disabled; the line on which the last login failure occurred; the date of the last login failure; and the duration (in seconds) during which the account will be locked after a failure\&. -.PP -文件的结构是: -.sp -.if n \{\ -.RS 4 -.\} -.nf -struct faillog { - short fail_cnt; - short fail_max; - char fail_line[12]; - time_t fail_time; - long fail_locktime; -}; -.fi -.if n \{\ -.RE -.\} -.SH "文件" -.PP -/var/log/faillog -.RS 4 -Failure logging file\&. -.RE -.SH "参见" -.PP - -\fBfaillog\fR(8) diff --git a/man/zh_CN/man5/gshadow.5 b/man/zh_CN/man5/gshadow.5 deleted file mode 100644 index 4e96498c..00000000 --- a/man/zh_CN/man5/gshadow.5 +++ /dev/null @@ -1,103 +0,0 @@ -'\" t -.\" Title: gshadow -.\" Author: Nicolas Fran\(,cois <nicolas.francois@centraliens.net> -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 文件格式和转化 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "GSHADOW" "5" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "文件格式和转化" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -gshadow \- 影子化了的组文件 -.SH "描述" -.PP -/etc/gshadow -包含影子化了的组账户信息。 -.PP -如果没有维护好密码安全,此文件绝对不能让普通用户可读。 -.PP -此文件的每行包含逗号分隔的如下字段: -.PP -\fB组名\fR -.RS 4 -必须是系统中已经存在的有效组。 -.RE -.PP -\fB加密了的密码\fR -.RS 4 -请参考 -\fBcrypt\fR(3) -来了解关于解析此字符串的细节信息。 -.sp -If the password field contains some string that is not a valid result of -\fBcrypt\fR(3), for instance ! or *, users will not be able to use a unix password to access the group (but group members do not need the password)\&. -.sp -此密码用于不是此组成员的用户获取此组的权限。(参考 -\fBnewgrp\fR(1) -)。 -.sp -此字段可以为空,此时,只有组成员可以获取组权限。 -.sp -以叹号开始的密码字段意味着密码被锁定。该行的剩余字符表示锁定之前的密码。 -.sp -此密码取代 -/etc/group -中指定的任何密码。 -.RE -.PP -\fB管理员\fR -.RS 4 -必须是一个逗号分隔的用户名列表。 -.sp -管理员可以更改组密码和成员。 -.sp -管理员也有成员一样的权限(请看下边)。 -.RE -.PP -\fB成员\fR -.RS 4 -必须是一个逗号分隔的用户名列表。 -.sp -成员可以免密码访问组。 -.sp -You should use the same list of users as in -/etc/group\&. -.RE -.SH "文件" -.PP -/etc/group -.RS 4 -组账户信息。 -.RE -.PP -/etc/gshadow -.RS 4 -安全组账户信息。 -.RE -.SH "参见" -.PP -\fBgpasswd\fR(5), -\fBgroup\fR(5), -\fBgrpck\fR(8), -\fBgrpconv\fR(8), -\fBnewgrp\fR(1)\&. diff --git a/man/zh_CN/man5/limits.5 b/man/zh_CN/man5/limits.5 deleted file mode 100644 index 5ceac9e8..00000000 --- a/man/zh_CN/man5/limits.5 +++ /dev/null @@ -1,276 +0,0 @@ -'\" t -.\" Title: limits -.\" Author: Luca Berra -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 文件格式和转化 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "LIMITS" "5" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "文件格式和转化" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -limits \- 资源限制描述 -.SH "描述" -.PP -The -\fIlimits\fR -file (/etc/limits -by default or LIMITS_FILE defined -config\&.h) describes the resource limits you wish to impose\&. It should be owned by root and readable by root account only\&. -.PP -By default no quota is imposed on \*(Aqroot\*(Aq\&. In fact, there is no way to impose limits via this procedure to root\-equiv accounts (accounts with UID 0)\&. -.PP -每行以如下格式对一个用户描述限制: -.PP - -\fIuser LIMITS_STRING\fR -.PP -或如下格式: -.PP - -\fI@group LIMITS_STRING\fR -.PP -\fILIMITS_STRING\fR -是一个串联的资源限制列表。每条限制由一个字母指示符和跟随的数字限制组成。 -.PP -可用的指示符有: -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -A:最大地址空间 (KB) -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -C:最大转储文件大小 (KB) -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -D:最大数据大小 (KB) -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -F:最大文件尺寸 (KB) -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -K:文件创建掩码,由 -\fBumask\fR(2) -设置。 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -I:最高 nice 级别,(0\&.\&.\&.39 对应 20\&.\&.\&.\-19) -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -L:此用户的最大登录数 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -M: max locked\-in\-memory address space (KB) -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -N:最大的文件打开数 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -O:最大实时优先级 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -P:进程优先级,由 -\fBsetpriority\fR(2) -设置。 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -R: max resident set size (KB) -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -S:最大栈尺寸 (KB) -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -T:最大 CPU 时间 (分钟) -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -U:最大处理器数目 -.RE -.PP -例如,\fIL2D2048N5\fR -就是有效的 -\fILIMITS_STRING\fR。为了阅读方便,如下项表示同样的意思: -.sp -.if n \{\ -.RS 4 -.\} -.nf - username L2D2048N5 - username L2 D2048 N5 - -.fi -.if n \{\ -.RE -.\} -.PP -Be aware that after -\fIusername\fR -the rest of the line is considered a limit string, thus comments are not allowed\&. A invalid limits string will be rejected (not considered) by the -\fBlogin\fR -program\&. -.PP -The default entry is denoted by username "\fI*\fR"\&. If you have multiple -\fIdefault\fR -entries in your -\fILIMITS_FILE\fR, then the last one will be used as the default entry\&. -.PP -The limits specified in the form "\fI@group\fR" apply to the members of the specified -\fIgroup\fR\&. -.PP -If more than one line with limits for an user exist, only the first line for this user will be considered\&. -.PP -If no lines are specified for an user, the last -\fI@group\fR -line matching a group whose the user is a member of will be considered, or the last line with default limits if no groups contain the user\&. -.PP -要完全禁用对一个用户的限制,可以仅仅只使用一个短线\(lq\-\(rq。 -.PP -To disable a limit for a user, a single dash "\fI\-\fR" can be used instead of the numerical value for this limit\&. -.PP -Also, please note that all limit settings are set PER LOGIN\&. They are not global, nor are they permanent\&. Perhaps global limits will come, but for now this will have to do ;) -.SH "文件" -.PP -/etc/limits -.RS 4 -.RE -.SH "参见" -.PP -\fBlogin\fR(1), -\fBsetpriority\fR(2), -\fBsetrlimit\fR(2)\&. diff --git a/man/zh_CN/man5/login.access.5 b/man/zh_CN/man5/login.access.5 deleted file mode 100644 index 0a55b1e4..00000000 --- a/man/zh_CN/man5/login.access.5 +++ /dev/null @@ -1,66 +0,0 @@ -'\" t -.\" Title: login.access -.\" Author: Marek Micha\(/lkiewicz -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 文件格式和转化 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "LOGIN\&.ACCESS" "5" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "文件格式和转化" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -login.access \- 登录访问控制表 -.SH "描述" -.PP -The -\fIlogin\&.access\fR -file specifies (user, host) combinations and/or (user, tty) combinations for which a login will be either accepted or refused\&. -.PP -When someone logs in, the -\fIlogin\&.access\fR -is scanned for the first entry that matches the (user, host) combination, or, in case of non\-networked logins, the first entry that matches the (user, tty) combination\&. The permissions field of that table entry determines whether the login will be accepted or refused\&. -.PP -登录访问控制表的每一行有\(lq:\(rq分隔的三个字段: -.PP -\fIpermission\fR:\fIusers\fR:\fIorigins\fR -.PP -The first field should be a "\fI+\fR" (access granted) or "\fI\-\fR" (access denied) character\&. The second field should be a list of one or more login names, group names, or -\fIALL\fR -(always matches)\&. The third field should be a list of one or more tty names (for non\-networked logins), host names, domain names (begin with "\&."), host addresses, internet network numbers (end with "\&."), -\fIALL\fR -(always matches) or -\fILOCAL\fR -(matches any string that does not contain a "\&." character)\&. If you run NIS you can use @netgroupname in host or user patterns\&. -.PP -\fIEXCEPT\fR -操作符让编写非常复杂的规则,成为可能。 -.PP -The group file is searched only when a name does not match that of the logged\-in user\&. Only groups are matched in which users are explicitly listed: the program does not look at a user\*(Aqs primary group id value\&. -.SH "文件" -.PP -/etc/login\&.defs -.RS 4 -Shadow 密码套件配置。 -.RE -.SH "参见" -.PP -\fBlogin\fR(1)\&. diff --git a/man/zh_CN/man5/login.defs.5 b/man/zh_CN/man5/login.defs.5 deleted file mode 100644 index 8b52e227..00000000 --- a/man/zh_CN/man5/login.defs.5 +++ /dev/null @@ -1,770 +0,0 @@ -'\" t -.\" Title: login.defs -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 文件格式和转化 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "LOGIN\&.DEFS" "5" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "文件格式和转化" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -login.defs \- 影子密码套件配置 -.SH "描述" -.PP -The -/etc/login\&.defs -file defines the site\-specific configuration for the shadow password suite\&. This file is required\&. Absence of this file will not prevent system operation, but will probably result in undesirable operation\&. -.PP -This file is a readable text file, each line of the file describing one configuration parameter\&. The lines consist of a configuration name and value, separated by whitespace\&. Blank lines and comment lines are ignored\&. Comments are introduced with a "#" pound sign and the pound sign must be the first non\-white character of the line\&. -.PP -Parameter values may be of four types: strings, booleans, numbers, and long numbers\&. A string is comprised of any printable characters\&. A boolean should be either the value -\fIyes\fR -or -\fIno\fR\&. An undefined boolean parameter or one with a value other than these will be given a -\fIno\fR -value\&. Numbers (both regular and long) may be either decimal values, octal values (precede the value with -\fI0\fR) or hexadecimal values (precede the value with -\fI0x\fR)\&. The maximum value of the regular and long numeric parameters is machine\-dependent\&. -.PP -提供如下配置项: -.PP -\fBCHFN_AUTH\fR (boolean) -.RS 4 -如果为 -\fIyes\fR,\fBchfn\fR -进行任何更改前都要要求认证,除非由超级用户运行。 -.RE -.PP -\fBCHFN_RESTRICT\fR (string) -.RS 4 -This parameter specifies which values in the -\fIgecos\fR -field of the -/etc/passwd -file may be changed by regular users using the -\fBchfn\fR -program\&. It can be any combination of letters -\fIf\fR, -\fIr\fR, -\fIw\fR, -\fIh\fR, for Full name, Room number, Work phone, and Home phone, respectively\&. For backward compatibility, -\fIyes\fR -is equivalent to -\fIrwh\fR -and -\fIno\fR -is equivalent to -\fIfrwh\fR\&. If not specified, only the superuser can make any changes\&. The most restrictive setting is better achieved by not installing -\fBchfn\fR -SUID\&. -.RE -.PP -\fBCHSH_AUTH\fR (boolean) -.RS 4 -如果 -\fIyes\fR,\fBchsh\fR -程序在做任何更改之前都会要求认证,除非是以超级用户身份运行的。 -.RE -.PP -\fBCONSOLE\fR (string) -.RS 4 -如果定义了,或者是包含设备名(没行一个)的文件的完整路径名,或者是\(lq:\(rq分隔的设备名列表。将只会在这写设备上允许 root 登录。 -.sp -如果没有定义,可以在任何设备上使用 root。 -.sp -指定的设备时不带 /dev/ 前缀。 -.RE -.PP -\fBCONSOLE_GROUPS\fR (string) -.RS 4 -在控制台登录时,添加到用户附加组集中的组列表(就如 CONSOLE 所确定的)。默认是无。 -使用时需要注意:这可能使用户获取这些组的永久权限,甚至登录到的不是此控制台时。 -.RE -.PP -\fBCREATE_HOME\fR (boolean) -.RS 4 -指示是否应该为新用户默认创建主目录。 -.sp -此设置并不应用到系统用户,并且可以使用命令行覆盖。 -.RE -.PP -\fBDEFAULT_HOME\fR (boolean) -.RS 4 -如果不能 cd 到主目录时,说明是否允许登录。默认是否。 -.sp -如果设置为 -\fIyes\fR,如果不能 cd 到主目录时,用户将会登录到根目录(/)。 -.RE -.PP -\fBENCRYPT_METHOD\fR (string) -.RS 4 -这定义了系统加密密码的默认算法(如果没有在命令行上指定算法)。 -.sp -可以使用如下值:\fIDES\fR -(default), -\fIMD5\fR, \fISHA256\fR, \fISHA512\fR\&. -.sp -注意,此参数会覆盖 -\fBMD5_CRYPT_ENAB\fR -变量。 -.RE -.PP -\fBENV_HZ\fR (string) -.RS 4 -如果设置了,将会用于在用户登录时定义 HZ 环境变量。值必须以 -\fIHZ=\fR -开头。Linux 上的常用值是 -\fIHZ=100\fR。 -.RE -.PP -\fBENV_PATH\fR (string) -.RS 4 -If set, it will be used to define the PATH environment variable when a regular user login\&. The value is a colon separated list of paths (for example -\fI/bin:/usr/bin\fR) and can be preceded by -\fIPATH=\fR\&. The default value is -\fIPATH=/bin:/usr/bin\fR\&. -.RE -.PP -\fBENV_SUPATH\fR (string) -.RS 4 -If set, it will be used to define the PATH environment variable when the superuser login\&. The value is a colon separated list of paths (for example -\fI/sbin:/bin:/usr/sbin:/usr/bin\fR) and can be preceded by -\fIPATH=\fR\&. The default value is -\fIPATH=/sbin:/bin:/usr/sbin:/usr/bin\fR\&. -.RE -.PP -\fBENV_TZ\fR (string) -.RS 4 -如果设置了,它将用于在用户登录时定义 TZ 环境变量。此值可以是以 -\fITZ=\fR -开头的时区名(例如 -\fITZ=CST6CDT\fR),或者是包含时区规则的文件完整路径(例如 -/etc/tzname)。 -.sp -如果将完整路径指定为了一个不存在或不可读的文件,则默认使用 -\fITZ=CST6CDT\fR。 -.RE -.PP -\fBENVIRON_FILE\fR (string) -.RS 4 -如果此文件存在,并且可读,将会从中读取登录环境。所有行都必须是 name=value 的格式。 -.sp -以 # 开头的行将视为注释,并被忽略。 -.RE -.PP -\fBERASECHAR\fR (number) -.RS 4 -终端擦除字符 (\fI010\fR -= backspace, -\fI0177\fR -= DEL)。 -.sp -此值可以使用前缀\(lq0\(rq表示八进制,\(lq0x\(rq表示十六进制。 -.RE -.PP -\fBFAIL_DELAY\fR (number) -.RS 4 -登录失败后,等待多少秒才再允许登录。 -.RE -.PP -\fBFAILLOG_ENAB\fR (boolean) -.RS 4 -允许登录并显示 -/var/log/faillog -登录失败信息。 -.RE -.PP -\fBFAKE_SHELL\fR (string) -.RS 4 -如果设置了,\fBlogin\fR -将执行此 shell 而不是在 -/etc/passwd -中指定的用户 shell。 -.RE -.PP -\fBFTMP_FILE\fR (string) -.RS 4 -如果定义,登录失败会以 utmp 格式记录在此文件中。 -.RE -.PP -\fBGID_MAX\fR (number), \fBGID_MIN\fR (number) -.RS 4 -\fBuseradd\fR,\fBgroupadd\fR -或 -\fBnewusers\fR -创建的常规组的组 ID 的范围。 -.sp -\fBGID_MIN\fR -和 -\fBGID_MAX\fR -的默认值分别是 1000 和 60000。 -.RE -.PP -\fBHUSHLOGIN_FILE\fR (string) -.RS 4 -If defined, this file can inhibit all the usual chatter during the login sequence\&. If a full pathname is specified, then hushed mode will be enabled if the user\*(Aqs name or shell are found in the file\&. If not a full pathname, then hushed mode will be enabled if the file exists in the user\*(Aqs home directory\&. -.RE -.PP -\fBISSUE_FILE\fR (string) -.RS 4 -如果定义了,此文件将在每次的登录提示之前现实。 -.RE -.PP -\fBKILLCHAR\fR (number) -.RS 4 -终端 KILL 字符 (\fI025\fR -= CTRL/U)。 -.sp -此值可以使用前缀\(lq0\(rq表示八进制,\(lq0x\(rq表示十六进制。 -.RE -.PP -\fBLASTLOG_ENAB\fR (boolean) -.RS 4 -允许记录和显示 /var/log/lastlog 登录时间信息。 -.RE -.PP -\fBLOG_OK_LOGINS\fR (boolean) -.RS 4 -允许记录成功登录。 -.RE -.PP -\fBLOG_UNKFAIL_ENAB\fR (boolean) -.RS 4 -在记录到登录失败时,允许记录未知用户名。 -.sp -注意:如果用户不小心将密码输入到了登录名中,记录未知用户名可能是一个安全隐患。 -.RE -.PP -\fBLOGIN_RETRIES\fR (number) -.RS 4 -密码错误时,重试的最大次数。 -.RE -.PP -\fBLOGIN_STRING\fR (string) -.RS 4 -此字符串用于提示输入密码。默认是 "Password: ",或者翻译了的结果(汉语中翻译为了\(lq密码:\(rq)。如果设置了此变量,提示不会被翻译。 -.sp -如果字符串包含 -\fI%s\fR,将会被用户名替换。 -.RE -.PP -\fBLOGIN_TIMEOUT\fR (number) -.RS 4 -最大登录时间(以秒为单位)。 -.RE -.PP -\fBMAIL_CHECK_ENAB\fR (boolean) -.RS 4 -启用登录时检查和现实邮箱状态。 -.sp -如果 shell 的启动文件已经检查了邮件("mailx \-e" 或者其它同功能的工具),您应该禁用它。 -.RE -.PP -\fBMAIL_DIR\fR (string) -.RS 4 -邮箱目录。修改或删除用户账户时需要处理邮箱,如果没有指定,将使用编译时指定的默认值。 -.RE -.PP -\fBMAIL_FILE\fR (string) -.RS 4 -定义用户邮箱文件的位置(相对于主目录)。 -.RE -.PP -\fBMAIL_DIR\fR -and -\fBMAIL_FILE\fR -变量由 -\fBuseradd\fR,\fBusermod\fR -和 -\fBuserdel\fR -用于创建、移动或删除用户邮箱。 -.PP -如果 -\fBMAIL_CHECK_ENAB\fR -设置为 -\fIyes\fR,它们也被用于定义 -\fBMAIL\fR -环境变量。 -.PP -\fBMAX_MEMBERS_PER_GROUP\fR (number) -.RS 4 -每个组条目的最大成员数。达到最大值时,在 -/etc/group -开始一个新条目(行)(使用同样的名称,同样的密码,同样的 GID)。 -.sp -默认值是 0,意味着组中的成员数没有限制。 -.sp -此功能(分割组)允许限制组文件中的行长度。这对于确保 NIS 组的行比长于 1024 字符。 -.sp -如果要强制这个限制,可以使用 25。 -.sp -注意:分割组可能不受所有工具的支持(甚至在 Shadow 工具集中)。您不应该使用这个变量,除非真的需要。 -.RE -.PP -\fBMD5_CRYPT_ENAB\fR (boolean) -.RS 4 -表示密码是否必须使用基于 MD5 的算法加密。如果设为 -\fIyes\fR,新密码将使用可以和新版 FreeBSD 兼容的基于 MD5 的算法加密。它支持无限长度的密码以及更长的盐字符串。如果您需要将加密的密码复制到其它不理解新算法的系统,设置为 -\fIno\fR。默认值是 -\fIno\fR。 -.sp -This variable is superseded by the -\fBENCRYPT_METHOD\fR -variable or by any command line option used to configure the encryption algorithm\&. -.sp -此变量已经废弃。您应该使用 -\fBENCRYPT_METHOD\fR。 -.RE -.PP -\fBMOTD_FILE\fR (string) -.RS 4 -If defined, ":" delimited list of "message of the day" files to be displayed upon login\&. -.RE -.PP -\fBNOLOGINS_FILE\fR (string) -.RS 4 -If defined, name of file whose presence will inhibit non\-root logins\&. The contents of this file should be a message indicating why logins are inhibited\&. -.RE -.PP -\fBOBSCURE_CHECKS_ENAB\fR (boolean) -.RS 4 -对密码更改启用附加检查。 -.RE -.PP -\fBPASS_ALWAYS_WARN\fR (boolean) -.RS 4 -如果是 root,警告弱密码,但是仍然允许使用。 -.RE -.PP -\fBPASS_CHANGE_TRIES\fR (number) -.RS 4 -可以尝试更改密码的最大次数(太容易)。 -.RE -.PP -\fBPASS_MAX_DAYS\fR (number) -.RS 4 -一个密码可以使用的最大天数。如果密码比这旧,将会强迫更改密码。如果不指定,就假定为 \-1,这会禁用这个限制。 -.RE -.PP -\fBPASS_MIN_DAYS\fR (number) -.RS 4 -两次更改密码时间的最小间隔。将会拒绝任何早于此的更改密码的尝试。如果不指定,假定为 \-1,将会禁用这个限制。 -.RE -.PP -\fBPASS_WARN_AGE\fR (number) -.RS 4 -密码过期之前给出警告的天数。0 表示只有只在过期的当天警告,负值表示不警告。如果没有指定,不会给警告。 -.RE -.PP - -\fBPASS_MAX_DAYS\fR, -\fBPASS_MIN_DAYS\fR -and -\fBPASS_WARN_AGE\fR -are only used at the time of account creation\&. Any changes to these settings won\*(Aqt affect existing accounts\&. -.PP -\fBPASS_MAX_LEN\fR (number), \fBPASS_MIN_LEN\fR (number) -.RS 4 -crypt() 的有效字符位数。\fBPASS_MAX_LEN\fR -默认是 8,除非您自己的 crypt() 更好,否则不要更改。如果 -\fBMD5_CRYPT_ENAB\fR -设为 -\fIyes\fR,会被忽略。 -.RE -.PP -\fBPORTTIME_CHECKS_ENAB\fR (boolean) -.RS 4 -Enable checking of time restrictions specified in -/etc/porttime\&. -.RE -.PP -\fBQUOTAS_ENAB\fR (boolean) -.RS 4 -Enable setting of resource limits from -/etc/limits -and ulimit, umask, and niceness from the user\*(Aqs passwd gecos field\&. -.RE -.PP -\fBSHA_CRYPT_MIN_ROUNDS\fR (number), \fBSHA_CRYPT_MAX_ROUNDS\fR (number) -.RS 4 -\fBENCRYPT_METHOD\fR -设为 -\fISHA256\fR -或 -\fISHA512\fR -时,此项确定加密算法默认使用 SHA 轮转数目(当轮转数没有通过命令行指定时)。 -.sp -使用很多轮转,会让暴力破解更加困难。但是需要注意,认证用户时也会需要更多的 CPU 资源。 -.sp -如果没有指定,libc 会选择默认的轮转数(5000)。 -.sp -值必须在 1000 \- 999,999,999 之间。 -.sp -如果只设置了一个 -\fBSHA_CRYPT_MIN_ROUNDS\fR -或 -\fBSHA_CRYPT_MAX_ROUNDS\fR -值,就会使用这个值。 -.sp -如果 -\fBSHA_CRYPT_MIN_ROUNDS\fR -> -\fBSHA_CRYPT_MAX_ROUNDS\fR,将会使用大的那个。 -.RE -.PP -\fBSULOG_FILE\fR (string) -.RS 4 -如果定义了,所有的 su 活动都会记录到此文件。 -.RE -.PP -\fBSU_NAME\fR (string) -.RS 4 -如果定义了,就是运行\(lqsu \-\(rq时显示的命令名称。例如,如果定义为\(lqsu\(rq,那么\(lqps\(rq会显示此命令为\(lq\-su\(rq。如果没有定义,\(lqps\(rq将会显示实际执行的 shell,例如类似于\(lq\-sh\(rq。 -.RE -.PP -\fBSU_WHEEL_ONLY\fR (boolean) -.RS 4 -如果为 -\fIyes\fR,用户必须在 -/etc/group -中别设定为 GID 为 0 的组(在大部分 Linux 上叫 -\fIroot\fR)的成员。 -.RE -.PP -\fBSYS_GID_MAX\fR (number), \fBSYS_GID_MIN\fR (number) -.RS 4 -\fBuseradd\fR、\fBgroupadd\fR -或 -\fBnewusers\fR -创建的系统组的组 ID 的范围。 -.sp -\fBSYS_GID_MIN\fR -和 -\fBSYS_GID_MAX\fR -的默认值分别是 101 和 -\fBGID_MIN\fR\-1。 -.RE -.PP -\fBSYS_UID_MAX\fR (number), \fBSYS_UID_MIN\fR (number) -.RS 4 -\fBuseradd\fR -或 -\fBnewusers\fR -创建的系统用户的用户 ID 的范围。 -.sp -\fBSYS_UID_MIN\fR -和 -\fBSYS_UID_MAX\fR -的默认值分别是 101 和 -\fBUID_MIN\fR\-1。 -.RE -.PP -\fBSYSLOG_SG_ENAB\fR (boolean) -.RS 4 -允许\(lqsyslog\(rq记录 -\fBsg\fR -的活动。 -.RE -.PP -\fBSYSLOG_SU_ENAB\fR (boolean) -.RS 4 -除了 sulog 文件日志,也为 -\fBsu\fR -活动启用\(lqsyslog\(rq日志。 -.RE -.PP -\fBTTYGROUP\fR (string), \fBTTYPERM\fR (string) -.RS 4 -The terminal permissions: the login tty will be owned by the -\fBTTYGROUP\fR -group, and the permissions will be set to -\fBTTYPERM\fR\&. -.sp -By default, the ownership of the terminal is set to the user\*(Aqs primary group and the permissions are set to -\fI0600\fR\&. -.sp - -\fBTTYGROUP\fR -can be either the name of a group or a numeric group identifier\&. -.sp -If you have a -\fBwrite\fR -program which is "setgid" to a special group which owns the terminals, define TTYGROUP to the group number and TTYPERM to 0620\&. Otherwise leave TTYGROUP commented out and assign TTYPERM to either 622 or 600\&. -.RE -.PP -\fBTTYTYPE_FILE\fR (string) -.RS 4 -If defined, file which maps tty line to TERM environment parameter\&. Each line of the file is in a format something like "vt100 tty01"\&. -.RE -.PP -\fBUID_MAX\fR (number), \fBUID_MIN\fR (number) -.RS 4 -\fBuseradd\fR -或 -\fBnewusers\fR -创建的普通用户的用户 ID 的范围。 -.sp -\fBUID_MIN\fR -和 -\fBUID_MAX\fR -的默认值分别是 1000 和 60000。 -.RE -.PP -\fBULIMIT\fR (number) -.RS 4 -默认 -\fBulimit\fR -值。 -.RE -.PP -\fBUMASK\fR (number) -.RS 4 -文件模式创建掩码初始化为此值。如果没有指定,掩码初始化为 022。 -.sp -\fBuseradd\fR -和 -\fBnewusers\fR -使用此掩码设置它们创建的用户主目录的模式。 -.sp -也被 -\fBlogin\fR -用于指定用户的初始 umask。注意,此掩码可以被用户的 GECOS 行覆盖(当设置了 -\fBQUOTAS_ENAB\fR -时),也可以被带 -\fIK\fR -指示符的 -\fBlimits\fR(5) -定义的限制值覆盖。 -.RE -.PP -\fBUSERDEL_CMD\fR (string) -.RS 4 -如果定义了,这是删除账户时执行的命令。它应该移除所有属于此用户的的 at/cron/print 等作业(作为第一个参数传递)。 -.sp -这个脚本的返回值并不被带到账户中去。 -.sp -这是一个示例脚本,它移除用户的 cron、at 和 print 作业: -.sp -.if n \{\ -.RS 4 -.\} -.nf -#! /bin/sh - -# 检查需要的参数 -if [ $# != 1 ]; then - echo "Usage: $0 username" - exit 1 -fi - -# 移除 cron 作业 -crontab \-r \-u $1 - -# 移除 at 作业 -# 注意这将移除所有属于同一个 UID 的作业 -# 即使此 ID 由多个用户名共享 -AT_SPOOL_DIR=/var/spool/cron/atjobs -find $AT_SPOOL_DIR \-name "[^\&.]*" \-type f \-user $1 \-delete \e; - -# 移除 print 作业 -lprm $1 - -# 全部完成 -exit 0 - -.fi -.if n \{\ -.RE -.\} -.RE -.PP -\fBUSERGROUPS_ENAB\fR (boolean) -.RS 4 -如果 uid 和 gid 相同,用户名和主用户名也相同,使非 root 组的组掩码位和属主位相同 (如:022 \-> 002, 077 \-> 007)。 -.sp -如果设置为 -\fIyes\fR,如果组中没有成员了,\fBuserdel\fR -将移除此用户组,\fBuseradd\fR -创建用户时,也会创建一个同名的默认组。 -.RE -.SH "交叉引用" -.PP -如下交叉引用显示影子密码套件哪个程序使用哪个参数。 -.PP -chfn -.RS 4 -CHFN_AUTH -CHFN_RESTRICT -LOGIN_STRING -.RE -.PP -chgpasswd -.RS 4 -ENCRYPT_METHOD MAX_MEMBERS_PER_GROUP MD5_CRYPT_ENAB -SHA_CRYPT_MAX_ROUNDS SHA_CRYPT_MIN_ROUNDS -.RE -.PP -chpasswd -.RS 4 - -ENCRYPT_METHOD MD5_CRYPT_ENAB -SHA_CRYPT_MAX_ROUNDS SHA_CRYPT_MIN_ROUNDS -.RE -.PP -chsh -.RS 4 -CHSH_AUTH LOGIN_STRING -.RE -.PP -gpasswd -.RS 4 -ENCRYPT_METHOD MAX_MEMBERS_PER_GROUP MD5_CRYPT_ENAB -SHA_CRYPT_MAX_ROUNDS SHA_CRYPT_MIN_ROUNDS -.RE -.PP -groupadd -.RS 4 -GID_MAX GID_MIN MAX_MEMBERS_PER_GROUP SYS_GID_MAX SYS_GID_MIN -.RE -.PP -groupdel -.RS 4 -MAX_MEMBERS_PER_GROUP -.RE -.PP -groupmems -.RS 4 -MAX_MEMBERS_PER_GROUP -.RE -.PP -groupmod -.RS 4 -MAX_MEMBERS_PER_GROUP -.RE -.PP -grpck -.RS 4 -MAX_MEMBERS_PER_GROUP -.RE -.PP -grpconv -.RS 4 -MAX_MEMBERS_PER_GROUP -.RE -.PP -grpunconv -.RS 4 -MAX_MEMBERS_PER_GROUP -.RE -.PP -login -.RS 4 -CONSOLE -CONSOLE_GROUPS DEFAULT_HOME -ENV_HZ ENV_PATH ENV_SUPATH ENV_TZ ENVIRON_FILE -ERASECHAR FAIL_DELAY -FAILLOG_ENAB -FAKE_SHELL -FTMP_FILE -HUSHLOGIN_FILE -ISSUE_FILE -KILLCHAR -LASTLOG_ENAB -LOGIN_RETRIES -LOGIN_STRING -LOGIN_TIMEOUT LOG_OK_LOGINS LOG_UNKFAIL_ENAB -MAIL_CHECK_ENAB MAIL_DIR MAIL_FILE MOTD_FILE NOLOGINS_FILE PORTTIME_CHECKS_ENAB QUOTAS_ENAB -TTYGROUP TTYPERM TTYTYPE_FILE -ULIMIT UMASK -USERGROUPS_ENAB -.RE -.PP -newgrp / sg -.RS 4 -SYSLOG_SG_ENAB -.RE -.PP -newusers -.RS 4 -ENCRYPT_METHOD GID_MAX GID_MIN MAX_MEMBERS_PER_GROUP MD5_CRYPT_ENAB PASS_MAX_DAYS PASS_MIN_DAYS PASS_WARN_AGE -SHA_CRYPT_MAX_ROUNDS SHA_CRYPT_MIN_ROUNDS -SYS_GID_MAX SYS_GID_MIN SYS_UID_MAX SYS_UID_MIN UID_MAX UID_MIN UMASK -.RE -.PP -passwd -.RS 4 -ENCRYPT_METHOD MD5_CRYPT_ENAB OBSCURE_CHECKS_ENAB PASS_ALWAYS_WARN PASS_CHANGE_TRIES PASS_MAX_LEN PASS_MIN_LEN -SHA_CRYPT_MAX_ROUNDS SHA_CRYPT_MIN_ROUNDS -.RE -.PP -pwck -.RS 4 -PASS_MAX_DAYS PASS_MIN_DAYS PASS_WARN_AGE -.RE -.PP -pwconv -.RS 4 -PASS_MAX_DAYS PASS_MIN_DAYS PASS_WARN_AGE -.RE -.PP -su -.RS 4 -CONSOLE -CONSOLE_GROUPS DEFAULT_HOME -ENV_HZ ENVIRON_FILE -ENV_PATH ENV_SUPATH -ENV_TZ LOGIN_STRING MAIL_CHECK_ENAB MAIL_DIR MAIL_FILE QUOTAS_ENAB -SULOG_FILE SU_NAME -SU_WHEEL_ONLY -SYSLOG_SU_ENAB -USERGROUPS_ENAB -.RE -.PP -sulogin -.RS 4 -ENV_HZ -ENV_TZ -.RE -.PP -useradd -.RS 4 -CREATE_HOME GID_MAX GID_MIN MAIL_DIR MAX_MEMBERS_PER_GROUP PASS_MAX_DAYS PASS_MIN_DAYS PASS_WARN_AGE SYS_GID_MAX SYS_GID_MIN SYS_UID_MAX SYS_UID_MIN UID_MAX UID_MIN UMASK -.RE -.PP -userdel -.RS 4 -MAIL_DIR MAIL_FILE MAX_MEMBERS_PER_GROUP USERDEL_CMD USERGROUPS_ENAB -.RE -.PP -usermod -.RS 4 -MAIL_DIR MAIL_FILE MAX_MEMBERS_PER_GROUP -.RE -.SH "参见" -.PP -\fBlogin\fR(1), -\fBpasswd\fR(1), -\fBsu\fR(1), -\fBpasswd\fR(5), -\fBshadow\fR(5), -\fBpam\fR(8)\&. diff --git a/man/zh_CN/man5/passwd.5 b/man/zh_CN/man5/passwd.5 deleted file mode 100644 index bdf95ccf..00000000 --- a/man/zh_CN/man5/passwd.5 +++ /dev/null @@ -1,178 +0,0 @@ -'\" t -.\" Title: passwd -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 文件格式和转化 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "PASSWD" "5" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "文件格式和转化" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -passwd \- 密码文件 -.SH "描述" -.PP -/etc/passwd -为每个用户账户包含一行,包含使用冒号 (\(lq:\(rq) 分隔的七个字段,分别是: -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -登录名 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -可选的加密后的密码 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -数字用户 ID -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -数字组 ID -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -用户名和注释字段 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -用户主目录 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -可选的用户命令解释器 -.RE -.PP -加密的密码字段可以为空,此时使用指定的登录名登录时不会要求认证。然而,如果 -\fIpassword\fR -为空,一些读取 -/etc/passwd -文件的程序可能会不允许 -\fI任何\fR -访问。如果 -\fIpassword\fR -字段是一个小写的 -\(lqx\(rq,那么加密的密码实际上存储于 -\fBshadow\fR(5) -中;在 -/etc/shadow -文件中 -\fI必须\fR -有对应的行,否则用户账户就会无效。如果 -\fIpassword\fR -字段是其他任何字符串,将会被视为加密过的密码,如 -\fBcrypt\fR(3) -中的说明。 -.PP -此注释字段被多个系统工具使用,例如 -\fBfinger\fR(1)。 -.PP -主目录字段提供了初始工作目录的名称。\fBlogin\fR -程序根据此信息设置 -\fB$HOME\fR -环境变量。 -.PP -命令解释器字段提供了用户命令语言解释器的名称,或者开始时执行的程序的名称。\fBlogin\fR -程序使用此信息设置 -\fB$SHELL\fR -环境变量的值。如果字段为空,默认值为 -/bin/sh。 -.SH "文件" -.PP -/etc/passwd -.RS 4 -用户账户信息。 -.RE -.PP -/etc/shadow -.RS 4 -可选的加密后的密码文件 -.RE -.PP -/etc/passwd\- -.RS 4 -/etc/passwd 的备份文件。 -.sp -注意,此文件由 shadow 工具集使用,而不是所有的用户和密码管理工具都会使用。 -.RE -.SH "参见" -.PP -\fBcrypt\fR(3), -\fBgetent\fR(1), -\fBgetpwnam\fR(3), -\fBlogin\fR(1), -\fBpasswd\fR(1), -\fBpwck\fR(8), -\fBpwconv\fR(8), -\fBpwunconv\fR(8), -\fBshadow\fR(5), -\fBsu\fR(1), -\fBsulogin\fR(8)\&. diff --git a/man/zh_CN/man5/porttime.5 b/man/zh_CN/man5/porttime.5 deleted file mode 100644 index 6e62c4dd..00000000 --- a/man/zh_CN/man5/porttime.5 +++ /dev/null @@ -1,93 +0,0 @@ -'\" t -.\" Title: porttime -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 文件格式和转化 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "PORTTIME" "5" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "文件格式和转化" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -porttime \- 端口访问时间文件 -.SH "描述" -.PP -\fIporttime\fR -包含一个 tty 设备、用户名和允许登录时间的列表。 -.PP -每项包含三个由冒号分隔的字段。第一个字段是逗号分隔的 tty 设备列表,或者星号表示匹配所有终端。第二个字段是逗号分隔的用户名列表,或者星号表示匹配所有用户名。第三个字段是逗号分隔的访问许可时间。 -.PP -每条访问时间包含一周的 0 天或多天,缩写为 -\fISu\fR, -\fIMo\fR, -\fITu\fR, -\fIWe\fR, -\fITh\fR, -\fIFr\fR -和 -\fISa\fR,随后是连字符分隔的一组时间,缩写 -\fIWk\fR -可以用于表示周一到周五,\fIAl\fR -可以用于表示没一天。如果没有制定周几,将会假定为 -\fIAl\fR。 -.SH "示例" -.PP -下面的条目允许在工作日的上午九点到下午五点在任何端口上访问用户 -\fBjfh\fR。 -.PP -*:jfh:Wk0900\-1700 -.PP -下面这条任何时间,只允许用户 -\fIroot\fR -和 -\fIoper\fR -在 -/dev/console -登录。这也是说 -/etc/porttime -文件是一个访问时间的有序列表。任何匹配第二条的其他用户都不会被允许访问。 -.sp -.if n \{\ -.RS 4 -.\} -.nf - console:root,oper:Al0000\-2400 - console:*: - -.fi -.if n \{\ -.RE -.\} -.PP -如下项允许,在非工作时间在任何端口上使用用户 -\fIgames\fR。 -.PP -*:games:Wk1700\-0900,SaSu0000\-2400 -.SH "文件" -.PP -/etc/porttime -.RS 4 -包含了端口访问信息的文件。 -.RE -.SH "参见" -.PP -\fBlogin\fR(1)\&. diff --git a/man/zh_CN/man5/shadow.5 b/man/zh_CN/man5/shadow.5 deleted file mode 100644 index 736749c2..00000000 --- a/man/zh_CN/man5/shadow.5 +++ /dev/null @@ -1,149 +0,0 @@ -'\" t -.\" Title: shadow -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 文件格式和转化 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "SHADOW" "5" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "文件格式和转化" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -shadow \- 影子化了的密码文件 -.SH "描述" -.PP -shadow -是一个文件,它包含系统账户的密码信息和可选的年龄信息。 -.PP -如果没有维护好密码安全,此文件绝对不能让普通用户可读。 -.PP -此文件的每行包括 9 个字段,使用半角冒号 (\(lq:\(rq) 分隔,顺序如下: -.PP -\fB登录名\fR -.RS 4 -必须是有效的账户名,且已经存在于系统中。 -.RE -.PP -\fB加密了的密码\fR -.RS 4 -请参考 -\fBcrypt\fR(3) -来了解关于解析此字符串的细节信息。 -.sp -如果密码字段包含一些不是 -\fBcrypt\fR(3) -合法结果的字符,比如 ! 或 *,用户将无法使用 unix 密码登录(但是可以通过其它方法登录系统)。 -.sp -此字段可以为空,此时认证为特定的登录名时,不要求密码。然而,一些读取 -/etc/shadow -文件的应用程序,在密码字段为空时,可能决定禁止任何访问。 -.sp -以叹号开始的密码字段意味着密码被锁定。该行的剩余字符表示锁定之前的密码。 -.RE -.PP -\fB最后一次更改密码的日期\fR -.RS 4 -最近一次更改密码的时间,表示从1970年1月1日开始的天数。 -.sp -0 有特殊意思,表示用户应该在下次登录系统时更改密码。 -.sp -空字段表示密码年龄功能被禁用。 -.RE -.PP -\fB密码的最小年龄\fR -.RS 4 -最小密码年龄是指,用户一次更改密码之后,要等多长时间才再次被允许更改密码。 -.sp -空字段或 0 表示没有最小密码年龄。 -.RE -.PP -\fB最大密码年龄\fR -.RS 4 -最大密码年龄是指,这写天之后,用户必须更改密码。 -.sp -这写天之后,密码仍然可用。用户将会在下次登录的时候被要求更改密码。 -.sp -空字段表示没有最大密码年龄,没有密码警告时间段,没有密码禁用时间段(请看下边)。 -.sp -如果最大密码年龄小于最小密码年龄,用户将会不能更改密码。 -.RE -.PP -\fB密码警告时间段\fR -.RS 4 -密码过期之前,提前警告用户的的天数(请参考上边的密码的最大年龄)。 -.sp -空字段或者 0 表示没有密码警告期。 -.RE -.PP -\fB密码禁用期\fR -.RS 4 -密码过期(查看上边的密码最大年龄)后,仍然接受此密码的天数(在此期间,用户应该在下次登录时修改密码)。 -.sp -密码到期并且过了这个宽限期之后,使用用户的当前的密码将会不能登录。用户需要联系系统管理员。 -.sp -空字段表示没有强制密码过期。 -.RE -.PP -\fB账户过期日期\fR -.RS 4 -账户过期的日期,表示从1970年1月1日开始的天数。 -.sp -注意,账户过期不同于密码过期。账户过期时,用户将不被允许登录;密码过期时,用户将不被允许使用其密码登录。 -.sp -空字段表示账户永不过期。 -.sp -应该避免使用 0,因为它既能理解成永不过期也能理解成在1970年1月1日过期。 -.RE -.PP -\fB保留字段\fR -.RS 4 -此字段保留作将来使用。 -.RE -.SH "文件" -.PP -/etc/passwd -.RS 4 -用户账户信息。 -.RE -.PP -/etc/shadow -.RS 4 -安全用户账户信息。 -.RE -.PP -/etc/shadow\- -.RS 4 -/etc/shadow 的备份文件。 -.sp -注意,此文件由 shadow 工具集使用,而不是所有的用户和密码管理工具都会使用。 -.RE -.SH "参见" -.PP -\fBchage\fR(1), -\fBlogin\fR(1), -\fBpasswd\fR(1), -\fBpasswd\fR(5), -\fBpwck\fR(8), -\fBpwconv\fR(8), -\fBpwunconv\fR(8), -\fBsu\fR(1), -\fBsulogin\fR(8)\&. diff --git a/man/zh_CN/man5/suauth.5 b/man/zh_CN/man5/suauth.5 deleted file mode 100644 index a8eb0580..00000000 --- a/man/zh_CN/man5/suauth.5 +++ /dev/null @@ -1,138 +0,0 @@ -'\" t -.\" Title: suauth -.\" Author: Marek Micha\(/lkiewicz -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 文件格式和转化 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "SUAUTH" "5" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "文件格式和转化" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -suauth \- 详细的 su 控制文件 -.SH "大纲" -.HP \w'\fB/etc/suauth\fR\ 'u -\fB/etc/suauth\fR -.SH "描述" -.PP -执行 su 命令时,总是根据 -/etc/suauth,可以更改 su 命令的行为,规则是: -.sp -.if n \{\ -.RS 4 -.\} -.nf - 1) su 到的用户 - -.fi -.if n \{\ -.RE -.\} -.PP -2) 执行 su 命令的用户 (或者他可能属于的组) -.PP -文件格式为:以 # 开头的行视为注视,并被忽略; -.sp -.if n \{\ -.RS 4 -.\} -.nf - to\-id:from\-id:ACTION - -.fi -.if n \{\ -.RE -.\} -.PP -此处的 to\-id 可以是:\fIALL\fR,逗号(,) 分隔的用户名列表或者 -\fIALL EXCEPT\fR -后跟逗号分隔的用户名列表。 -.PP -from\-id 格式和 to\-id 相同,但是可以多识别一个词 -\fIGROUP\fR。\fIALL EXCEPT GROUP\fR -也是有效的。\fIGROUP\fR -后边是一个或更多的组名称,使用逗号(,)分隔。不光要有相关主组的 ID,也需要在 -\fB/etc/group\fR(5) -中有一个条目。 -.PP -动作只可以使用如下当前支持的选项。 -.PP -\fIDENY\fR -.RS 4 -su 的尝试在询问密码之前就被拒绝。 -.RE -.PP -\fINOPASS\fR -.RS 4 -su 尝试自动成功,而且不询问密码。 -.RE -.PP -\fIOWNPASS\fR -.RS 4 -为了成功执行 su,用户必须提供自己的密码。将会提示他们这样。 -.RE -.PP -注意,有三个用冒号分割的字段。冒号旁边不能有空格。也请注意,这个文件会被一行一行地依次检查,会使用第一个可用的规则,而不会继续检查文件。这可以让系统管理员使系统尽量符合其期望。 -.SH "示例" -.sp -.if n \{\ -.RS 4 -.\} -.nf - # 示例 /etc/suauth 文件 - # - # 有两个用户可以使用自己的密码 su 成 root - # - root:chris,birddog:OWNPASS - # - # 任何其他人都不能 su 成 root,除非在 wheel 组中。 - # BSD 就是这样实现这个功能的。 - # - root:ALL EXCEPT GROUP wheel:DENY - # - # 或许 terry 和 birddog 是属于同一个人的账户 - # 两个账户直接互相 su,不需要密码 - # - terry:birddog:NOPASS - birddog:terry:NOPASS - # - -.fi -.if n \{\ -.RE -.\} -.SH "文件" -.PP -/etc/suauth -.RS 4 -.RE -.SH "缺陷" -.PP -可能会有很多潜在问题。文件解析器尤其不能容忍语法错误,不能有无意义的空白符(除了行首和行尾),并且使用特定的标记分割不同的事情。 -.SH "DIAGNOSTICS" -.PP -此文件的解析错误会使用 -\fBsyslogd\fR(8) -作为 AUTH 中的 ERR 级别报告。 -.SH "参见" -.PP -\fBsu\fR(1)\&. diff --git a/man/zh_CN/man8/chgpasswd.8 b/man/zh_CN/man8/chgpasswd.8 deleted file mode 100644 index 74507ea1..00000000 --- a/man/zh_CN/man8/chgpasswd.8 +++ /dev/null @@ -1,206 +0,0 @@ -'\" t -.\" Title: chgpasswd -.\" Author: Thomas K\(/loczko <kloczek@pld.org.pl> -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 系统管理命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "CHGPASSWD" "8" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "系统管理命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -chgpasswd \- 批量更新组密码 -.SH "大纲" -.HP \w'\fBchgpasswd\fR\ 'u -\fBchgpasswd\fR [\fI选项\fR] -.SH "描述" -.PP -\fBchgpasswd\fR -命令从标准输入读取一系列组名和密码对,并使用此信息更新这些存在的组。每行的格式如下: -.PP -\fIgroup_name\fR:\fIpassword\fR -.PP -默认上,提供的密码必须是明码文本,然后由 -\fBchgpasswd\fR -加密。 -.PP -The default encryption algorithm can be defined for the system with the -\fBENCRYPT_METHOD\fR -variable of -/etc/login\&.defs, and can be overwiten with the -\fB\-e\fR, -\fB\-m\fR, or -\fB\-c\fR -options\&. -.PP -此命令一般用于需要一次创建很多用户的大型系统。 -.SH "选项" -.PP -\fBchgpasswd\fR -可以接受的选项有: -.PP -\fB\-c\fR, \fB\-\-crypt\-method\fR -.RS 4 -使用指定的方法加密密码。 -.sp -可用的方法有 DES, MD5, NONE, and SHA256 或 SHA512,前提是您的 libc 支持这写方法。 -.RE -.PP -\fB\-e\fR, \fB\-\-encrypted\fR -.RS 4 -提供的密码是已经加密了的 -.RE -.PP -\fB\-h\fR, \fB\-\-help\fR -.RS 4 -现实帮助信息并退出。 -.RE -.PP -\fB\-m\fR, \fB\-\-md5\fR -.RS 4 -如果提供的密码没有加密,则使用 MD5 加密而不是 DES。 -.RE -.PP -\fB\-R\fR, \fB\-\-root\fR\fICHROOT_DIR\fR -.RS 4 -Apply changes in the -\fICHROOT_DIR\fR -directory and use the configuration files from the -\fICHROOT_DIR\fR -directory\&. -.RE -.PP -\fB\-s\fR, \fB\-\-sha\-rounds\fR -.RS 4 -使用指定次数的轮转来加密密码。 -.sp -值 0 表示让系统为加密方法选择默认的轮转次数 (5000)。 -.sp -会强制最小 1,000,最大 9,9999,9999 -.sp -您只可以对 SHA256 或 SHA512 使用此选项。 -.sp -默认,轮转数由 -/etc/login\&.defs -文件中的 SHA_CRYPT_MIN_ROUNDS 和 SHA_CRYPT_MAX_ROUNDS 变量确定。 -.RE -.SH "CAVEATS" -.PP -记住要设置权限或者掩码来阻止其它用户对未加密文件的读取。 -.PP -您需要确保你吗和加密方法符合系统的密码策略。 -.SH "配置文件" -.PP -在 -/etc/login\&.defs -中有如下配置变量,可以用来更改此工具的行为: -.PP -\fBENCRYPT_METHOD\fR (string) -.RS 4 -这定义了系统加密密码的默认算法(如果没有在命令行上指定算法)。 -.sp -可以使用如下值:\fIDES\fR -(default), -\fIMD5\fR, \fISHA256\fR, \fISHA512\fR\&. -.sp -注意,此参数会覆盖 -\fBMD5_CRYPT_ENAB\fR -变量。 -.RE -.PP -\fBMAX_MEMBERS_PER_GROUP\fR (number) -.RS 4 -每个组条目的最大成员数。达到最大值时,在 -/etc/group -开始一个新条目(行)(使用同样的名称,同样的密码,同样的 GID)。 -.sp -默认值是 0,意味着组中的成员数没有限制。 -.sp -此功能(分割组)允许限制组文件中的行长度。这对于确保 NIS 组的行比长于 1024 字符。 -.sp -如果要强制这个限制,可以使用 25。 -.sp -注意:分割组可能不受所有工具的支持(甚至在 Shadow 工具集中)。您不应该使用这个变量,除非真的需要。 -.RE -.PP -\fBMD5_CRYPT_ENAB\fR (boolean) -.RS 4 -表示密码是否必须使用基于 MD5 的算法加密。如果设为 -\fIyes\fR,新密码将使用可以和新版 FreeBSD 兼容的基于 MD5 的算法加密。它支持无限长度的密码以及更长的盐字符串。如果您需要将加密的密码复制到其它不理解新算法的系统,设置为 -\fIno\fR。默认值是 -\fIno\fR。 -.sp -This variable is superseded by the -\fBENCRYPT_METHOD\fR -variable or by any command line option used to configure the encryption algorithm\&. -.sp -此变量已经废弃。您应该使用 -\fBENCRYPT_METHOD\fR。 -.RE -.PP -\fBSHA_CRYPT_MIN_ROUNDS\fR (number), \fBSHA_CRYPT_MAX_ROUNDS\fR (number) -.RS 4 -\fBENCRYPT_METHOD\fR -设为 -\fISHA256\fR -或 -\fISHA512\fR -时,此项确定加密算法默认使用 SHA 轮转数目(当轮转数没有通过命令行指定时)。 -.sp -使用很多轮转,会让暴力破解更加困难。但是需要注意,认证用户时也会需要更多的 CPU 资源。 -.sp -如果没有指定,libc 会选择默认的轮转数(5000)。 -.sp -值必须在 1000 \- 999,999,999 之间。 -.sp -如果只设置了一个 -\fBSHA_CRYPT_MIN_ROUNDS\fR -或 -\fBSHA_CRYPT_MAX_ROUNDS\fR -值,就会使用这个值。 -.sp -如果 -\fBSHA_CRYPT_MIN_ROUNDS\fR -> -\fBSHA_CRYPT_MAX_ROUNDS\fR,将会使用大的那个。 -.RE -.SH "文件" -.PP -/etc/group -.RS 4 -组账户信息。 -.RE -.PP -/etc/gshadow -.RS 4 -安全组账户信息。 -.RE -.PP -/etc/login\&.defs -.RS 4 -Shadow 密码套件配置。 -.RE -.SH "参见" -.PP -\fBgpasswd\fR(1), -\fBgroupadd\fR(8), -\fBlogin.defs\fR(5)\&. diff --git a/man/zh_CN/man8/chpasswd.8 b/man/zh_CN/man8/chpasswd.8 deleted file mode 100644 index c17dc9f6..00000000 --- a/man/zh_CN/man8/chpasswd.8 +++ /dev/null @@ -1,210 +0,0 @@ -'\" t -.\" Title: chpasswd -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 系统管理命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "CHPASSWD" "8" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "系统管理命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -chpasswd \- 批量更新密码 -.SH "大纲" -.HP \w'\fBchpasswd\fR\ 'u -\fBchpasswd\fR [\fI选项\fR] -.SH "描述" -.PP -The -\fBchpasswd\fR -command reads a list of user name and password pairs from standard input and uses this information to update a group of existing users\&. Each line is of the format: -.PP -\fIuser_name\fR:\fIpassword\fR -.PP -默认必须明文提供密码,然后由 -\fBchpasswd\fR -加密。如果存在密码年龄信息,也会更新之。 -.PP -The default encryption algorithm can be defined for the system with the -\fBENCRYPT_METHOD\fR -or -\fBMD5_CRYPT_ENAB\fR -variables of -/etc/login\&.defs, and can be overwitten with the -\fB\-e\fR, -\fB\-m\fR, or -\fB\-c\fR -options\&. -.PP - -\fBchpasswd\fR -first updates all the passwords in memory, and then commits all the changes to disk if no errors occured for any user\&. -.PP -此命令一般用于需要一次创建很多用户的大型系统。 -.SH "选项" -.PP -\fBchpasswd\fR -可以接受的选项有: -.PP -\fB\-c\fR, \fB\-\-crypt\-method\fR\fIMETHOD\fR -.RS 4 -使用指定的方法加密密码。 -.sp -可用的方法有 DES, MD5, NONE, and SHA256 或 SHA512,前提是您的 libc 支持这写方法。 -.sp -By default (if none of the -\fB\-c\fR, -\fB\-m\fR, or -\fB\-e\fR -options are specified), the encryption method is defined by the -\fBENCRYPT_METHOD\fR -or -\fBMD5_CRYPT_ENAB\fR -variables of -/etc/login\&.defs\&. -.RE -.PP -\fB\-e\fR, \fB\-\-encrypted\fR -.RS 4 -提供的密码是已经加密了的 -.RE -.PP -\fB\-h\fR, \fB\-\-help\fR -.RS 4 -现实帮助信息并退出。 -.RE -.PP -\fB\-m\fR, \fB\-\-md5\fR -.RS 4 -如果提供的密码没有加密,则使用 MD5 加密而不是 DES。 -.RE -.PP -\fB\-R\fR, \fB\-\-root\fR\fICHROOT_DIR\fR -.RS 4 -Apply changes in the -\fICHROOT_DIR\fR -directory and use the configuration files from the -\fICHROOT_DIR\fR -directory\&. -.RE -.PP -\fB\-s\fR, \fB\-\-sha\-rounds\fR\fIROUNDS\fR -.RS 4 -使用指定次数的轮转来加密密码。 -.sp -值 0 表示让系统为加密方法选择默认的轮转次数 (5000)。 -.sp -会强制最小 1,000,最大 9,9999,9999 -.sp -您只可以对 SHA256 或 SHA512 使用此选项。 -.sp -By default, the number of rounds is defined by the -\fBSHA_CRYPT_MIN_ROUNDS\fR -and -\fBSHA_CRYPT_MAX_ROUNDS\fR -variables in -/etc/login\&.defs\&. -.RE -.SH "CAVEATS" -.PP -记住要设置权限或者掩码来阻止其它用户对未加密文件的读取。 -.SH "配置文件" -.PP -在 -/etc/login\&.defs -中有如下配置变量,可以用来更改此工具的行为: -.PP -\fBENCRYPT_METHOD\fR (string) -.RS 4 -这定义了系统加密密码的默认算法(如果没有在命令行上指定算法)。 -.sp -可以使用如下值:\fIDES\fR -(default), -\fIMD5\fR, \fISHA256\fR, \fISHA512\fR\&. -.sp -注意,此参数会覆盖 -\fBMD5_CRYPT_ENAB\fR -变量。 -.RE -.PP -\fBMD5_CRYPT_ENAB\fR (boolean) -.RS 4 -表示密码是否必须使用基于 MD5 的算法加密。如果设为 -\fIyes\fR,新密码将使用可以和新版 FreeBSD 兼容的基于 MD5 的算法加密。它支持无限长度的密码以及更长的盐字符串。如果您需要将加密的密码复制到其它不理解新算法的系统,设置为 -\fIno\fR。默认值是 -\fIno\fR。 -.sp -This variable is superseded by the -\fBENCRYPT_METHOD\fR -variable or by any command line option used to configure the encryption algorithm\&. -.sp -此变量已经废弃。您应该使用 -\fBENCRYPT_METHOD\fR。 -.RE -.PP -\fBSHA_CRYPT_MIN_ROUNDS\fR (number), \fBSHA_CRYPT_MAX_ROUNDS\fR (number) -.RS 4 -\fBENCRYPT_METHOD\fR -设为 -\fISHA256\fR -或 -\fISHA512\fR -时,此项确定加密算法默认使用 SHA 轮转数目(当轮转数没有通过命令行指定时)。 -.sp -使用很多轮转,会让暴力破解更加困难。但是需要注意,认证用户时也会需要更多的 CPU 资源。 -.sp -如果没有指定,libc 会选择默认的轮转数(5000)。 -.sp -值必须在 1000 \- 999,999,999 之间。 -.sp -如果只设置了一个 -\fBSHA_CRYPT_MIN_ROUNDS\fR -或 -\fBSHA_CRYPT_MAX_ROUNDS\fR -值,就会使用这个值。 -.sp -如果 -\fBSHA_CRYPT_MIN_ROUNDS\fR -> -\fBSHA_CRYPT_MAX_ROUNDS\fR,将会使用大的那个。 -.RE -.SH "文件" -.PP -/etc/passwd -.RS 4 -用户账户信息。 -.RE -.PP -/etc/shadow -.RS 4 -安全用户账户信息。 -.RE -.PP -/etc/login\&.defs -.RS 4 -Shadow 密码套件配置。 -.RE -.SH "参见" -.PP -\fBpasswd\fR(1), -\fBnewusers\fR(8), -\fBlogin.defs\fR(5),\fBuseradd\fR(8)\&. diff --git a/man/zh_CN/man8/faillog.8 b/man/zh_CN/man8/faillog.8 deleted file mode 100644 index c6339686..00000000 --- a/man/zh_CN/man8/faillog.8 +++ /dev/null @@ -1,167 +0,0 @@ -'\" t -.\" Title: faillog -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 系统管理命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "FAILLOG" "8" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "系统管理命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -faillog \- 显示登录失败记录或设置登录失败限制 -.SH "大纲" -.HP \w'\fBfaillog\fR\ 'u -\fBfaillog\fR [\fI选项\fR] -.SH "描述" -.PP - -\fBfaillog\fR -displays the contents of the failure log database (/var/log/faillog)\&. It can also set the failure counters and limits\&. When -\fBfaillog\fR -is run without arguments, it only displays the faillog records of the users who had a login failure\&. -.SH "选项" -.PP -\fBfaillog\fR -可以接受的选项有: -.PP -\fB\-a\fR, \fB\-\-all\fR -.RS 4 -Display (or act on) faillog records for all users having an entry in the -faillog -database\&. -.sp -用户的范围可以使用 -\fB\-u\fR -选项限制。 -.sp -In display mode, this is still restricted to existing users but forces the display of the faillog entries even if they are empty\&. -.sp -With the -\fB\-l\fR, -\fB\-m\fR, -\fB\-r\fR, -\fB\-t\fR -options, the users\*(Aq records are changed, even if the user does not exist on the system\&. This is useful to reset records of users that have been deleted or to set a policy in advance for a range of users\&. -.RE -.PP -\fB\-h\fR, \fB\-\-help\fR -.RS 4 -现实帮助信息并退出。 -.RE -.PP -\fB\-l\fR, \fB\-\-lock\-secs\fR\fISEC\fR -.RS 4 -登录失败后锁定账户 -\fISEC\fR -秒。 -.sp -此选项要求对 -/var/log/faillog -有写入权限。 -.RE -.PP -\fB\-m\fR, \fB\-\-maximum\fR\fIMAX\fR -.RS 4 -Set the maximum number of login failures after the account is disabled to -\fIMAX\fR\&. -.sp -Selecting a -\fIMAX\fR -value of 0 has the effect of not placing a limit on the number of failed logins\&. -.sp -The maximum failure count should always be 0 for -\fIroot\fR -to prevent a denial of services attack against the system\&. -.sp -此选项要求对 -/var/log/faillog -有写入权限。 -.RE -.PP -\fB\-r\fR, \fB\-\-reset\fR -.RS 4 -重置登录失败计数。 -.sp -此选项要求对 -/var/log/faillog -有写入权限。 -.RE -.PP -\fB\-R\fR, \fB\-\-root\fR\fICHROOT_DIR\fR -.RS 4 -Apply changes in the -\fICHROOT_DIR\fR -directory and use the configuration files from the -\fICHROOT_DIR\fR -directory\&. -.RE -.PP -\fB\-t\fR, \fB\-\-time\fR\fIDAYS\fR -.RS 4 -显示新于 -\fIDAYS\fR -的登录失败记录。 -.RE -.PP -\fB\-u\fR, \fB\-\-user\fR\fILOGIN\fR|\fIRANGE\fR -.RS 4 -Display faillog record or maintains failure counters and limits (if used with -\fB\-l\fR, -\fB\-m\fR -or -\fB\-r\fR -options) only for the specified user(s)\&. -.sp -The users can be specified by a login name, a numerical user ID, or a -\fIRANGE\fR -of users\&. This -\fIRANGE\fR -of users can be specified with a min and max values (\fIUID_MIN\-UID_MAX\fR), a max value (\fI\-UID_MAX\fR), or a min value (\fIUID_MIN\-\fR)\&. -.RE -.PP -When none of the -\fB\-l\fR, -\fB\-m\fR, or -\fB\-r\fR -options are used, -\fBfaillog\fR -displays the faillog record of the specified user(s)\&. -.SH "CAVEATS" -.PP - -\fBfaillog\fR -only prints out users with no successful login since the last failure\&. To print out a user who has had a successful login since their last failure, you must explicitly request the user with the -\fB\-u\fR -flag, or print out all users with the -\fB\-a\fR -flag\&. -.SH "文件" -.PP -/var/log/faillog -.RS 4 -Failure logging file\&. -.RE -.SH "参见" -.PP -\fBlogin\fR(1), -\fBfaillog\fR(5)\&. diff --git a/man/zh_CN/man8/groupadd.8 b/man/zh_CN/man8/groupadd.8 deleted file mode 100644 index 3e8581c9..00000000 --- a/man/zh_CN/man8/groupadd.8 +++ /dev/null @@ -1,241 +0,0 @@ -'\" t -.\" Title: groupadd -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 系统管理命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "GROUPADD" "8" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "系统管理命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -groupadd \- 创建一个新组 -.SH "大纲" -.HP \w'\fBgroupadd\fR\ 'u -\fBgroupadd\fR [\fI选项\fR] \fIgroup\fR -.SH "描述" -.PP -The -\fBgroupadd\fR -command creates a new group account using the values specified on the command line plus the default values from the system\&. The new group will be entered into the system files as needed\&. -.SH "选项" -.PP -\fBgroupadd\fR -命令可以接受的选项有: -.PP -\fB\-f\fR, \fB\-\-force\fR -.RS 4 -This option causes the command to simply exit with success status if the specified group already exists\&. When used with -\fB\-g\fR, and the specified GID already exists, another (unique) GID is chosen (i\&.e\&. -\fB\-g\fR -is turned off)\&. -.RE -.PP -\fB\-g\fR, \fB\-\-gid\fR\fIGID\fR -.RS 4 -The numerical value of the group\*(Aqs ID\&. This value must be unique, unless the -\fB\-o\fR -option is used\&. The value must be non\-negative\&. The default is to use the smallest ID value greater than or equal to -\fBGID_MIN\fR -and greater than every other group\&. -.sp -See also the -\fB\-r\fR -option and the -\fBGID_MAX\fR -description\&. -.RE -.PP -\fB\-h\fR, \fB\-\-help\fR -.RS 4 -现实帮助信息并退出。 -.RE -.PP -\fB\-K\fR, \fB\-\-key\fR\fIKEY\fR=\fIVALUE\fR -.RS 4 -Overrides -/etc/login\&.defs -defaults (GID_MIN, GID_MAX and others)\&. Multiple -\fB\-K\fR -options can be specified\&. -.sp -示例:\fB\-K \fR\fIGID_MIN\fR=\fI100\fR\fB\-K \fR\fIGID_MAX\fR=\fI499\fR -.sp -注意:\fB\-K \fR\fIGID_MIN\fR=\fI10\fR,\fIGID_MAX\fR=\fI499\fR -尚不能工作。 -.RE -.PP -\fB\-o\fR, \fB\-\-non\-unique\fR -.RS 4 -此选项允许添加一个使用非唯一 GID 的组。 -.RE -.PP -\fB\-p\fR, \fB\-\-password\fR\fIPASSWORD\fR -.RS 4 -加密了的密码,就像 -\fBcrypt\fR(3) -的返回值。默认为禁用密码。 -.sp -\fB注意:\fR不推荐使用这个选项,因为密码(或加密过的密码)会被用户通过列出这个过程而看到。 -.sp -您应该确保密码符合系统的密码政策。 -.RE -.PP -\fB\-r\fR, \fB\-\-system\fR -.RS 4 -创建一个系统组。 -.sp -The numeric identifiers of new system groups are chosen in the -\fBSYS_GID_MIN\fR\-\fBSYS_GID_MAX\fR -range, defined in -login\&.defs, instead of -\fBGID_MIN\fR\-\fBGID_MAX\fR\&. -.RE -.PP -\fB\-R\fR, \fB\-\-root\fR\fICHROOT_DIR\fR -.RS 4 -Apply changes in the -\fICHROOT_DIR\fR -directory and use the configuration files from the -\fICHROOT_DIR\fR -directory\&. -.RE -.SH "配置文件" -.PP -在 -/etc/login\&.defs -中有如下配置变量,可以用来更改此工具的行为: -.PP -\fBGID_MAX\fR (number), \fBGID_MIN\fR (number) -.RS 4 -\fBuseradd\fR,\fBgroupadd\fR -或 -\fBnewusers\fR -创建的常规组的组 ID 的范围。 -.sp -\fBGID_MIN\fR -和 -\fBGID_MAX\fR -的默认值分别是 1000 和 60000。 -.RE -.PP -\fBMAX_MEMBERS_PER_GROUP\fR (number) -.RS 4 -每个组条目的最大成员数。达到最大值时,在 -/etc/group -开始一个新条目(行)(使用同样的名称,同样的密码,同样的 GID)。 -.sp -默认值是 0,意味着组中的成员数没有限制。 -.sp -此功能(分割组)允许限制组文件中的行长度。这对于确保 NIS 组的行比长于 1024 字符。 -.sp -如果要强制这个限制,可以使用 25。 -.sp -注意:分割组可能不受所有工具的支持(甚至在 Shadow 工具集中)。您不应该使用这个变量,除非真的需要。 -.RE -.PP -\fBSYS_GID_MAX\fR (number), \fBSYS_GID_MIN\fR (number) -.RS 4 -\fBuseradd\fR、\fBgroupadd\fR -或 -\fBnewusers\fR -创建的系统组的组 ID 的范围。 -.sp -\fBSYS_GID_MIN\fR -和 -\fBSYS_GID_MAX\fR -的默认值分别是 101 和 -\fBGID_MIN\fR\-1。 -.RE -.SH "文件" -.PP -/etc/group -.RS 4 -组账户信息。 -.RE -.PP -/etc/gshadow -.RS 4 -安全组账户信息。 -.RE -.PP -/etc/login\&.defs -.RS 4 -Shadow 密码套件配置。 -.RE -.SH "CAVEATS" -.PP -组名必须以小写字母或者下划线开头,跟随小写字母、下划线或短横线。可以由美元符号结束。用正则表达式就是:[a\-z_][a\-z0\-9_\-]*[$]? -.PP -组名最长为 16 个字符。 -.PP -You may not add a NIS or LDAP group\&. This must be performed on the corresponding server\&. -.PP -If the groupname already exists in an external group database such as NIS or LDAP, -\fBgroupadd\fR -will deny the group creation request\&. -.SH "退出值" -.PP -\fBgroupadd\fR -可能以如下值退出:.PP -\fI0\fR -.RS 4 -成功 -.RE -.PP -\fI2\fR -.RS 4 -无效的命令语法 -.RE -.PP -\fI3\fR -.RS 4 -给了选项一个无效的参数 -.RE -.PP -\fI4\fR -.RS 4 -GID 不唯一 (没有使用 -\fB\-o\fR) -.RE -.PP -\fI9\fR -.RS 4 -组名不唯一 -.RE -.PP -\fI10\fR -.RS 4 -无法更新组文件 -.RE -.SH "参见" -.PP -\fBchfn\fR(1), -\fBchsh\fR(1), -\fBpasswd\fR(1), -\fBgpasswd\fR(8), -\fBgroupdel\fR(8), -\fBgroupmod\fR(8), -\fBlogin.defs\fR(5), -\fBuseradd\fR(8), -\fBuserdel\fR(8), -\fBusermod\fR(8)\&. diff --git a/man/zh_CN/man8/groupdel.8 b/man/zh_CN/man8/groupdel.8 deleted file mode 100644 index 109c54cb..00000000 --- a/man/zh_CN/man8/groupdel.8 +++ /dev/null @@ -1,133 +0,0 @@ -'\" t -.\" Title: groupdel -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 系统管理命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "GROUPDEL" "8" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "系统管理命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -groupdel \- 删除一个组 -.SH "大纲" -.HP \w'\fBgroupdel\fR\ 'u -\fBgroupdel\fR [\fI选项\fR] \fIGROUP\fR -.SH "描述" -.PP -\fBuserdel\fR -修改系统账户文件,删除与 -\fIGROUP\fR -相关的所有项目。给出的组名必须存在。 -.SH "选项" -.PP -\fBgroupdel\fR -命令可以接受的选项有: -.PP -\fB\-h\fR, \fB\-\-help\fR -.RS 4 -现实帮助信息并退出。 -.RE -.PP -\fB\-R\fR, \fB\-\-root\fR\fICHROOT_DIR\fR -.RS 4 -Apply changes in the -\fICHROOT_DIR\fR -directory and use the configuration files from the -\fICHROOT_DIR\fR -directory\&. -.RE -.SH "CAVEATS" -.PP -您不能移除现有用户的主组。在移除此组之前,必须先移除此用户。 -.PP -您需要手动检查所有文件系统,以确保没有遗留的属于此组的文件。 -.SH "配置文件" -.PP -在 -/etc/login\&.defs -中有如下配置变量,可以用来更改此工具的行为: -.PP -\fBMAX_MEMBERS_PER_GROUP\fR (number) -.RS 4 -每个组条目的最大成员数。达到最大值时,在 -/etc/group -开始一个新条目(行)(使用同样的名称,同样的密码,同样的 GID)。 -.sp -默认值是 0,意味着组中的成员数没有限制。 -.sp -此功能(分割组)允许限制组文件中的行长度。这对于确保 NIS 组的行比长于 1024 字符。 -.sp -如果要强制这个限制,可以使用 25。 -.sp -注意:分割组可能不受所有工具的支持(甚至在 Shadow 工具集中)。您不应该使用这个变量,除非真的需要。 -.RE -.SH "文件" -.PP -/etc/group -.RS 4 -组账户信息。 -.RE -.PP -/etc/gshadow -.RS 4 -安全组账户信息。 -.RE -.SH "退出值" -.PP -\fBgroupdel\fR -命令以如下值退出:.PP -\fI0\fR -.RS 4 -成功 -.RE -.PP -\fI2\fR -.RS 4 -无效的命令语法 -.RE -.PP -\fI6\fR -.RS 4 -指定的组不存在 -.RE -.PP -\fI8\fR -.RS 4 -不能移除用户的主组 -.RE -.PP -\fI10\fR -.RS 4 -无法更新组文件 -.RE -.SH "参见" -.PP -\fBchfn\fR(1), -\fBchsh\fR(1), -\fBpasswd\fR(1), -\fBgpasswd\fR(8), -\fBgroupadd\fR(8), -\fBgroupmod\fR(8), -\fBuseradd\fR(8), -\fBuserdel\fR(8), -\fBusermod\fR(8)\&. diff --git a/man/zh_CN/man8/groupmems.8 b/man/zh_CN/man8/groupmems.8 deleted file mode 100644 index 1c02967f..00000000 --- a/man/zh_CN/man8/groupmems.8 +++ /dev/null @@ -1,179 +0,0 @@ -'\" t -.\" Title: groupmems -.\" Author: George Kraft, IV -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 系统管理命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "GROUPMEMS" "8" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "系统管理命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -groupmems \- 用户主组的管理员成员 -.SH "大纲" -.HP \w'\fBgroupmems\fR\ 'u -\fBgroupmems\fR \-a\ \fIuser_name\fR | \-d\ \fIuser_name\fR | [\-g\ \fIgroup_name\fR] | \-l | \-p -.SH "描述" -.PP -The -\fBgroupmems\fR -command allows a user to administer his/her own group membership list without the requirement of superuser privileges\&. The -\fBgroupmems\fR -utility is for systems that configure its users to be in their own name sake primary group (i\&.e\&., guest / guest)\&. -.PP -Only the superuser, as administrator, can use -\fBgroupmems\fR -to alter the memberships of other groups\&. -.SH "选项" -.PP -\fBgroupmems\fR -命令可以接受的选项有: -.PP -\fB\-a\fR, \fB\-\-add\fR\fIuser_name\fR -.RS 4 -将一个用户添加到组成员列表。 -.sp -If the -/etc/gshadow -file exist, and the group has no entry in the -/etc/gshadow -file, a new entry will be created\&. -.RE -.PP -\fB\-d\fR, \fB\-\-delete\fR\fIuser_name\fR -.RS 4 -从组成员列表中删除用户。 -.sp -如果 -/etc/gshadow -文件存在,用户将会被从组成员和管理员中移除。 -.sp -If the -/etc/gshadow -file exist, and the group has no entry in the -/etc/gshadow -file, a new entry will be created\&. -.RE -.PP -\fB\-g\fR, \fB\-\-group\fR\fIgroup_name\fR -.RS 4 -超级用户可以指定修改哪个组的组成员列表。 -.RE -.PP -\fB\-h\fR, \fB\-\-help\fR -.RS 4 -现实帮助信息并退出。 -.RE -.PP -\fB\-l\fR, \fB\-\-list\fR -.RS 4 -列出组成员。 -.RE -.PP -\fB\-p\fR, \fB\-\-purge\fR -.RS 4 -从组成员列表中删除所有用户。 -.sp -If the -/etc/gshadow -file exist, and the group has no entry in the -/etc/gshadow -file, a new entry will be created\&. -.RE -.PP -\fB\-R\fR, \fB\-\-root\fR\fICHROOT_DIR\fR -.RS 4 -Apply changes in the -\fICHROOT_DIR\fR -directory and use the configuration files from the -\fICHROOT_DIR\fR -directory\&. -.RE -.SH "SETUP" -.PP -The -\fBgroupmems\fR -executable should be in mode -2770 -as user -\fIroot\fR -and in group -\fIgroups\fR\&. The system administrator can add users to group -\fIgroups\fR -to allow or disallow them using the -\fBgroupmems\fR -utility to manage their own group membership list\&. -.sp -.if n \{\ -.RS 4 -.\} -.nf - $ groupadd \-r groups - $ chmod 2770 groupmems - $ chown root\&.groups groupmems - $ groupmems \-g groups \-a gk4 - -.fi -.if n \{\ -.RE -.\} -.SH "配置文件" -.PP -在 -/etc/login\&.defs -中有如下配置变量,可以用来更改此工具的行为: -.PP -\fBMAX_MEMBERS_PER_GROUP\fR (number) -.RS 4 -每个组条目的最大成员数。达到最大值时,在 -/etc/group -开始一个新条目(行)(使用同样的名称,同样的密码,同样的 GID)。 -.sp -默认值是 0,意味着组中的成员数没有限制。 -.sp -此功能(分割组)允许限制组文件中的行长度。这对于确保 NIS 组的行比长于 1024 字符。 -.sp -如果要强制这个限制,可以使用 25。 -.sp -注意:分割组可能不受所有工具的支持(甚至在 Shadow 工具集中)。您不应该使用这个变量,除非真的需要。 -.RE -.SH "文件" -.PP -/etc/group -.RS 4 -组账户信息。 -.RE -.PP -/etc/gshadow -.RS 4 -安全组账户信息 -.RE -.SH "参见" -.PP -\fBchfn\fR(1), -\fBchsh\fR(1), -\fBpasswd\fR(1), -\fBgroupadd\fR(8), -\fBgroupdel\fR(8), -\fBuseradd\fR(8), -\fBuserdel\fR(8), -\fBusermod\fR(8)\&. diff --git a/man/zh_CN/man8/groupmod.8 b/man/zh_CN/man8/groupmod.8 deleted file mode 100644 index dada68f3..00000000 --- a/man/zh_CN/man8/groupmod.8 +++ /dev/null @@ -1,206 +0,0 @@ -'\" t -.\" Title: groupmod -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 系统管理命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "GROUPMOD" "8" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "系统管理命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -groupmod \- modify a group definition on the system -.SH "大纲" -.HP \w'\fBgroupmod\fR\ 'u -\fBgroupmod\fR [\fI选项\fR] \fIGROUP\fR -.SH "描述" -.PP -The -\fBgroupmod\fR -command modifies the definition of the specified -\fIGROUP\fR -by modifying the appropriate entry in the group database\&. -.SH "选项" -.PP -\fBgroupmod\fR -命令可以接受的选项有: -.PP -\fB\-g\fR, \fB\-\-gid\fR\fIGID\fR -.RS 4 -The group ID of the given -\fIGROUP\fR -will be changed to -\fIGID\fR\&. -.sp -The value of -\fIGID\fR -must be a non\-negative decimal integer\&. This value must be unique, unless the -\fB\-o\fR -option is used\&. -.sp -Users who use the group as primary group will be updated to keep the group as their primary group\&. -.sp -Any files that have the old group ID and must continue to belong to -\fIGROUP\fR, must have their group ID changed manually\&. -.sp -No checks will be performed with regard to the -\fBGID_MIN\fR, -\fBGID_MAX\fR, -\fBSYS_GID_MIN\fR, or -\fBSYS_GID_MAX\fR -from -/etc/login\&.defs\&. -.RE -.PP -\fB\-h\fR, \fB\-\-help\fR -.RS 4 -现实帮助信息并退出。 -.RE -.PP -\fB\-n\fR, \fB\-\-new\-name\fR\fINEW_GROUP\fR -.RS 4 -The name of the group will be changed from -\fIGROUP\fR -to -\fINEW_GROUP\fR -name\&. -.RE -.PP -\fB\-o\fR, \fB\-\-non\-unique\fR -.RS 4 -When used with the -\fB\-g\fR -option, allow to change the group -\fIGID\fR -to a non\-unique value\&. -.RE -.PP -\fB\-p\fR, \fB\-\-password\fR\fIPASSWORD\fR -.RS 4 -已经加密过的密码,就像 -\fBcrypt\fR(3) -返回的那样。 -.sp -\fB注意:\fR不推荐使用这个选项,因为密码(或加密过的密码)会被用户通过列出这个过程而看到。 -.sp -您应该确保密码符合系统的密码政策。 -.RE -.PP -\fB\-R\fR, \fB\-\-root\fR\fICHROOT_DIR\fR -.RS 4 -Apply changes in the -\fICHROOT_DIR\fR -directory and use the configuration files from the -\fICHROOT_DIR\fR -directory\&. -.RE -.SH "配置文件" -.PP -在 -/etc/login\&.defs -中有如下配置变量,可以用来更改此工具的行为: -.PP -\fBMAX_MEMBERS_PER_GROUP\fR (number) -.RS 4 -每个组条目的最大成员数。达到最大值时,在 -/etc/group -开始一个新条目(行)(使用同样的名称,同样的密码,同样的 GID)。 -.sp -默认值是 0,意味着组中的成员数没有限制。 -.sp -此功能(分割组)允许限制组文件中的行长度。这对于确保 NIS 组的行比长于 1024 字符。 -.sp -如果要强制这个限制,可以使用 25。 -.sp -注意:分割组可能不受所有工具的支持(甚至在 Shadow 工具集中)。您不应该使用这个变量,除非真的需要。 -.RE -.SH "文件" -.PP -/etc/group -.RS 4 -组账户信息。 -.RE -.PP -/etc/gshadow -.RS 4 -安全组账户信息。 -.RE -.PP -/etc/login\&.defs -.RS 4 -Shadow 密码套件配置。 -.RE -.PP -/etc/passwd -.RS 4 -用户账户信息。 -.RE -.SH "退出值" -.PP -\fBgroupmod\fR -命令可以返回如下值:.PP -\fI0\fR -.RS 4 -成功 -.RE -.PP -\fI2\fR -.RS 4 -无效的命令语法 -.RE -.PP -\fI3\fR -.RS 4 -给了选项一个无效的参数 -.RE -.PP -\fI4\fR -.RS 4 -指定的组不存在 -.RE -.PP -\fI6\fR -.RS 4 -指定的组不存在 -.RE -.PP -\fI9\fR -.RS 4 -组名已经在使用 -.RE -.PP -\fI10\fR -.RS 4 -无法更新组文件 -.RE -.SH "参见" -.PP -\fBchfn\fR(1), -\fBchsh\fR(1), -\fBpasswd\fR(1), -\fBgpasswd\fR(8), -\fBgroupadd\fR(8), -\fBgroupdel\fR(8), -\fBlogin.defs\fR(5), -\fBuseradd\fR(8), -\fBuserdel\fR(8), -\fBusermod\fR(8)\&. diff --git a/man/zh_CN/man8/grpck.8 b/man/zh_CN/man8/grpck.8 deleted file mode 100644 index d4efb83e..00000000 --- a/man/zh_CN/man8/grpck.8 +++ /dev/null @@ -1,242 +0,0 @@ -'\" t -.\" Title: grpck -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 系统管理命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "GRPCK" "8" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "系统管理命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -grpck \- 检查组文件的完整性 -.SH "大纲" -.HP \w'\fBgrpck\fR\ 'u -\fBgrpck\fR [选项] [\fIgroup\fR\ [\ \fIshadow\fR\ ]] -.SH "描述" -.PP -The -\fBgrpck\fR -command verifies the integrity of the groups information\&. It checks that all entries in -/etc/group -and /etc/gshadow -have the proper format and contain valid data\&. The user is prompted to delete entries that are improperly formatted or which have other uncorrectable errors\&. -.PP -检查的项目有: -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -正确的字段数 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -一个唯一且有效的组名 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -有效的组标识符 -(仅 /etc/group) -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -有效的成员和 -管理员 -列表。 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -a corresponding entry in the -/etc/gshadow -file (respectively -/etc/group -for the -gshadow -checks) -.RE -.PP -The checks for correct number of fields and unique group name are fatal\&. If an entry has the wrong number of fields, the user will be prompted to delete the entire line\&. If the user does not answer affirmatively, all further checks are bypassed\&. An entry with a duplicated group name is prompted for deletion, but the remaining checks will still be made\&. All other errors are warnings and the user is encouraged to run the -\fBgroupmod\fR -command to correct the error\&. -.PP -The commands which operate on the -/etc/group -and /etc/gshadow files -are not able to alter corrupted or duplicated entries\&. -\fBgrpck\fR -should be used in those circumstances to remove the offending entries\&. -.SH "选项" -.PP -\fB\-r\fR -和 -\fB\-s\fR -选项不能联合使用。 -.PP -\fBgrpck\fR -可以接受的选项有: -.PP -\fB\-h\fR, \fB\-\-help\fR -.RS 4 -现实帮助信息并退出。 -.RE -.PP -\fB\-r\fR, \fB\-\-read\-only\fR -.RS 4 -Execute the -\fBgrpck\fR -command in read\-only mode\&. This causes all questions regarding changes to be answered -\fIno\fR -without user intervention\&. -.RE -.PP -\fB\-R\fR, \fB\-\-root\fR\fICHROOT_DIR\fR -.RS 4 -Apply changes in the -\fICHROOT_DIR\fR -directory and use the configuration files from the -\fICHROOT_DIR\fR -directory\&. -.RE -.PP -\fB\-s\fR, \fB\-\-sort\fR -.RS 4 -根据 GID 在 -/etc/group和 /etc/gshadow -中进行排序。 -.RE -.PP -By default, -\fBgrpck\fR -operates on -/etc/group -and /etc/gshadow\&. The user may select alternate files with the -\fIgroup\fR -and \fIshadow\fR parameters\&. -.SH "配置文件" -.PP -在 -/etc/login\&.defs -中有如下配置变量,可以用来更改此工具的行为: -.PP -\fBMAX_MEMBERS_PER_GROUP\fR (number) -.RS 4 -每个组条目的最大成员数。达到最大值时,在 -/etc/group -开始一个新条目(行)(使用同样的名称,同样的密码,同样的 GID)。 -.sp -默认值是 0,意味着组中的成员数没有限制。 -.sp -此功能(分割组)允许限制组文件中的行长度。这对于确保 NIS 组的行比长于 1024 字符。 -.sp -如果要强制这个限制,可以使用 25。 -.sp -注意:分割组可能不受所有工具的支持(甚至在 Shadow 工具集中)。您不应该使用这个变量,除非真的需要。 -.RE -.SH "文件" -.PP -/etc/group -.RS 4 -组账户信息。 -.RE -.PP -/etc/gshadow -.RS 4 -安全组账户信息。 -.RE -.PP -/etc/passwd -.RS 4 -用户账户信息。 -.RE -.SH "退出值" -.PP -\fBgrpck\fR -可以返回如下值:.PP -\fI0\fR -.RS 4 -成功 -.RE -.PP -\fI1\fR -.RS 4 -无效的命令语法 -.RE -.PP -\fI2\fR -.RS 4 -一个或多个坏掉的组条目 -.RE -.PP -\fI3\fR -.RS 4 -无法打开组文件 -.RE -.PP -\fI4\fR -.RS 4 -无法锁定组文件 -.RE -.PP -\fI5\fR -.RS 4 -无法更新组文件 -.RE -.SH "参见" -.PP -\fBgroup\fR(5), -\fBgroupmod\fR(8), -\fBgshadow\fR(5),\fBpasswd\fR(5), -\fBpwck\fR(8), -\fBshadow\fR(5)\&. diff --git a/man/zh_CN/man8/grpconv.8 b/man/zh_CN/man8/grpconv.8 deleted file mode 100644 index 6eed9e8b..00000000 --- a/man/zh_CN/man8/grpconv.8 +++ /dev/null @@ -1 +0,0 @@ -.so man8/pwconv.8 diff --git a/man/zh_CN/man8/grpunconv.8 b/man/zh_CN/man8/grpunconv.8 deleted file mode 100644 index 6eed9e8b..00000000 --- a/man/zh_CN/man8/grpunconv.8 +++ /dev/null @@ -1 +0,0 @@ -.so man8/pwconv.8 diff --git a/man/zh_CN/man8/lastlog.8 b/man/zh_CN/man8/lastlog.8 deleted file mode 100644 index 0a91e59b..00000000 --- a/man/zh_CN/man8/lastlog.8 +++ /dev/null @@ -1,111 +0,0 @@ -'\" t -.\" Title: lastlog -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 系统管理命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "LASTLOG" "8" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "系统管理命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -lastlog \- 报告所有用户的最近登录情况,或者指定用户的最近登录情况 -.SH "大纲" -.HP \w'\fBlastlog\fR\ 'u -\fBlastlog\fR [\fI选项\fR] -.SH "描述" -.PP - -\fBlastlog\fR -formats and prints the contents of the last login log -/var/log/lastlog -file\&. The -\fIlogin\-name\fR, -\fIport\fR, and -\fIlast login time\fR -will be printed\&. The default (no flags) causes lastlog entries to be printed, sorted by their order in -/etc/passwd\&. -.SH "选项" -.PP -\fBlastlog\fR -命令可以接受的选项有: -.PP -\fB\-b\fR, \fB\-\-before\fR\fIDAYS\fR -.RS 4 -只显示老于 -\fIDAYS\fR -的最近登录记录。 -.RE -.PP -\fB\-h\fR, \fB\-\-help\fR -.RS 4 -现实帮助信息并退出。 -.RE -.PP -\fB\-R\fR, \fB\-\-root\fR\fICHROOT_DIR\fR -.RS 4 -Apply changes in the -\fICHROOT_DIR\fR -directory and use the configuration files from the -\fICHROOT_DIR\fR -directory\&. -.RE -.PP -\fB\-t\fR, \fB\-\-time\fR\fIDAYS\fR -.RS 4 -只现实新于 -\fIDAYS\fR -的最近登录记录。 -.RE -.PP -\fB\-u\fR, \fB\-\-user\fR\fILOGIN\fR|\fIRANGE\fR -.RS 4 -现实指定用户的最近登录记录。 -.sp -The users can be specified by a login name, a numerical user ID, or a -\fIRANGE\fR -of users\&. This -\fIRANGE\fR -of users can be specified with a min and max values (\fIUID_MIN\-UID_MAX\fR), a max value (\fI\-UID_MAX\fR), or a min value (\fIUID_MIN\-\fR)\&. -.RE -.PP -如果用户从来没有登录过,将会显示 -\fI** 从未登录 **\fR -而不是端口和时间。 -.PP -Only the entries for the current users of the system will be displayed\&. Other entries may exist for users that were deleted previously\&. -.SH "注意" -.PP -The -lastlog -file is a database which contains info on the last login of each user\&. You should not rotate it\&. It is a sparse file, so its size on the disk is usually much smaller than the one shown by "\fBls \-l\fR" (which can indicate a really big file if you have in -passwd -users with a high UID)\&. You can display its real size with "\fBls \-s\fR"\&. -.SH "文件" -.PP -/var/log/lastlog -.RS 4 -Database times of previous user logins\&. -.RE -.SH "CAVEATS" -.PP -Large gaps in UID numbers will cause the lastlog program to run longer with no output to the screen (i\&.e\&. if in lastlog database there is no entries for users with UID between 170 and 800 lastlog will appear to hang as it processes entries with UIDs 171\-799)\&. diff --git a/man/zh_CN/man8/logoutd.8 b/man/zh_CN/man8/logoutd.8 deleted file mode 100644 index 47556db3..00000000 --- a/man/zh_CN/man8/logoutd.8 +++ /dev/null @@ -1,58 +0,0 @@ -'\" t -.\" Title: logoutd -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 系统管理命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "LOGOUTD" "8" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "系统管理命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -logoutd \- 强制登录时间限制 -.SH "大纲" -.HP \w'\fBlogoutd\fR\ 'u -\fBlogoutd\fR -.SH "描述" -.PP - -\fBlogoutd\fR -enforces the login time and port restrictions specified in -/etc/porttime\&. -\fBlogoutd\fR -should be started from -/etc/rc\&. The -/var/run/utmp -file is scanned periodically and each user name is checked to see if the named user is permitted on the named port at the current time\&. Any login session which is violating the restrictions in -/etc/porttime -is terminated\&. -.SH "文件" -.PP -/etc/porttime -.RS 4 -包含了端口访问信息的文件。 -.RE -.PP -/var/run/utmp -.RS 4 -当前登录会话的列表。 -.RE diff --git a/man/zh_CN/man8/newusers.8 b/man/zh_CN/man8/newusers.8 deleted file mode 100644 index b986c3d5..00000000 --- a/man/zh_CN/man8/newusers.8 +++ /dev/null @@ -1,374 +0,0 @@ -'\" t -.\" Title: newusers -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 系统管理命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "NEWUSERS" "8" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "系统管理命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -newusers \- 批量更新和创建新用户 -.SH "大纲" -.HP \w'\fBnewusers\fR\ 'u -\fBnewusers\fR [\fI选项\fR] [\fI文件\fR] -.SH "描述" -.PP -The -\fBnewusers\fR -command reads a -\fIfile\fR -(or the standard input by default) and uses this information to update a set of existing users or to create new users\&. Each line is in the same format as the standard password file (see -\fBpasswd\fR(5)) with the exceptions explained below: -.PP -pw_name:pw_passwd:pw_uid:pw_gid:pw_gecos:pw_dir:pw_shell -.PP -\fIpw_name\fR -.RS 4 -这是用户的用户名。 -.sp -既可以是新用户名也可以是现有用户名(也可以是 -\fBnewusers\fR -以前创建的用户)。现有用户时,将会更改用户信息,否则会创建新用户。 -.RE -.PP -\fIpw_passwd\fR -.RS 4 -此字段将被加密然后用于加密后密码的新值。 -.RE -.PP -\fIpw_uid\fR -.RS 4 -此字段用于定义用户的 UID。 -.sp -如果此字段为空,\fBnewusers\fR -会自动确定一个新的(未使用的)UID。 -.sp -如果此字段包含一个数字,此数字会用于 UID。 -.sp -如果此字段包含已经使用了的用户名(或者 -\fBnewusers\fR -在前边已经创建的一个用户),将会使用指定用户的 UID。 -.sp -如果一个现有用户更改了 UID,此用户的文件所有权需要手动修复。 -.RE -.PP -\fIpw_gid\fR -.RS 4 -此字段用于定义用户的主组 ID。 -.sp -如果此字段包含一个现有组的组名(或者 -\fBnewusers\fR -在前边创建的一个组),此组的 GID 会被用于做此用户的主组 ID。 -.sp -如果此字段是一个数字,此数字会被用作此用户的主组 ID。如果没有对应此 GID 的现有组,将会使用此 GID 创建一个新组,名称和用户名相同。 -.sp -如果此字段为空,将会使用用户名作为组名,\fBnewusers\fR -自动确定的一个 GID 作为主组 ID 来创建一个新组。 -.sp -如果此字段包含一个不存在的组的名字(也没有由 -\fBnewusers\fR -在前边创建),将使用指定的组名和 -\fBnewusers\fR -自动确定的 GID 创建一个组,并作为用户的主组。 -.RE -.PP -\fIpw_gecos\fR -.RS 4 -此字段复制到用户的 GECOS 字段。 -.RE -.PP -\fIpw_dir\fR -.RS 4 -此字段用于定义用户的主目录。 -.sp -如果此字段指定的不是现有的目录,将会创建指定的目录,所有权设置为创建或更新的用户及其主组。 -.sp -如果现有用户的主目录变更,\fBnewusers\fR -不会移动或者复制旧目录的内容到新位置。这需要手动完成。 -.RE -.PP -\fIpw_shell\fR -.RS 4 -此字段定义了用户的 shell。对此字段不进行任何检查。 -.RE -.PP -\fBnewusers\fR -首先尝试创建或更改所有指定的用户,然后将这些更改写入用户或组数据库。如果发生错误(除非是在最后写入数据库过程中),不会有任何更改。 -.PP -此命令一般用于在大型的应用环境中,对大量账户进行一次性更新。 -.SH "选项" -.PP -\fBnewusers\fR -命令可以使用的选项有: -.PP -\fB\-c\fR, \fB\-\-crypt\-method\fR -.RS 4 -使用指定的方法加密密码。 -.sp -可用的方法有 DES, MD5, NONE, and SHA256 或 SHA512,前提是您的 libc 支持这写方法。 -.RE -.PP -\fB\-h\fR, \fB\-\-help\fR -.RS 4 -现实帮助信息并退出。 -.RE -.PP -\fB\-r\fR, \fB\-\-system\fR -.RS 4 -创建一个系统账户。 -.sp -System users will be created with no aging information in -/etc/shadow, and their numeric identifiers are chosen in the -\fBSYS_UID_MIN\fR\-\fBSYS_UID_MAX\fR -range, defined in -login\&.defs, instead of -\fBUID_MIN\fR\-\fBUID_MAX\fR -(and their -\fBGID\fR -counterparts for the creation of groups)\&. -.RE -.PP -\fB\-R\fR, \fB\-\-root\fR\fICHROOT_DIR\fR -.RS 4 -Apply changes in the -\fICHROOT_DIR\fR -directory and use the configuration files from the -\fICHROOT_DIR\fR -directory\&. -.RE -.PP -\fB\-s\fR, \fB\-\-sha\-rounds\fR -.RS 4 -使用指定次数的轮转来加密密码。 -.sp -值 0 表示让系统为加密方法选择默认的轮转次数 (5000)。 -.sp -会强制最小 1,000,最大 9,9999,9999 -.sp -您只可以对 SHA256 或 SHA512 使用此选项。 -.sp -默认,轮转数由 -/etc/login\&.defs -文件中的 SHA_CRYPT_MIN_ROUNDS 和 SHA_CRYPT_MAX_ROUNDS 变量确定。 -.RE -.SH "CAVEATS" -.PP -输入文件必须受到保护,因为它包含未加密的密码。 -.PP -您需要确保你吗和加密方法符合系统的密码策略。 -.SH "配置文件" -.PP -在 -/etc/login\&.defs -中有如下配置变量,可以用来更改此工具的行为: -.PP -\fBENCRYPT_METHOD\fR (string) -.RS 4 -这定义了系统加密密码的默认算法(如果没有在命令行上指定算法)。 -.sp -可以使用如下值:\fIDES\fR -(default), -\fIMD5\fR, \fISHA256\fR, \fISHA512\fR\&. -.sp -注意,此参数会覆盖 -\fBMD5_CRYPT_ENAB\fR -变量。 -.RE -.PP -\fBGID_MAX\fR (number), \fBGID_MIN\fR (number) -.RS 4 -\fBuseradd\fR,\fBgroupadd\fR -或 -\fBnewusers\fR -创建的常规组的组 ID 的范围。 -.sp -\fBGID_MIN\fR -和 -\fBGID_MAX\fR -的默认值分别是 1000 和 60000。 -.RE -.PP -\fBMAX_MEMBERS_PER_GROUP\fR (number) -.RS 4 -每个组条目的最大成员数。达到最大值时,在 -/etc/group -开始一个新条目(行)(使用同样的名称,同样的密码,同样的 GID)。 -.sp -默认值是 0,意味着组中的成员数没有限制。 -.sp -此功能(分割组)允许限制组文件中的行长度。这对于确保 NIS 组的行比长于 1024 字符。 -.sp -如果要强制这个限制,可以使用 25。 -.sp -注意:分割组可能不受所有工具的支持(甚至在 Shadow 工具集中)。您不应该使用这个变量,除非真的需要。 -.RE -.PP -\fBMD5_CRYPT_ENAB\fR (boolean) -.RS 4 -表示密码是否必须使用基于 MD5 的算法加密。如果设为 -\fIyes\fR,新密码将使用可以和新版 FreeBSD 兼容的基于 MD5 的算法加密。它支持无限长度的密码以及更长的盐字符串。如果您需要将加密的密码复制到其它不理解新算法的系统,设置为 -\fIno\fR。默认值是 -\fIno\fR。 -.sp -This variable is superseded by the -\fBENCRYPT_METHOD\fR -variable or by any command line option used to configure the encryption algorithm\&. -.sp -此变量已经废弃。您应该使用 -\fBENCRYPT_METHOD\fR。 -.RE -.PP -\fBPASS_MAX_DAYS\fR (number) -.RS 4 -一个密码可以使用的最大天数。如果密码比这旧,将会强迫更改密码。如果不指定,就假定为 \-1,这会禁用这个限制。 -.RE -.PP -\fBPASS_MIN_DAYS\fR (number) -.RS 4 -两次更改密码时间的最小间隔。将会拒绝任何早于此的更改密码的尝试。如果不指定,假定为 \-1,将会禁用这个限制。 -.RE -.PP -\fBPASS_WARN_AGE\fR (number) -.RS 4 -密码过期之前给出警告的天数。0 表示只有只在过期的当天警告,负值表示不警告。如果没有指定,不会给警告。 -.RE -.PP -\fBSHA_CRYPT_MIN_ROUNDS\fR (number), \fBSHA_CRYPT_MAX_ROUNDS\fR (number) -.RS 4 -\fBENCRYPT_METHOD\fR -设为 -\fISHA256\fR -或 -\fISHA512\fR -时,此项确定加密算法默认使用 SHA 轮转数目(当轮转数没有通过命令行指定时)。 -.sp -使用很多轮转,会让暴力破解更加困难。但是需要注意,认证用户时也会需要更多的 CPU 资源。 -.sp -如果没有指定,libc 会选择默认的轮转数(5000)。 -.sp -值必须在 1000 \- 999,999,999 之间。 -.sp -如果只设置了一个 -\fBSHA_CRYPT_MIN_ROUNDS\fR -或 -\fBSHA_CRYPT_MAX_ROUNDS\fR -值,就会使用这个值。 -.sp -如果 -\fBSHA_CRYPT_MIN_ROUNDS\fR -> -\fBSHA_CRYPT_MAX_ROUNDS\fR,将会使用大的那个。 -.RE -.PP -\fBSYS_GID_MAX\fR (number), \fBSYS_GID_MIN\fR (number) -.RS 4 -\fBuseradd\fR、\fBgroupadd\fR -或 -\fBnewusers\fR -创建的系统组的组 ID 的范围。 -.sp -\fBSYS_GID_MIN\fR -和 -\fBSYS_GID_MAX\fR -的默认值分别是 101 和 -\fBGID_MIN\fR\-1。 -.RE -.PP -\fBSYS_UID_MAX\fR (number), \fBSYS_UID_MIN\fR (number) -.RS 4 -\fBuseradd\fR -或 -\fBnewusers\fR -创建的系统用户的用户 ID 的范围。 -.sp -\fBSYS_UID_MIN\fR -和 -\fBSYS_UID_MAX\fR -的默认值分别是 101 和 -\fBUID_MIN\fR\-1。 -.RE -.PP -\fBUID_MAX\fR (number), \fBUID_MIN\fR (number) -.RS 4 -\fBuseradd\fR -或 -\fBnewusers\fR -创建的普通用户的用户 ID 的范围。 -.sp -\fBUID_MIN\fR -和 -\fBUID_MAX\fR -的默认值分别是 1000 和 60000。 -.RE -.PP -\fBUMASK\fR (number) -.RS 4 -文件模式创建掩码初始化为此值。如果没有指定,掩码初始化为 022。 -.sp -\fBuseradd\fR -和 -\fBnewusers\fR -使用此掩码设置它们创建的用户主目录的模式。 -.sp -也被 -\fBlogin\fR -用于指定用户的初始 umask。注意,此掩码可以被用户的 GECOS 行覆盖(当设置了 -\fBQUOTAS_ENAB\fR -时),也可以被带 -\fIK\fR -指示符的 -\fBlimits\fR(5) -定义的限制值覆盖。 -.RE -.SH "文件" -.PP -/etc/passwd -.RS 4 -用户账户信息。 -.RE -.PP -/etc/shadow -.RS 4 -安全用户账户信息。 -.RE -.PP -/etc/group -.RS 4 -组账户信息。 -.RE -.PP -/etc/gshadow -.RS 4 -安全组账户信息。 -.RE -.PP -/etc/login\&.defs -.RS 4 -Shadow 密码套件配置。 -.RE -.SH "参见" -.PP -\fBlogin.defs\fR(5), -\fBpasswd\fR(1), -\fBuseradd\fR(8)\&. diff --git a/man/zh_CN/man8/nologin.8 b/man/zh_CN/man8/nologin.8 deleted file mode 100644 index 7b7f4abc..00000000 --- a/man/zh_CN/man8/nologin.8 +++ /dev/null @@ -1,49 +0,0 @@ -'\" t -.\" Title: nologin -.\" Author: Nicolas Fran\(,cois <nicolas.francois@centraliens.net> -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 系统管理命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "NOLOGIN" "8" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "系统管理命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -nologin \- 礼貌地拒绝登录 -.SH "大纲" -.HP \w'\fBnologin\fR\ 'u -\fBnologin\fR -.SH "描述" -.PP -\fBnologin\fR -命令显示一个信息,说账户不可用然后返回非零值。它用于代替已经禁用的账户的 shell 字段。 -.PP -如果要禁用所有登录,请参考 -\fBnologin\fR(5)。 -.SH "参见" -.PP -\fBlogin\fR(1), -\fBnologin\fR(5)\&. -.SH "历史" -.PP -\fBnologin\fR -首次出现于 BSD 4\&.4。 diff --git a/man/zh_CN/man8/pwck.8 b/man/zh_CN/man8/pwck.8 deleted file mode 100644 index e4d34408..00000000 --- a/man/zh_CN/man8/pwck.8 +++ /dev/null @@ -1,317 +0,0 @@ -'\" t -.\" Title: pwck -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 系统管理命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "PWCK" "8" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "系统管理命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -pwck \- 检查密码文件的完整性 -.SH "大纲" -.HP \w'\fBpwck\fR\ 'u -\fBpwck\fR [选项] [\fIpasswd\fR\ [\ \fIshadow\fR\ ]] -.SH "描述" -.PP -\fBpwck\fR -命令检查用户及其认证信息的完整性。它检查 -/etc/passwd -和 -/etc/shadow -格式正确、数据有效。将会提示用户删除格式不正确或者有其它错误的项。 -.PP -检查的项目有: -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -正确的字段数 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -一个唯一且有效的用户名 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -一个有效的用户和组标识符 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -有效的主组 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -有效的主目录 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -有效的登录 shell -.RE -.PP -当指定第二个文件参数或 -/etc/shadow -在系统中存在时,启用 -shadow -检查。 -.PP -这些检查是: -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -每个密码项都有对应的影子相,反之亦然。 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -密码在影子化了的文件中指定 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -影子项有正确的字段数。 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -影子项在影子文件中是唯一的 -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -最后一次的密码更改时间不是被设成了一个将来的时间。 -.RE -.PP -The checks for correct number of fields and unique user name are fatal\&. If the entry has the wrong number of fields, the user will be prompted to delete the entire line\&. If the user does not answer affirmatively, all further checks are bypassed\&. An entry with a duplicated user name is prompted for deletion, but the remaining checks will still be made\&. All other errors are warning and the user is encouraged to run the -\fBusermod\fR -command to correct the error\&. -.PP -操作 -/etc/passwd -文件的这些命令不能警告损坏或重复的条目,这些情况下,应该使用 -\fBpwck\fR -来移除这写有问题的条目。 -.SH "选项" -.PP -\fB\-r\fR -和 -\fB\-s\fR -选项不能联合使用。 -.PP -\fBpwck\fR -选项可以接受的选项有: -.PP -\fB\-h\fR, \fB\-\-help\fR -.RS 4 -现实帮助信息并退出。 -.RE -.PP -\fB\-q\fR, \fB\-\-quiet\fR -.RS 4 -只报告错误。不显示那些不需要用户操作的警告。 -.RE -.PP -\fB\-r\fR, \fB\-\-read\-only\fR -.RS 4 -在只读模式下执行 -\fBpwck\fR。 -.RE -.PP -\fB\-R\fR, \fB\-\-root\fR\fICHROOT_DIR\fR -.RS 4 -Apply changes in the -\fICHROOT_DIR\fR -directory and use the configuration files from the -\fICHROOT_DIR\fR -directory\&. -.RE -.PP -\fB\-s\fR, \fB\-\-sort\fR -.RS 4 -根据 UID 在 -/etc/passwd -和 -/etc/shadow -对项目进行排序。 -.RE -.PP -默认上,\fBpwck\fR -操作文件 -/etc/passwd -和 -/etc/shadow。用户也可以使用 -\fIpasswd\fR -和 -\fIshadow\fR -参数来选择替代文件。 -.SH "配置文件" -.PP -在 -/etc/login\&.defs -中有如下配置变量,可以用来更改此工具的行为: -.PP -\fBPASS_MAX_DAYS\fR (number) -.RS 4 -一个密码可以使用的最大天数。如果密码比这旧,将会强迫更改密码。如果不指定,就假定为 \-1,这会禁用这个限制。 -.RE -.PP -\fBPASS_MIN_DAYS\fR (number) -.RS 4 -两次更改密码时间的最小间隔。将会拒绝任何早于此的更改密码的尝试。如果不指定,假定为 \-1,将会禁用这个限制。 -.RE -.PP -\fBPASS_WARN_AGE\fR (number) -.RS 4 -密码过期之前给出警告的天数。0 表示只有只在过期的当天警告,负值表示不警告。如果没有指定,不会给警告。 -.RE -.SH "文件" -.PP -/etc/group -.RS 4 -组账户信息。 -.RE -.PP -/etc/passwd -.RS 4 -用户账户信息。 -.RE -.PP -/etc/shadow -.RS 4 -安全用户账户信息。 -.RE -.SH "退出值" -.PP -\fBpwck\fR -命令有如下返回值:.PP -\fI0\fR -.RS 4 -成功 -.RE -.PP -\fI1\fR -.RS 4 -无效的命令语法 -.RE -.PP -\fI2\fR -.RS 4 -一个或多个错误的密码条目 -.RE -.PP -\fI3\fR -.RS 4 -无法打开密码文件 -.RE -.PP -\fI4\fR -.RS 4 -无法锁定密码文件 -.RE -.PP -\fI5\fR -.RS 4 -无法更新密码文件 -.RE -.PP -\fI6\fR -.RS 4 -无法在密码文件中排序 -.RE -.SH "参见" -.PP -\fBgroup\fR(5), -\fBgrpck\fR(8), -\fBpasswd\fR(5), -\fBshadow\fR(5), -\fBusermod\fR(8)\&. diff --git a/man/zh_CN/man8/pwconv.8 b/man/zh_CN/man8/pwconv.8 deleted file mode 100644 index bcaaf39e..00000000 --- a/man/zh_CN/man8/pwconv.8 +++ /dev/null @@ -1,187 +0,0 @@ -'\" t -.\" Title: pwconv -.\" Author: Marek Micha\(/lkiewicz -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 系统管理命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "PWCONV" "8" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "系统管理命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -pwconv, pwunconv, grpconv, grpunconv \- 在影子密码和组以及其它直接转换 -.SH "大纲" -.HP \w'\fBpwconv\fR\ 'u -\fBpwconv\fR [\fI选项\fR] -.HP \w'\fBpwunconv\fR\ 'u -\fBpwunconv\fR [\fI选项\fR] -.HP \w'\fBgrpconv\fR\ 'u -\fBgrpconv\fR [\fI选项\fR] -.HP \w'\fBgrpunconv\fR\ 'u -\fBgrpunconv\fR [\fI选项\fR] -.SH "描述" -.PP -\fBpwconv\fR -命令使用 -\fIpasswd\fR -以及可选并已经存在的 -\fIshadow\fR -来创建 -\fIshadow\fR。 -.PP -\fBpwunconv\fR -命令使用 -\fIpasswd\fR -和 -\fIshadow\fR -来创建 -\fIpasswd\fR,然后移除 -\fIshadow\fR。 -.PP -\fBgrpconv\fR -从 -\fIgroup\fR -和可能存在的 -\fIgshadow\fR -创建 -\fIgshadow\fR。 -.PP -\fBgrpunconv\fR -命令从 -\fIgroup\fR -和 -\fIgshadow\fR -创建 -\fIgroup\fR,然后移除 -\fIgshadow\fR。 -.PP -这四个程序都可以操作普通或影子密码和组文件:/etc/passwd, -/etc/group, -/etc/shadow -和 -/etc/gshadow。 -.PP -转换前,每个程序都会获取需要的锁。\fBpwconv\fR -和 -\fBgrpconv\fR -也类似。首先删除,存在于在影子文件中,但在主文件中却没有的条目;然后,更新在主文件中不使用\(lqx\(rq作为密码的影子条目,会添加所有缺失的条目;最后,将主文件中的密码替换为\(lqx\(rq。这两个工具可以用于初始转换以及根据手动编辑的主文件更新影子文件。 -.PP -\fBpwconv\fR -向 -/etc/shadow -添加条目时,将使用/etc/login\&.defs -中的 -\fIPASS_MIN_DAYS\fR, -\fIPASS_MAX_DAYS\fR -和 -\fIPASS_WARN_AGE\fR -值。 -.PP -\fBpwunconv\fR -和 -\fBgrpunconv\fR -与此类似。主文件中的密码会根据影子文件更新。在主文件中存在,但不在影子文件中的条目单独留下。最后,移除影子文件。一些密码年龄信息会因为 -\fBpwunconv\fR -而丢失。它只转换它可以转换的。 -.SH "选项" -.PP -\fBpwconv\fR, -\fBpwunconv\fR, -\fBgrpconv\fR -和 -\fBgrpunconv\fR -命令可以接受的选项有: -.PP -\fB\-h\fR, \fB\-\-help\fR -.RS 4 -现实帮助信息并退出。 -.RE -.PP -\fB\-R\fR, \fB\-\-root\fR\fICHROOT_DIR\fR -.RS 4 -Apply changes in the -\fICHROOT_DIR\fR -directory and use the configuration files from the -\fICHROOT_DIR\fR -directory\&. -.RE -.SH "缺陷" -.PP -在 passwd 或 group 文件中有错误(比如,有重复条目)可能会造成这些程序死循环或者以奇怪的方式失败。在转换自,或转换到影子密码或组文件前,请运行 -\fBpwck\fR -和 -\fBgrpck\fR -来修正此类错误。 -.SH "配置文件" -.PP -/etc/login\&.defs -中的如下配置变量改变 -\fBgrpconv\fR -和 -\fBgrpunconv\fR -的行为: -.PP -\fBMAX_MEMBERS_PER_GROUP\fR (number) -.RS 4 -每个组条目的最大成员数。达到最大值时,在 -/etc/group -开始一个新条目(行)(使用同样的名称,同样的密码,同样的 GID)。 -.sp -默认值是 0,意味着组中的成员数没有限制。 -.sp -此功能(分割组)允许限制组文件中的行长度。这对于确保 NIS 组的行比长于 1024 字符。 -.sp -如果要强制这个限制,可以使用 25。 -.sp -注意:分割组可能不受所有工具的支持(甚至在 Shadow 工具集中)。您不应该使用这个变量,除非真的需要。 -.RE -.PP -/etc/login\&.defs -中的如下配置变量改变 -\fBpwconv\fR -的行为: -.PP -\fBPASS_MAX_DAYS\fR (number) -.RS 4 -一个密码可以使用的最大天数。如果密码比这旧,将会强迫更改密码。如果不指定,就假定为 \-1,这会禁用这个限制。 -.RE -.PP -\fBPASS_MIN_DAYS\fR (number) -.RS 4 -两次更改密码时间的最小间隔。将会拒绝任何早于此的更改密码的尝试。如果不指定,假定为 \-1,将会禁用这个限制。 -.RE -.PP -\fBPASS_WARN_AGE\fR (number) -.RS 4 -密码过期之前给出警告的天数。0 表示只有只在过期的当天警告,负值表示不警告。如果没有指定,不会给警告。 -.RE -.SH "文件" -.PP -/etc/login\&.defs -.RS 4 -Shadow 密码套件配置。 -.RE -.SH "参见" -.PP -\fBgrpck\fR(8), -\fBlogin.defs\fR(5), -\fBpwck\fR(8)\&. diff --git a/man/zh_CN/man8/pwunconv.8 b/man/zh_CN/man8/pwunconv.8 deleted file mode 100644 index 6eed9e8b..00000000 --- a/man/zh_CN/man8/pwunconv.8 +++ /dev/null @@ -1 +0,0 @@ -.so man8/pwconv.8 diff --git a/man/zh_CN/man8/sulogin.8 b/man/zh_CN/man8/sulogin.8 deleted file mode 100644 index 43efad03..00000000 --- a/man/zh_CN/man8/sulogin.8 +++ /dev/null @@ -1,117 +0,0 @@ -'\" t -.\" Title: sulogin -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 系统管理命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "SULOGIN" "8" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "系统管理命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -sulogin \- Single\-user login -.SH "SYNTAX" -.PP -\fBsulogin\fR -[\fItty\-device\fR] -.SH "描述" -.PP -The -\fBsulogin\fR -command is invoked by -\fBinit\fR -prior to allowing the user access to the system when in single user mode\&. This feature may only be available on certain systems where -\fBinit\fR -has been modified accordingly, or where the -/etc/inittab -has an entry for a single user login\&. -.PP -The user is prompted -.PP -Type control\-d to proceed with normal startup, (or give root password for system maintenance): -.PP -Input and output will be performed with the standard file descriptors unless the optional device name argument is provided\&. -.PP -If the user enters the correct root password, a login session is initiated\&. When -\fIEOF\fR -is pressed instead, the system enters multi\-user mode\&. -.PP -After the user exits the single\-user shell, or presses -\fIEOF\fR, the system begins the initialization process required to enter multi\-user mode\&. -.SH "CAVEATS" -.PP -This command can only be used if -\fBinit\fR -has been modified to call -\fBsulogin\fR -instead of -/bin/sh, or if the user has set the -\fIinittab\fR -to support a single user login\&. For example, the line: -.PP -co:s:respawn:/etc/sulogin /dev/console -.PP -should execute the sulogin command in single user mode\&. -.PP -As complete an environment as possible is created\&. However, various devices may be unmounted or uninitialized and many of the user commands may be unavailable or nonfunctional as a result\&. -.SH "配置文件" -.PP -在 -/etc/login\&.defs -中有如下配置变量,可以用来更改此工具的行为: -.PP -\fBENV_HZ\fR (string) -.RS 4 -如果设置了,将会用于在用户登录时定义 HZ 环境变量。值必须以 -\fIHZ=\fR -开头。Linux 上的常用值是 -\fIHZ=100\fR。 -.RE -.PP -\fBENV_TZ\fR (string) -.RS 4 -如果设置了,它将用于在用户登录时定义 TZ 环境变量。此值可以是以 -\fITZ=\fR -开头的时区名(例如 -\fITZ=CST6CDT\fR),或者是包含时区规则的文件完整路径(例如 -/etc/tzname)。 -.sp -如果将完整路径指定为了一个不存在或不可读的文件,则默认使用 -\fITZ=CST6CDT\fR。 -.RE -.SH "文件" -.PP -/etc/passwd -.RS 4 -用户账户信息。 -.RE -.PP -/etc/shadow -.RS 4 -安全用户账户信息。 -.RE -.SH "参见" -.PP - -\fBlogin\fR(1), -\fBsh\fR(1), -\fBinit\fR(8)\&. diff --git a/man/zh_CN/man8/useradd.8 b/man/zh_CN/man8/useradd.8 deleted file mode 100644 index 12fb458f..00000000 --- a/man/zh_CN/man8/useradd.8 +++ /dev/null @@ -1,681 +0,0 @@ -'\" t -.\" Title: useradd -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 系统管理命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "USERADD" "8" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "系统管理命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -useradd \- 创建一个新用户或更新默认新用户信息 -.SH "大纲" -.HP \w'\fBuseradd\fR\ 'u -\fBuseradd\fR [\fI选项\fR] \fI登录\fR -.HP \w'\fBuseradd\fR\ 'u -\fBuseradd\fR \-D -.HP \w'\fBuseradd\fR\ 'u -\fBuseradd\fR \-D [\fI选项\fR] -.SH "描述" -.PP -如果使用时不带 -\fB\-D\fR -选项,\fBuseradd\fR -命令使用命令行上指定的值和系统的默认值创建一个新用户。根据命令行选项,\fBuseradd\fR -命令也会更新系统文件和创建新用户的主目录并复制初始文件。 -.PP -默认上,也会为用户创建组 (察看 -\fB\-g\fR, -\fB\-N\fR, -\fB\-U\fR,和 -\fBUSERGROUPS_ENAB\fR)。 -.SH "选项" -.PP -\fBuseradd\fR -可以使用的选项有: -.PP -\fB\-b\fR, \fB\-\-base\-dir\fR\fIBASE_DIR\fR -.RS 4 -如果没有使用 -\fB\-d\fR\fIHOME_DIR\fR,则使用默认的基目录。\fIBASE_DIR\fR -加上账户名就是主目录。如果没有使用 -\fB\-m\fR -选项,\fIBASE_DIR\fR -必须已经存在。 -.sp -如果选项没有指定,\fBuseradd\fR -将使用 -/etc/default/useradd -中的 -\fBHOME\fR -变量,或者默认的 -/home。 -.RE -.PP -\fB\-c\fR, \fB\-\-comment\fR\fICOMMENT\fR -.RS 4 -任何字符串。通常是关于登录的简短描述,当前用于用户全名。 -.RE -.PP -\fB\-d\fR, \fB\-\-home\fR\fIHOME_DIR\fR -.RS 4 -将创建新用户,并使用 -\fIHOME_DIR\fR -作为用户登陆目录的值。默认值是将 -\fILOGIN\fR -名附加到 -\fIBASE_DIR\fR -后面,并使用这作为登陆目录。目录不一定必须已经存在 -\fIHOME_DIR\fR,但是会在需要时创建。 -.RE -.PP -\fB\-D\fR, \fB\-\-defaults\fR -.RS 4 -看下边,\(lq更改默认值\(rq子节。 -.RE -.PP -\fB\-e\fR, \fB\-\-expiredate\fR\fIEXPIRE_DATE\fR -.RS 4 -用户账户将被禁用的日期。日期以 -\fIYYYY\-MM\-DD\fR -格式指定。 -.sp -如果没有指定,\fBuseradd\fR -将使用 -/etc/default/useradd -中 -\fBEXPIRE\fR -变量指定的默认过期日期,或者一个空字符串(不过期)。 -.RE -.PP -\fB\-f\fR, \fB\-\-inactive\fR\fIINACTIVE\fR -.RS 4 -密码过期后,账户被彻底禁用之前的天数。0 表示立即禁用,\-1 表示禁用这个功能。 -.sp -如果未指定,\fBuseradd\fR -将使用 -/etc/default/useradd -中的 -\fBINACTIVE\fR -指定的默认禁用周期,或者默认为 \-1。 -.RE -.PP -\fB\-g\fR, \fB\-\-gid\fR\fIGROUP\fR -.RS 4 -用户初始登陆组的组名或号码。组名必须已经存在。组号码必须指代已经存在的组。 -.sp -如果没有指定, -\fBuseradd\fR -的行为将依赖于 -/etc/login\&.defs -文件中的 -\fBUSERGROUPS_ENAB\fR -参数。如果此参数设置为了 -\fIyes\fR -(或者在命令行上指定了 -\fB\-U/\-\-user\-group\fR),将会为用户创建一个组,组名和登录名相同。如果选项设置为了 -\fIno\fR -(或者在命令行上指定了 -\fB\-N/\-\-no\-user\-group\fR),useradd 会把新用户的主组设置为 -/etc/default/useradd -中 -\fBGROUP\fR -变量指定的值,再或者默认是 100。 -.RE -.PP -\fB\-G\fR, \fB\-\-groups\fR\fIGROUP1\fR[\fI,GROUP2,\&.\&.\&.\fR[\fI,GROUPN\fR]]] -.RS 4 -用户还属于的附加组列表。每个组都用逗号隔开,没有中间的空格。这里的组受到了 -\fB\-g\fR -选项给定的组同样的限制。默认上,用户只属于初始组。 -.RE -.PP -\fB\-h\fR, \fB\-\-help\fR -.RS 4 -现实帮助信息并退出。 -.RE -.PP -\fB\-k\fR, \fB\-\-skel\fR\fISKEL_DIR\fR -.RS 4 -骨架目录,包含使用 -\fBuseradd\fR -创建用户时,要复制到用户主目录中的文件和目录。 -.sp -这个选项只有在指定 -\fB\-m\fR -(或 -\fB\-\-create\-home\fR) 选项时才有效。 -.sp -如果此项没有设置,骨架目录使用 -/etc/default/useradd -中的 -\fBSKEL\fR -的变量或默认为 -/etc/skel。 -.sp -如果可以,也复制 ACL 和扩展属性。 -.RE -.PP -\fB\-K\fR, \fB\-\-key\fR\fIKEY\fR=\fIVALUE\fR -.RS 4 -默认覆盖 -/etc/login\&.defs -(\fBUID_MIN\fR, -\fBUID_MAX\fR, -\fBUMASK\fR, -\fBPASS_MAX_DAYS\fR -及其它)。 -例如:\fB\-K \fR\fIPASS_MAX_DAYS\fR=\fI\-1\fR -可以用于创建一个密码不会过期的系统账户,即使系统账户没有密码。可以指定多个 -\fB\-K\fR -选项,如:\fB\-K \fR\fIUID_MIN\fR=\fI100\fR\fB\-K \fR\fIUID_MAX\fR=\fI499\fR -.RE -.PP -\fB\-l\fR, \fB\-\-no\-log\-init\fR -.RS 4 -不要将用户添加到最近登录和登录失败数据库。 -.sp -默认上,最近登录和登录失败中用户的条目会被重置,以避免重新使用先前删除的用户的条目。 -.RE -.PP -\fB\-m\fR, \fB\-\-create\-home\fR -.RS 4 -如果不存在,则创建用户主目录。骨架目录中的文件和目录(可以使用 -\fB\-k\fR -选项指定),将会复制到主目录。 -.sp -默认上,如果没有指定此选项并且 -\fBCREATE_HOME\fR -没有启用,不会创建主目录。 -.RE -.PP -\fB\-M\fR -.RS 4 -不创建用户主目录,即使系统在 -/etc/login\&.defs -中的设置 (\fBCREATE_HOME\fR) 为 -\fIyes\fR。 -.RE -.PP -\fB\-N\fR, \fB\-\-no\-user\-group\fR -.RS 4 -不要创建同名组,而是将用户添加到 -\fB\-g\fR -选项指定的组,或根据 -/etc/default/useradd -中的 -\fBGROUP\fR -变量。 -.sp -如果没有指定 -\fB\-g\fR, -\fB\-N\fR -和 -\fB\-U\fR -选项,默认行为由 -/etc/login\&.defs -中的 -\fBUSERGROUPS_ENAB\fR -变量指定。 -.RE -.PP -\fB\-o\fR, \fB\-\-non\-unique\fR -.RS 4 -允许使用重复的 UID 创建用户账户。 -.sp -此选项只有和 -\fB\-u\fR -选项组合使用才有效。 -.RE -.PP -\fB\-p\fR, \fB\-\-password\fR\fIPASSWORD\fR -.RS 4 -加密了的密码,就像 -\fBcrypt\fR(3) -的返回值。默认为禁用密码。 -.sp -\fB注意:\fR不推荐使用这个选项,因为密码(或加密过的密码)会被用户通过列出这个过程而看到。 -.sp -您应该确保密码符合系统的密码政策。 -.RE -.PP -\fB\-r\fR, \fB\-\-system\fR -.RS 4 -创建一个系统账户。 -.sp -System users will be created with no aging information in -/etc/shadow, and their numeric identifiers are chosen in the -\fBSYS_UID_MIN\fR\-\fBSYS_UID_MAX\fR -range, defined in -/etc/login\&.defs, instead of -\fBUID_MIN\fR\-\fBUID_MAX\fR -(and their -\fBGID\fR -counterparts for the creation of groups)\&. -.sp -注意:\fBuseradd\fR -不会为这种用户创建主目录,无论 -/etc/login\&.defs -(\fBCREATE_HOME\fR) 中是的默认设置是怎样。如果想为要创建的系统账户创建主目录,需要指定 -\fB\-m\fR -选项。 -.RE -.PP -\fB\-R\fR, \fB\-\-root\fR\fICHROOT_DIR\fR -.RS 4 -Apply changes in the -\fICHROOT_DIR\fR -directory and use the configuration files from the -\fICHROOT_DIR\fR -directory\&. -.RE -.PP -\fB\-s\fR, \fB\-\-shell\fR\fISHELL\fR -.RS 4 -用户的登录 shell 名。默认为留空,让系统根据 -/etc/default/useradd -中的 -\fBSHELL\fR -变量选择默认的登录 shell,默认为空字符串。 -.RE -.PP -\fB\-u\fR, \fB\-\-uid\fR\fIUID\fR -.RS 4 -用户 ID 的数字值。此值必须为唯一的,除非使用了 -\fB\-o\fR -选项。此值必须非负,默认使用大于等于 -\fBUID_MIN\fR,且大于任何其他用户 ID 最小值。 -.sp -请参考 -\fB\-r\fR -选项和 -\fBUID_MAX\fR -的描述。 -.RE -.PP -\fB\-U\fR, \fB\-\-user\-group\fR -.RS 4 -创建一个和用户同名的组,并将用户添加到组中。 -.sp -如果没有指定 -\fB\-g\fR, -\fB\-N\fR -和 -\fB\-U\fR -选项,默认行为由 -/etc/login\&.defs -中的 -\fBUSERGROUPS_ENAB\fR -变量指定。 -.RE -.PP -\fB\-Z\fR, \fB\-\-selinux\-user\fR\fISEUSER\fR -.RS 4 -用户登陆的 SELinux 用户。默认为留空,这会造成系统选择默认的 SELinux 用户。 -.RE -.SS "更改默认值" -.PP -只带 -\fB\-D\fR -选项使用时,\fBuseradd\fR -将显示当前的默认值。\fB\-D\fR -和其它选项配合使用时,\fBuseradd\fR -将为指定的选项更新默认值。有效的\(lq更改默认值\(rq选项有: -.PP -\fB\-b\fR, \fB\-\-base\-dir\fR\fIBASE_DIR\fR -.RS 4 -新用户主目录的路径前缀。如果创建新账户时,没有使用 -\fB\-d\fR -选项,用户的名称将会缀在 -\fIBASE_DIR\fR -的后边形成新用户的主目录名。 -.sp -这个选择在 -/etc/default/useradd -中设置 -\fBHOME\fR -选项。 -.RE -.PP -\fB\-e\fR, \fB\-\-expiredate\fR\fIEXPIRE_DATE\fR -.RS 4 -禁用此用户账户的日期。 -.sp -此选项在 -/etc/default/useradd -中设置 -\fBEXPIRE\fR -变量。 -.RE -.PP -\fB\-f\fR, \fB\-\-inactive\fR\fIINACTIVE\fR -.RS 4 -密码过期到账户被禁用之前的天数。 -.sp -这个选项在 -/etc/default/useradd -中设置 -\fBINACTIVE\fR -变量。 -.RE -.PP -\fB\-g\fR, \fB\-\-gid\fR\fIGROUP\fR -.RS 4 -新用户初始组的组名或 ID (使用了 -\fB\-N/\-\-no\-user\-group\fR -或者 -/etc/login\&.defs -中的变量 -\fBUSERGROUPS_ENAB\fR -设置为 -\fIno\fR -时)。给出的组必须存在,并且数字组 ID 必须有一个已经存在的项。 -.sp -这个选项在 -/etc/default/useradd -中设置 -\fBGROUP\fR -变量。 -.RE -.PP -\fB\-s\fR, \fB\-\-shell\fR\fISHELL\fR -.RS 4 -新用户的登录 shell 名。 -.sp -这个选项在 -/etc/default/useradd -设置 -\fBSHELL\fR -变量。 -.RE -.SH "注意:" -.PP -系统管理员负责将默认的用户文件放在 -/etc/skel/ -目录中(或者命令行上、/etc/default/useradd -中指定的任何其它目录)。 -.SH "CAVEATS" -.PP -您可能不能想 NIS 组或 LDAP 组添加用户。这只能在相应服务器上进行。 -.PP -相似地,如果用户名已经存在于外部用户数据库中,比如 NIS 或 LDAP,\fBuseradd\fR -将拒绝创建用户账户的请求。 -.PP -用户名必须以一个小写字母或下划线开始,跟随小写字符、数字、下划线或连字符的组合。可以以美元符号结束。用正则表达式表示就是:[a\-z_][a\-z0\-9_\-]*[$]? -.PP -用户名不能超过 32 个字符长。 -.SH "配置文件" -.PP -在 -/etc/login\&.defs -中有如下配置变量,可以用来更改此工具的行为: -.PP -\fBCREATE_HOME\fR (boolean) -.RS 4 -指示是否应该为新用户默认创建主目录。 -.sp -此设置并不应用到系统用户,并且可以使用命令行覆盖。 -.RE -.PP -\fBGID_MAX\fR (number), \fBGID_MIN\fR (number) -.RS 4 -\fBuseradd\fR,\fBgroupadd\fR -或 -\fBnewusers\fR -创建的常规组的组 ID 的范围。 -.sp -\fBGID_MIN\fR -和 -\fBGID_MAX\fR -的默认值分别是 1000 和 60000。 -.RE -.PP -\fBMAIL_DIR\fR (string) -.RS 4 -邮箱目录。修改或删除用户账户时需要处理邮箱,如果没有指定,将使用编译时指定的默认值。 -.RE -.PP -\fBMAIL_FILE\fR (string) -.RS 4 -定义用户邮箱文件的位置(相对于主目录)。 -.RE -.PP -\fBMAIL_DIR\fR -and -\fBMAIL_FILE\fR -变量由 -\fBuseradd\fR,\fBusermod\fR -和 -\fBuserdel\fR -用于创建、移动或删除用户邮箱。 -.PP -如果 -\fBMAIL_CHECK_ENAB\fR -设置为 -\fIyes\fR,它们也被用于定义 -\fBMAIL\fR -环境变量。 -.PP -\fBMAX_MEMBERS_PER_GROUP\fR (number) -.RS 4 -每个组条目的最大成员数。达到最大值时,在 -/etc/group -开始一个新条目(行)(使用同样的名称,同样的密码,同样的 GID)。 -.sp -默认值是 0,意味着组中的成员数没有限制。 -.sp -此功能(分割组)允许限制组文件中的行长度。这对于确保 NIS 组的行比长于 1024 字符。 -.sp -如果要强制这个限制,可以使用 25。 -.sp -注意:分割组可能不受所有工具的支持(甚至在 Shadow 工具集中)。您不应该使用这个变量,除非真的需要。 -.RE -.PP -\fBPASS_MAX_DAYS\fR (number) -.RS 4 -一个密码可以使用的最大天数。如果密码比这旧,将会强迫更改密码。如果不指定,就假定为 \-1,这会禁用这个限制。 -.RE -.PP -\fBPASS_MIN_DAYS\fR (number) -.RS 4 -两次更改密码时间的最小间隔。将会拒绝任何早于此的更改密码的尝试。如果不指定,假定为 \-1,将会禁用这个限制。 -.RE -.PP -\fBPASS_WARN_AGE\fR (number) -.RS 4 -密码过期之前给出警告的天数。0 表示只有只在过期的当天警告,负值表示不警告。如果没有指定,不会给警告。 -.RE -.PP -\fBSYS_GID_MAX\fR (number), \fBSYS_GID_MIN\fR (number) -.RS 4 -\fBuseradd\fR、\fBgroupadd\fR -或 -\fBnewusers\fR -创建的系统组的组 ID 的范围。 -.sp -\fBSYS_GID_MIN\fR -和 -\fBSYS_GID_MAX\fR -的默认值分别是 101 和 -\fBGID_MIN\fR\-1。 -.RE -.PP -\fBSYS_UID_MAX\fR (number), \fBSYS_UID_MIN\fR (number) -.RS 4 -\fBuseradd\fR -或 -\fBnewusers\fR -创建的系统用户的用户 ID 的范围。 -.sp -\fBSYS_UID_MIN\fR -和 -\fBSYS_UID_MAX\fR -的默认值分别是 101 和 -\fBUID_MIN\fR\-1。 -.RE -.PP -\fBUID_MAX\fR (number), \fBUID_MIN\fR (number) -.RS 4 -\fBuseradd\fR -或 -\fBnewusers\fR -创建的普通用户的用户 ID 的范围。 -.sp -\fBUID_MIN\fR -和 -\fBUID_MAX\fR -的默认值分别是 1000 和 60000。 -.RE -.PP -\fBUMASK\fR (number) -.RS 4 -文件模式创建掩码初始化为此值。如果没有指定,掩码初始化为 022。 -.sp -\fBuseradd\fR -和 -\fBnewusers\fR -使用此掩码设置它们创建的用户主目录的模式。 -.sp -也被 -\fBlogin\fR -用于指定用户的初始 umask。注意,此掩码可以被用户的 GECOS 行覆盖(当设置了 -\fBQUOTAS_ENAB\fR -时),也可以被带 -\fIK\fR -指示符的 -\fBlimits\fR(5) -定义的限制值覆盖。 -.RE -.PP -\fBUSERGROUPS_ENAB\fR (boolean) -.RS 4 -如果 uid 和 gid 相同,用户名和主用户名也相同,使非 root 组的组掩码位和属主位相同 (如:022 \-> 002, 077 \-> 007)。 -.sp -如果设置为 -\fIyes\fR,如果组中没有成员了,\fBuserdel\fR -将移除此用户组,\fBuseradd\fR -创建用户时,也会创建一个同名的默认组。 -.RE -.SH "文件" -.PP -/etc/passwd -.RS 4 -用户账户信息。 -.RE -.PP -/etc/shadow -.RS 4 -安全用户账户信息。 -.RE -.PP -/etc/group -.RS 4 -组账户信息。 -.RE -.PP -/etc/gshadow -.RS 4 -安全组账户信息。 -.RE -.PP -/etc/default/useradd -.RS 4 -账户创建的默认值。 -.RE -.PP -/etc/skel/ -.RS 4 -包含默认文件的目录。 -.RE -.PP -/etc/login\&.defs -.RS 4 -Shadow 密码套件配置。 -.RE -.SH "退出值" -.PP -\fBuseradd\fR -可以返回如下值:.PP -\fI0\fR -.RS 4 -成功 -.RE -.PP -\fI1\fR -.RS 4 -无法更新密码文件 -.RE -.PP -\fI2\fR -.RS 4 -无效的命令语法 -.RE -.PP -\fI3\fR -.RS 4 -给了选项一个无效的参数 -.RE -.PP -\fI4\fR -.RS 4 -UID 已经使用 (且没有 -\fB\-o\fR) -.RE -.PP -\fI6\fR -.RS 4 -指定的组不存在 -.RE -.PP -\fI9\fR -.RS 4 -用户名已被使用 -.RE -.PP -\fI10\fR -.RS 4 -无法更新组文件 -.RE -.PP -\fI12\fR -.RS 4 -无法创建主目录 -.RE -.PP -\fI14\fR -.RS 4 -can\*(Aqt update SELinux user mapping -.RE -.SH "参见" -.PP -\fBchfn\fR(1), -\fBchsh\fR(1), -\fBpasswd\fR(1), -\fBcrypt\fR(3), -\fBgroupadd\fR(8), -\fBgroupdel\fR(8), -\fBgroupmod\fR(8), -\fBlogin.defs\fR(5), -\fBnewusers\fR(8), -\fBuserdel\fR(8), -\fBusermod\fR(8)\&. diff --git a/man/zh_CN/man8/userdel.8 b/man/zh_CN/man8/userdel.8 deleted file mode 100644 index 863d747b..00000000 --- a/man/zh_CN/man8/userdel.8 +++ /dev/null @@ -1,276 +0,0 @@ -'\" t -.\" Title: userdel -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 系统管理命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "USERDEL" "8" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "系统管理命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -userdel \- 删除用户账户和相关文件 -.SH "大纲" -.HP \w'\fBuserdel\fR\ 'u -\fBuserdel\fR [选项] \fI登录\fR -.SH "描述" -.PP -\fBuserdel\fR -修改系统账户文件,删除与用户名 -\fILOGIN\fR -相关的所以项目。给出的用户名必须存在。 -.SH "选项" -.PP -\fBuserdel\fR -可以使用的选项有: -.PP -\fB\-f\fR, \fB\-\-force\fR -.RS 4 -此选项强制删除用户账户,甚至用户仍然在登录状态。它也强制 -\fBuserdel\fR -删除用户的主目录和邮箱,即使其它用户也使用同一个主目录或邮箱不属于指定的用户。如果 -/etc/login\&.defs -中的 -\fBUSERGROUPS_ENAB\fR -定义为 -\fIyes\fR,并且如果有一个和用户同名的组,也会删除此组,即使它仍然是别的用户的主组。 -.sp -\fI注意:\fR此选项危险,可能会破坏系统的稳定性。 -.RE -.PP -\fB\-h\fR, \fB\-\-help\fR -.RS 4 -现实帮助信息并退出。 -.RE -.PP -\fB\-r\fR, \fB\-\-remove\fR -.RS 4 -用户主目录中的文件将随用户主目录和用户邮箱一起删除。在其它文件系统中的文件必须手动搜索并删除。 -.sp -邮箱在 -login\&.defs -文件中的 -\fBMAIL_DIR\fR -变量中定义。 -.RE -.PP -\fB\-R\fR, \fB\-\-root\fR\fICHROOT_DIR\fR -.RS 4 -Apply changes in the -\fICHROOT_DIR\fR -directory and use the configuration files from the -\fICHROOT_DIR\fR -directory\&. -.RE -.PP -\fB\-Z\fR, \fB\-\-selinux\-user\fR -.RS 4 -移除用户登录的所有 SELinux 用户映射。 -.RE -.SH "配置文件" -.PP -在 -/etc/login\&.defs -中有如下配置变量,可以用来更改此工具的行为: -.PP -\fBMAIL_DIR\fR (string) -.RS 4 -邮箱目录。修改或删除用户账户时需要处理邮箱,如果没有指定,将使用编译时指定的默认值。 -.RE -.PP -\fBMAIL_FILE\fR (string) -.RS 4 -定义用户邮箱文件的位置(相对于主目录)。 -.RE -.PP -\fBMAIL_DIR\fR -and -\fBMAIL_FILE\fR -变量由 -\fBuseradd\fR,\fBusermod\fR -和 -\fBuserdel\fR -用于创建、移动或删除用户邮箱。 -.PP -如果 -\fBMAIL_CHECK_ENAB\fR -设置为 -\fIyes\fR,它们也被用于定义 -\fBMAIL\fR -环境变量。 -.PP -\fBMAX_MEMBERS_PER_GROUP\fR (number) -.RS 4 -每个组条目的最大成员数。达到最大值时,在 -/etc/group -开始一个新条目(行)(使用同样的名称,同样的密码,同样的 GID)。 -.sp -默认值是 0,意味着组中的成员数没有限制。 -.sp -此功能(分割组)允许限制组文件中的行长度。这对于确保 NIS 组的行比长于 1024 字符。 -.sp -如果要强制这个限制,可以使用 25。 -.sp -注意:分割组可能不受所有工具的支持(甚至在 Shadow 工具集中)。您不应该使用这个变量,除非真的需要。 -.RE -.PP -\fBUSERDEL_CMD\fR (string) -.RS 4 -如果定义了,这是删除账户时执行的命令。它应该移除所有属于此用户的的 at/cron/print 等作业(作为第一个参数传递)。 -.sp -这个脚本的返回值并不被带到账户中去。 -.sp -这是一个示例脚本,它移除用户的 cron、at 和 print 作业: -.sp -.if n \{\ -.RS 4 -.\} -.nf -#! /bin/sh - -# 检查需要的参数 -if [ $# != 1 ]; then - echo "Usage: $0 username" - exit 1 -fi - -# 移除 cron 作业 -crontab \-r \-u $1 - -# 移除 at 作业 -# 注意这将移除所有属于同一个 UID 的作业 -# 即使此 ID 由多个用户名共享 -AT_SPOOL_DIR=/var/spool/cron/atjobs -find $AT_SPOOL_DIR \-name "[^\&.]*" \-type f \-user $1 \-delete \e; - -# 移除 print 作业 -lprm $1 - -# 全部完成 -exit 0 - -.fi -.if n \{\ -.RE -.\} -.RE -.PP -\fBUSERGROUPS_ENAB\fR (boolean) -.RS 4 -如果 uid 和 gid 相同,用户名和主用户名也相同,使非 root 组的组掩码位和属主位相同 (如:022 \-> 002, 077 \-> 007)。 -.sp -如果设置为 -\fIyes\fR,如果组中没有成员了,\fBuserdel\fR -将移除此用户组,\fBuseradd\fR -创建用户时,也会创建一个同名的默认组。 -.RE -.SH "文件" -.PP -/etc/group -.RS 4 -组账户信息。 -.RE -.PP -/etc/login\&.defs -.RS 4 -Shadow 密码套件配置。 -.RE -.PP -/etc/passwd -.RS 4 -用户账户信息。 -.RE -.PP -/etc/shadow -.RS 4 -安全用户账户信息。 -.RE -.SH "退出值" -.PP -\fBuserdel\fR -命令使用如下值退出:.PP -\fI0\fR -.RS 4 -成功 -.RE -.PP -\fI1\fR -.RS 4 -无法更新密码文件 -.RE -.PP -\fI2\fR -.RS 4 -无效的命令语法 -.RE -.PP -\fI6\fR -.RS 4 -指定的用户不存在 -.RE -.PP -\fI8\fR -.RS 4 -用户已经登录 -.RE -.PP -\fI10\fR -.RS 4 -无法更新组文件 -.RE -.PP -\fI12\fR -.RS 4 -无法删除主目录 -.RE -.SH "CAVEATS" -.PP -如果某账户有正在运行的进程,\fBuserdel\fR -不会允许此账户。此时,您可能必须要杀死那写进程或者锁定用户的密码和账户,并稍后再删除账户。\fB\-f\fR -选项可以强制此删除账户。 -.PP -您应该手动检查所以文件系统,以确保没有遗留此用户的文件。 -.PP -您不能在 NIS 客户端上移除任何 NIS 属性。这必须在 NIS 服务器上执行。 -.PP -如果在 -/etc/login\&.defs -中 -\fBUSERGROUPS_ENAB\fR -设置为 -\fIyes\fR, -\fBuserdel\fR -将删除同名组。为了避免损坏 passwd 和 group 数据库,\fBuserdel\fR -将会检查这个主是否被别的用户用作主组,如果有,将只发出警告并不删除此组。\fB\-f\fR -选项可以强制删除此组。 -.SH "参见" -.PP -\fBchfn\fR(1), -\fBchsh\fR(1), -\fBpasswd\fR(1), -\fBlogin.defs\fR(5), -\fBgpasswd\fR(8), -\fBgroupadd\fR(8), -\fBgroupdel\fR(8), -\fBgroupmod\fR(8), -\fBuseradd\fR(8), -\fBusermod\fR(8)\&. diff --git a/man/zh_CN/man8/usermod.8 b/man/zh_CN/man8/usermod.8 deleted file mode 100644 index 592b9d7a..00000000 --- a/man/zh_CN/man8/usermod.8 +++ /dev/null @@ -1,331 +0,0 @@ -'\" t -.\" Title: usermod -.\" Author: Julianne Frances Haugh -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 系统管理命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "USERMOD" "8" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "系统管理命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -usermod \- 修改一个用户账户 -.SH "大纲" -.HP \w'\fBusermod\fR\ 'u -\fBusermod\fR [\fI选项\fR] \fI登录\fR -.SH "描述" -.PP -\fBusermod\fR -修改系统账户文件和在命令行上指定的相关更改。 -.SH "选项" -.PP -\fBusermod\fR -可以接受的选项有: -.PP -\fB\-a\fR, \fB\-\-append\fR -.RS 4 -将用户添加到附加组。只能和 -\fB\-G\fR -选项一起使用。 -.RE -.PP -\fB\-c\fR, \fB\-\-comment\fR\fICOMMENT\fR -.RS 4 -用户密码文件中注释字段的新值。通常使用 -\fBchfn\fR(1) -工具对其进行修改。 -.RE -.PP -\fB\-d\fR, \fB\-\-home\fR\fIHOME_DIR\fR -.RS 4 -用户的新登录目录。 -.sp -如果给了 -\fB\-m\fR -选项,当前主目录的内容将会移动到新主目录中,如果不存在,则创建。 -.RE -.PP -\fB\-e\fR, \fB\-\-expiredate\fR\fIEXPIRE_DATE\fR -.RS 4 -用户账户将被禁用的日期。日期以 -\fIYYYY\-MM\-DD\fR -格式指定。 -.sp -空 -\fIEXPIRE_DATE\fR -参数将禁用账户过期。 -.sp -此选项需要一个 -/etc/passwd -文件。如果没有,将会创建一条 -/etc/shadow -项目。 -.RE -.PP -\fB\-f\fR, \fB\-\-inactive\fR\fIINACTIVE\fR -.RS 4 -密码过期之后,账户被彻底禁用之前的天数。 -.sp -0 表示密码过期时,立即禁用账户;\-1 表示不使用这个功能。 -.sp -此选项需要一个 -/etc/passwd -文件。如果没有,将会创建一条 -/etc/shadow -项目。 -.RE -.PP -\fB\-g\fR, \fB\-\-gid\fR\fIGROUP\fR -.RS 4 -用户的新初始登录组的组名或数字代号。此组必须存在。 -.sp -用户主目录中,属于原来的主组的文件将转交新组所有。 -.sp -主目录之外的文件所属的组必须手动修改。 -.RE -.PP -\fB\-G\fR, \fB\-\-groups\fR\fIGROUP1\fR[\fI,GROUP2,\&.\&.\&.\fR[\fI,GROUPN\fR]]] -.RS 4 -用户还属于的附加组列表。组之间使用逗号分隔,没有空格。这些组需要遵守和 -\fB\-g\fR -选项中给的组同样的限制。 -.sp -如果用户当前是一个组的成员,而这个组没有列在这里,用户将被从那个组里便删除。这个行为可以通过 -\fB\-a\fR -选项修改,这使用户追加到给出的附加组列表中。 -.RE -.PP -\fB\-l\fR, \fB\-\-login\fR\fINEW_LOGIN\fR -.RS 4 -用户的名称将会从 -\fILOGIN\fR -修改为 -\fINEW_LOGIN\fR。不会更改别的任何东西。特别是,用户的主目录名和邮件池也需要手动修改以和新登录名对应。 -.RE -.PP -\fB\-L\fR, \fB\-\-lock\fR -.RS 4 -锁定用户的密码。这会在用户加密的密码之前放置一个\(lq!\(rq,可以快速禁用密码。您可以和 -\fB\-p\fR -或 -\fB\-U\fR -配合使用此选项。 -.sp -注意:如果希望锁定账户(不仅仅是通过密码访问),您也需要设置 -\fIEXPIRE_DATE\fR -为 -\fI1\fR。 -.RE -.PP -\fB\-m\fR, \fB\-\-move\-home\fR -.RS 4 -将用户的主目录移动到新位置。 -.sp -这个选项只有和 -\fB\-d\fR -(或 -\fB\-\-home\fR) 选项组合使用时才有效。 -.sp -\fBusermod\fR -会改写文件的属主并复制模式、ACL 和扩展属性,但是稍后也可能需要手动修改。 -.RE -.PP -\fB\-o\fR, \fB\-\-non\-unique\fR -.RS 4 -使用 -\fB\-u\fR -选项时,可以将用户 ID 改为非唯一的值。 -.RE -.PP -\fB\-p\fR, \fB\-\-password\fR\fIPASSWORD\fR -.RS 4 -已经加密过的密码,就像 -\fBcrypt\fR(3) -返回的那样。 -.sp -\fB注意:\fR不推荐使用这个选项,因为密码(或加密过的密码)会被用户通过列出这个过程而看到。 -.sp -您应该确保密码符合系统的密码政策。 -.RE -.PP -\fB\-R\fR, \fB\-\-root\fR\fICHROOT_DIR\fR -.RS 4 -Apply changes in the -\fICHROOT_DIR\fR -directory and use the configuration files from the -\fICHROOT_DIR\fR -directory\&. -.RE -.PP -\fB\-s\fR, \fB\-\-shell\fR\fISHELL\fR -.RS 4 -用户的新登录 shell 的名称。将此字段设置为空会让系统选择默认的登录 shell。 -.RE -.PP -\fB\-u\fR, \fB\-\-uid\fR\fIUID\fR -.RS 4 -用户 ID 的新数值。 -.sp -这个值必须是唯一的,除非使用了 -\fB\-o\fR -选项,必须是非负值。 -.sp -用户的邮箱,用户主目录中属于此用户的文件的属主 ID 也将自动更改。 -.sp -用户主目录之外文件所有权必须手动修复。 -.sp -不会对 -/etc/login\&.defs -中的 -\fBUID_MIN\fR, -\fBUID_MAX\fR, -\fBSYS_UID_MIN\fR -和 -\fBSYS_UID_MAX\fR -进行检查。 -.RE -.PP -\fB\-U\fR, \fB\-\-unlock\fR -.RS 4 -解锁用户的密码。这将移除加密的密码之前的\(lq!\(rq。您可以将此选项和 -\fB\-p\fR -或 -\fB\-L\fR -配合使用。 -.sp -注意:如果您希望解锁账户(不只是使用密码访问),您也应该设置 -\fIEXPIRE_DATE\fR -(例如设置为 -\fI99999\fR,或者 -/etc/default/useradd -中的 -\fBEXPIRE\fR -值)。 -.RE -.PP -\fB\-Z\fR, \fB\-\-selinux\-user\fR\fISEUSER\fR -.RS 4 -用户登陆的 SELinux 用户。 -.sp -空的 -\fISEUSER\fR -将移除用户 -\fILOGIN\fR -的 SELinux 用户映射(如果有)。 -.RE -.SH "CAVEATS" -.PP -如果要更改用户的数字 ID、用户名或主目录,需要确保允许命令时,用户没有执行任何进程。\fBusermod\fR -会在 Linux 上进行检查;但是在其它平台上,仅仅根据 utmp 检查用户是否已经登录。 -.PP -您必须手动更改 -\fBcrontab\fR -文件或 -\fBat\fR -作业的属主。 -.PP -您必须更改 NIS 服务器上的 NIS 相关内容。 -.SH "配置文件" -.PP -在 -/etc/login\&.defs -中有如下配置变量,可以用来更改此工具的行为: -.PP -\fBMAIL_DIR\fR (string) -.RS 4 -邮箱目录。修改或删除用户账户时需要处理邮箱,如果没有指定,将使用编译时指定的默认值。 -.RE -.PP -\fBMAIL_FILE\fR (string) -.RS 4 -定义用户邮箱文件的位置(相对于主目录)。 -.RE -.PP -\fBMAIL_DIR\fR -and -\fBMAIL_FILE\fR -变量由 -\fBuseradd\fR,\fBusermod\fR -和 -\fBuserdel\fR -用于创建、移动或删除用户邮箱。 -.PP -如果 -\fBMAIL_CHECK_ENAB\fR -设置为 -\fIyes\fR,它们也被用于定义 -\fBMAIL\fR -环境变量。 -.PP -\fBMAX_MEMBERS_PER_GROUP\fR (number) -.RS 4 -每个组条目的最大成员数。达到最大值时,在 -/etc/group -开始一个新条目(行)(使用同样的名称,同样的密码,同样的 GID)。 -.sp -默认值是 0,意味着组中的成员数没有限制。 -.sp -此功能(分割组)允许限制组文件中的行长度。这对于确保 NIS 组的行比长于 1024 字符。 -.sp -如果要强制这个限制,可以使用 25。 -.sp -注意:分割组可能不受所有工具的支持(甚至在 Shadow 工具集中)。您不应该使用这个变量,除非真的需要。 -.RE -.SH "文件" -.PP -/etc/group -.RS 4 -组账户信息。 -.RE -.PP -/etc/gshadow -.RS 4 -安全组账户信息。 -.RE -.PP -/etc/login\&.defs -.RS 4 -Shadow 密码套件配置。 -.RE -.PP -/etc/passwd -.RS 4 -用户账户信息。 -.RE -.PP -/etc/shadow -.RS 4 -安全用户账户信息。 -.RE -.SH "参见" -.PP -\fBchfn\fR(1), -\fBchsh\fR(1), -\fBpasswd\fR(1), -\fBcrypt\fR(3), -\fBgpasswd\fR(8), -\fBgroupadd\fR(8), -\fBgroupdel\fR(8), -\fBgroupmod\fR(8), -\fBlogin.defs\fR(5), -\fBuseradd\fR(8), -\fBuserdel\fR(8)\&. diff --git a/man/zh_CN/man8/vigr.8 b/man/zh_CN/man8/vigr.8 deleted file mode 100644 index ff72d7ae..00000000 --- a/man/zh_CN/man8/vigr.8 +++ /dev/null @@ -1 +0,0 @@ -.so man8/vipw.8 diff --git a/man/zh_CN/man8/vipw.8 b/man/zh_CN/man8/vipw.8 deleted file mode 100644 index fe0c90f8..00000000 --- a/man/zh_CN/man8/vipw.8 +++ /dev/null @@ -1,134 +0,0 @@ -'\" t -.\" Title: vipw -.\" Author: Marek Micha\(/lkiewicz -.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 2012-05-25 -.\" Manual: 系统管理命令 -.\" Source: shadow-utils 4.1.5.1 -.\" Language: Chinese Simplified -.\" -.TH "VIPW" "8" "2012-05-25" "shadow\-utils 4\&.1\&.5\&.1" "系统管理命令" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "名称" -vipw, vigr \- 编辑密码、组、影子密码或影子组文件。 -.SH "大纲" -.HP \w'\fBvipw\fR\ 'u -\fBvipw\fR [\fI选项\fR] -.HP \w'\fBvigr\fR\ 'u -\fBvigr\fR [\fI选项\fR] -.SH "描述" -.PP -\fBvipw\fR -和 -\fBvigr\fR -命令分别编辑 -/etc/passwd -和 -/etc/group -文件。使用 -\fB\-s\fR -标识时,将编辑这些文件的影子版,即分别为 -/etc/shadow -和 -/etc/gshadow。这些程序将设置相应的锁,以防止文件损坏。寻找编辑器时,首先尝试环境变量 -\fB$VISUAL\fR,然后是环境变量 -\fB$EDITOR\fR,最后是默认编辑器 -\fBvi\fR(1)。 -.SH "选项" -.PP -\fBvipw\fR -和 -\fBvigr\fR -命令可以接受的选项有: -.PP -\fB\-g\fR, \fB\-\-group\fR -.RS 4 -编辑 group 数据库。 -.RE -.PP -\fB\-h\fR, \fB\-\-help\fR -.RS 4 -现实帮助信息并退出。 -.RE -.PP -\fB\-p\fR, \fB\-\-passwd\fR -.RS 4 -编辑 passwd 数据库。 -.RE -.PP -\fB\-q\fR, \fB\-\-quiet\fR -.RS 4 -安静模式。 -.RE -.PP -\fB\-R\fR, \fB\-\-root\fR\fICHROOT_DIR\fR -.RS 4 -Apply changes in the -\fICHROOT_DIR\fR -directory and use the configuration files from the -\fICHROOT_DIR\fR -directory\&. -.RE -.PP -\fB\-s\fR, \fB\-\-shadow\fR -.RS 4 -编辑 shadow 或 gshadow 数据库。 -.RE -.SH "环境变量" -.PP -\fBVISUAL\fR -.RS 4 -要使用的编辑器。 -.RE -.PP -\fBEDITOR\fR -.RS 4 -\fBVISUAL\fR -没有设置的情况下,使用的编辑器。 -.RE -.SH "文件" -.PP -/etc/group -.RS 4 -组账户信息。 -.RE -.PP -/etc/gshadow -.RS 4 -安全组账户信息。 -.RE -.PP -/etc/passwd -.RS 4 -用户账户信息。 -.RE -.PP -/etc/shadow -.RS 4 -安全用户账户信息。 -.RE -.SH "参见" -.PP -\fBvi\fR(1), -\fBgroup\fR(5), -\fBgshadow\fR(5), -\fBpasswd\fR(5), , -\fBshadow\fR(5)\&. |