X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,TW_MK,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Date: Tue, 11 Jan 2011 20:00:57 +0100 From: David Sastre To: cygwin AT cygwin DOT com Subject: Re: Proper Setting of mkpasswd and mkgroup Message-ID: <20110111190057.GB9075@jethro.local.lan> References: <021501cbb1b8$b118c340$134a49c0$@com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="neYutvxvOLaeuPCA" Content-Disposition: inline In-Reply-To: <021501cbb1b8$b118c340$134a49c0$@com> User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --neYutvxvOLaeuPCA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 11, 2011 at 10:55:09AM -0700, Gary Furash wrote: > Problem: > 1. When I create a file or such using cygwin, it says that the group is > "mkpasswd". This usually indicates that the Cygwin profile I'm logged on = is > not setup properly > 2. My work PC is part of a windows group. That same account is also a PC > administrator. > 3. My home PC is not part of a windows group. That same account is also a= PC > administrator. >=20 > What's the proper combination of MKPASSWD and MKGROUP commands to run? The > latter can "see" the windows group mentioned in step #2. I've even tried > manually hacking the password file so that FURASHG (my account) has the s= ame > number string after it that is after the number string in MKGROUP associa= ted > with the local PC administrator. Backup both files first (/etc/passwd and /etc/group). Try to rebuild your /etc/passwd and /etc/group files by issuing: $ mkpasswd -l [-d] > /etc/passwd $ mkgroup -l [-d] > /etc/group Please refer to the manpages of mkpasswd and mkgroup regarding the use=20 of -d/-D for machines inside a Domain. There are also detailed instructions in /etc/profile on how to deal with this. --=20 Huella de clave primaria: 0FDA C36F F110 54F4 D42B D0EB 617D 396C 448B 31EB --neYutvxvOLaeuPCA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk0sqOkACgkQYX05bESLMetI4wCffxJiN3OgoRLloOf1G2/v/f0k kU4AoLNWOL2fNyGi1l/C2YGTfTWIE/Yw =votI -----END PGP SIGNATURE----- --neYutvxvOLaeuPCA--