Mail Archives: cygwin/2002/11/25/17:26:33
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 <ingber AT ingber DOT com>
: 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/
- Raw text -