Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <023814FAC196D5119E4A00D0B76C0F9805205E@mmuc.definiens.com> From: "Bleyer, Michael" To: "'Bernard Dautrevaux'" , "'Peter Buckley'" Cc: "'cygwin AT cygwin DOT com'" Subject: RE: login account is "Administrator" not "username" Date: Mon, 18 Mar 2002 21:24:41 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Thanx for your quick advice (it works). May I suggest an extension (add to FAQ?): change the batch file cygwin.bat as follows: ### snip ### @echo off C: chdir \cygwin bin\grep -q %USERNAME%: etc\passwd IF ERRORLEVEL 1 GOTO setuppass goto start :setuppass bin\mkpasswd -l > etc\passwd bin\mkpasswd -d | grep %USERNAME% >> etc\passwd :start chdir \cygwin\bin bash --login -i ### snap ### This checks if the WinNT domain USERNAME is already in the passwd file. If not, it gets appended. So this works automatically even with a user switching machines (first time login) without the necessity to add all domain users to every machine. Of course in big domains mkpasswd -d causes a delay, but that will only happen once during first-time login. Alternatively, how about an option/script that runs from setup.exe, by default asking to add the current WinNT user to the passwd file? greetings, Michael -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/