cygwin.rst
changeset 2496 1251d8e57794
parent 2495 a90ed5421848
child 2497 8407a34a1b5d
equal deleted inserted replaced
2495:a90ed5421848 2496:1251d8e57794
    93 
    93 
    94   set LANG=ru_RU.cp1251
    94   set LANG=ru_RU.cp1251
    95 
    95 
    96 Altering ``LANG`` for anything other then ``C`` cause only problems, when you get help and error
    96 Altering ``LANG`` for anything other then ``C`` cause only problems, when you get help and error
    97 messages in non-English. It is mostlry impossible to search for keywords, when text are translated.
    97 messages in non-English. It is mostlry impossible to search for keywords, when text are translated.
       
    98 
       
    99 Users
       
   100 =====
       
   101 
       
   102 Cygwin allow complex mapping Windows accounts to POSIX:
       
   103 
       
   104 https://cygwin.com/cygwin-ug-net/ntsec.html
       
   105   POSIX accounts, permission, and security.
       
   106 
       
   107 Modern Cygwin (v3.x) relies on ``/etc/nsswitch.conf`` for user settings. That means there are no
       
   108 ``/etc/passwd`` & ``/etc/group`` and user home directory and login shell is defined according to
       
   109 ``nsswitch.conf``.
       
   110 
       
   111 Earlier Cygwin used ``/etc/passwd`` & ``/etc/group`` and sometimes you were required to regenerate
       
   112 them::
       
   113 
       
   114   $ mkpasswd -d | grep $yourlogin > /etc/passwd
       
   115   $ mkpasswd -l > /etc/passwd
       
   116   $ mkgroup -l > /etc/group
    98 
   117 
    99 Documentation
   118 Documentation
   100 =============
   119 =============
   101 
   120 
   102 Cygwin C API man pages and user guide manuals available in ``cygwin-doc``
   121 Cygwin C API man pages and user guide manuals available in ``cygwin-doc``
   303 https://cygwin.com/faq/faq.html#faq.using.fixing-fork-failures
   322 https://cygwin.com/faq/faq.html#faq.using.fixing-fork-failures
   304   How do I fix fork() failures?
   323   How do I fix fork() failures?
   305 https://chromium.googlesource.com/chromium/src/+/master/docs/cygwin_dll_remapping_failure.md
   324 https://chromium.googlesource.com/chromium/src/+/master/docs/cygwin_dll_remapping_failure.md
   306   Handling repeated failures of rebaseall to allow cygwin remaps.
   325   Handling repeated failures of rebaseall to allow cygwin remaps.
   307 
   326 
   308 Recreate /etc/passwd and /etc/groups.
       
   309 =====================================
       
   310 ::
       
   311 
       
   312   $ mkpasswd -d | grep $yourlogin > /etc/passwd  # if you in Windows domain
       
   313   $ mkpasswd -l > /etc/passwd                    # if you in Windows domain
       
   314 
       
   315   $ mkgroup -l > /etc/group
       
   316 
       
   317 Adding mount points
   327 Adding mount points
   318 ===================
   328 ===================
   319 
   329 
   320 In Cygwin the 3rd parameter (FS type) has special meaning:
   330 In Cygwin the 3rd parameter (FS type) has special meaning:
   321 
   331