This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

P.S. can't set $USER under 1.3.16-1


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@ingber.com Mon Nov 25 16:17:58 2002
: Date: Mon, 25 Nov 2002 16:17:58 -0500
: From: Lester Ingber <ingber@ingber.com>
: To: cygwin@cygwin.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@ingber.com  ingber@alumni.caltech.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]