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 Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 25 Nov 2002 17:26:09 -0500 From: Lester Ingber To: cygwin AT cygwin DOT com Subject: P.S. can't set $USER under 1.3.16-1 Message-ID: <20021125222609.GA2876@ingber.com> Reply-To: Lester Ingber Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-URL-ALT: http://www.alumni.caltech.edu/~ingber/ I see some similar problem has been reported. To be clear, I have in my /etc/profile ----------8<---------- top cut 1/2 -> bottom 1/2 ----------->8---------- PATH=/usr/X11R6/bin:/usr/local/bin:/usr/bin:/bin:$PATH export CYGWIN="check_case:strict nontsec" USER="ingber" # Set up USER's home directory if [ -z "$HOME" ]; then HOME="/home/$USER" fi if [ ! -d "$HOME" ]; then mkdir -p "$HOME" fi export HOME USER for i in /etc/profile.d/*.sh ; do if [ -f $i ]; then . $i fi done export MAKE_MODE=unix export PS1='\[\033]0;\w\007 \033[32m\]\u@\h \[\033[33m\w\033[0m\] $ ' cd "$HOME" test -f ./.bashrc && . ./.bashrc ----------8<---------- bottom cut 1/2 <- top 1/2 ----------->8---------- The fix suggested for a similar problem was to add HOME to /cygwin.bat. I tried in my /cygwin.bat ----------8<---------- top cut 2/2 -> bottom 2/2 ----------->8---------- set USER=ingber set HOME=/home/ingber ----------8<---------- bottom cut 2/2 <- top 2/2 ----------->8---------- My login is smoother, but I still get logged on as the user in `id -un`, not "ingber" . Lester : From ingber AT ingber DOT com Mon Nov 25 16:17:58 2002 : Date: Mon, 25 Nov 2002 16:17:58 -0500 : From: Lester Ingber : To: cygwin AT cygwin DOT com : Subject: can't set $USER under 1.3.16-1 : : Up until now, through cygwin 1.3.15-2, I have set my $USER in /etc/profile : to a username different from `id -un`, with the same name set in /etc/passwd. : I have had no problems logging in. : : Now, under 1.3.16-1, an attempt is made to login in under `id -un` and : I cannot even telent to my perferred username? I reinstalled 1.3.15-2, : and everything works as before installing 1.3.16-1? : : What else must I do under 1.3.16-1 to set my own username? : : Lester -- Prof. Lester Ingber ingber AT ingber DOT com ingber AT alumni DOT caltech DOT edu www.ingber.com www.alumni.caltech.edu/~ingber -- 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/