This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Wrong /home
- To: "Arthur I Schwarz" <Arthur_I_Schwarz at West dot Raytheon dot com>, cygwin at cygwin dot com, gp at familiehaase dot de
- Subject: Re: Wrong /home
- From: "Larry Hall (RFK Partners, Inc)" <lhall at rfk dot com>
- Date: Wed, 26 Sep 2001 13:36:09 -0400
OK, now I agree with a previous poster to this thread. Is HOME set in
your autoexec.bat? Must be set somewhere before bash starts. What
does it look like in command.com?
Larry Hall lhall@rfk.com
RFK Partners, Inc. http://www.rfk.com
118 Washington Street (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX
At 12:22 PM 9/26/2001, Arthur I Schwarz wrote:
>'cygcheck -s -r -v' output given below.
>
>The output shows that my home directory is:
>
> HOME = `/cygdrive/c/home2/schwarza'
>
>which is incorrect. This was my home directory under Cygwin-B20.1 but I
>thought that when I uninstalled B20.1 that all residual information was
>removed. In any case, I've tried to find just where HOME is exported during
>'bash --login -i' and have not been successful. What I have found is that
>in bash-2.05-7/shell.c there is a reference to 'getpwuid' in 'login'
>processing, which references /etc/passwd for information. I changed my
>'name' in /etc/passwd and verified that this change was in the output
>prompt, currently a two liner. First line is
>
> '</etc/passwd user name>@<disk name>',
>
>which in my case is 'schwarza@ARTHURSC'. But the home directory in
>/etc/passwd isn't used. Instead, the home directory used for the
>uninstalled B20.1 becomes my new home.
>
>I would like to look at 'getpwuid' to find out what it does. Anyone know
>where it might be located? I would really like to find out where in the
>'login' the HOME directory is found and exported. I intend to keep 'looking
>at the code' until it's found.
>
>The last point is that I changed the Registry after the initial problems
>where detected. This accounts for key entries of:
>
> /.../cygnus solutions and
> /.../cygnus solutions'
>
>and I do note that under /.../cygnust solutions' the '02' mount correctly
>identifies my home directory as /root/home/schwarza, but it wasn't used
>initially and I don't know what to make of it now.
>
>art
>
>
>---------------------------------------------------------------------------------------
>
>
> At 12:52 AM 9/26/2001, Arthur Schwarz wrote:
>
>After uninstall of B20.1 and installation of v1.3.3 my 'old' home directory
>(/cygdrive/c/home2/<name) became my home rather than my 'new' one
>(/home/<name). I've looked through the FAQ and the User's Guide, and
>looked through the source (bash-2.05-7/shell.c). I've changed my
>/etc/passwd to ensure that it is accessed by getpwuid in shell.c, and
>modified all of the 'cygnus solutions' entries in the Win98 registry to
>reference /home/<name as needed. In /etc/profile $HOME is used and I
>haven't found where $HOME is exported. The easy workaround is to put a
>.bashrc file changing $HOME in the 'old' home and just forget it. But I'd
>like to find out why this is happening and fix it (if it needs fixing) or
>do something to cause the 'new' home to be referenced at shell startup. Any
>idea what is going on?
>
>---------------------------------------------------------------------------------------
>
> I assume you're using bash --login and that your /etc/passwd entry points
>to /home/<name and that /home/<name exists. Too many assumptions?
>
> Maybe you should verify this.
>
> Output from cygcheck -s -r -v would make your environment clearer to
>those that don't have access to your machine. As I'm sure you're aware,
>your issue is a local configuration problem.
>
>
>
> Larry Hall lhall@rfk.com
> RFK Partners, Inc. http://www.rfk.com
> 118 Washington Street (508) 893-9779 - RFK Office
> Holliston, MA 01746 (508) 893-9889 - FAX
>
>
>----------------------------------------------------------------
>
>cygcheck -s -r -v
>
>
>Cygnus Win95/NT Configuration Diagnostics
>Current System Time: Wed Sep 26 08:19:03 2001
>
>Win9X Ver 4.10 build 67766446 A
>
>Path: /usr/local/bin
> /usr/bin
> /bin
> /cygdrive/c/USR/CYGWIN/CYGWIN~1/H-I586~1/BIN
> /cygdrive/c/USR/PERL/BIN
> /cygdrive/c/COMPIL~1/ADA/GNAT/BIN
> /cygdrive/c/WINDOWS
> /cygdrive/c/WINDOWS/COMMAND
> /cygdrive/c/PROGRA~1/BORLAND/CBUILD~1/BIN
> /cygdrive/c/WINDOWS
> /cygdrive/c/WINDOWS/COMMAND
>
>SysDir: C:\WINDOWS\SYSTEM
>WinDir: C:\WINDOWS
>
>PWD = `/cygdrive/c/home2/schwarza'
>USER = `schwarza'
>MAKE_MODE = `unix'
>HOME = `/cygdrive/c/home2/schwarza'
>
>WINCMD = `C:\Windows\Command'
>PERL = `c:\usr\perl\bin'
>COMSPEC = `C:\WINDOWS\COMMAND.COM'
>!C: = `C:\root\bin'
>CMDLINE = `bash --login -i'
>HOSTNAME = `ARTHURSC'
>MSDOS = `c:\windows\Command'
>TEX = `c:\usr\tex\bin\win32'
>WINDIR = `C:\WINDOWS'
>WINBOOTDIR = `C:\WINDOWS'
>PS1 = `\[\033]0;\w\007
>\033[32m\]\u@\h \[\033[33m\w\033[0m\]
>$ '
>MACHTYPE = `i686-pc-cygwin'
>OLDPWD = `/usr/bin'
>TEMP = `/cygdrive/c/WINDOWS/TEMP'
>SNDSCAPE = `C:\WINDOWS'
>BORLAND = `C:\PROGRA~1\BORLAND\CBUILD~1\BIN'
>TMP = `/cygdrive/c/WINDOWS/TEMP'
>SHLVL = `1'
>IMAGCK = `c:\usr\tex\Imagick'
>GNAT = `C:\COMPIL~1\ADA\GNAT\BIN'
>SHELL = `/bin/bash'
>HOSTTYPE = `i686'
>WINDOZ = `C:\Windows'
>OSTYPE = `cygwin'
>BIN = `c:\usr\990101.bin'
>TERM = `cygwin'
>CYGWINP = `c:\usr\cygwin\cygwin~1\H-i586~1\bin'
>_ = `/usr/bin/cygcheck'
>TZ = `PST8PDT7,M4.1.0/2,M10.5.0/2'
>
>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrd
>er\Start Menu\&Programs\Cygnus Solutions
> (default) = (unsupported type)
>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrd
>er\Start Menu\&Programs\Cygnus Solutions\Menu
> (default) = (unsupported type)
>HKEY_CURRENT_USER\Software\Cygnus Solutions
>HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
>HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
> (default) = `/cygdrive'
> cygdrive flags = 0x00000020
>HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
>HKEY_CURRENT_USER\Software\Cygnus Solutions'
>HKEY_CURRENT_USER\Software\Cygnus Solutions'\CYGWIN.DLL setup
>HKEY_CURRENT_USER\Software\Cygnus Solutions'\CYGWIN.DLL setup\b15.0
>HKEY_CURRENT_USER\Software\Cygnus Solutions'\CYGWIN.DLL setup\b15.0\mounts
>HKEY_CURRENT_USER\Software\Cygnus Solutions'\CYGWIN.DLL
>setup\b15.0\mounts\00
> (default) = `c:\root\usr'
> unix = `/usr'
> fbinary = 0x00000000
> fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions'\CYGWIN.DLL
>setup\b15.0\mounts\01
> (default) = `c:\kostabi'
> unix = `/kostabi'
> fbinary = 0x00000000
> fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions'\CYGWIN.DLL
>setup\b15.0\mounts\02
> (default) = `c:\root\home\schwarza'
> unix = `/root/home/schwarza'
> fbinary = 0x00000000
> fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions'\CYGWIN.DLL
>setup\b15.0\mounts\03
> (default) = `z:'
> unix = `/dev/z'
> fbinary = 0x00000001
> fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions'\CYGWIN.DLL
>setup\b15.0\mounts\04
> (default) = `b:'
> unix = `/dev/b'
> fbinary = 0x00000001
> fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions'\CYGWIN.DLL
>setup\b15.0\mounts\05
> (default) = `a:'
> unix = `/dev/a'
> fbinary = 0x00000001
> fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions'\CYGWIN.DLL
>setup\b15.0\mounts\06
> (default) = `c:\root\usr\distribution'
> unix = `/distribution'
> fbinary = 0x00000001
> fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions'\CYGWIN.DLL
>setup\b15.0\mounts\07
> (default) = `c:\crusader'
> unix = `/crusader'
> fbinary = 0x00000001
> fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions'\CYGWIN.DLL
>setup\b15.0\mounts\08
> (default) = `z:'
> unix = `/cdrom'
> fbinary = 0x00000001
> fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions'\CYGWIN.DLL
>setup\b15.0\mounts\09
> (default) = `c:\root\usr\i686-pc-cygwin\bin'
> unix = `/bin'
> fbinary = 0x00000001
> fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions'\CYGWIN.DLL
>setup\b15.0\mounts\0A
> (default) = `c:\kostabi\asep'
> unix = `/asep'
> fbinary = 0x00000000
> fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions'\CYGWIN.DLL
>setup\b15.0\mounts\0B
> (default) = `c:\kostabi\appl'
> unix = `/appl'
> fbinary = 0x00000000
> fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions'\CYGWIN.DLL
>setup\b15.0\mounts\0C
> (default) = `c:\kostabi\aaav'
> unix = `/aaav'
> fbinary = 0x00000000
> fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions'\CYGWIN.DLL
>setup\b15.0\mounts\0D
> (default) = `c:\Program Files\root'
> unix = `/'
> fbinary = 0x00000001
> fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions'\Cygwin
>HKEY_CURRENT_USER\Software\Cygnus Solutions'\Cygwin\mounts v2
> (default) = `/cygdrive'
> cygdrive flags = 0x00000022
>HKEY_CURRENT_USER\Software\Cygnus Solutions'\Cygwin\Program Options
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\GNUPro
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\GNUPro\i586-cygwin32
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\00
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\01
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\02
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\03
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\04
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\05
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\06
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\07
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\08
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\09
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\0A
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\0B
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\0C
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\0D
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\0E
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\0F
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\10
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\11
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\12
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\13
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\14
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\15
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\16
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\17
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\18
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\19
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\1A
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\1B
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\1C
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\1D
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/
> (default) = `C:\root'
> flags = 0x0000000a
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
> (default) = `C:/root/bin'
> flags = 0x0000000a
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
> (default) = `C:/root/lib'
> flags = 0x0000000a
>HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\Program Options
>
>a: fd N/A N/A
>c: hd FAT32 29283Mb 17% CP UN DISK1PART01
>d: hd FAT32 8048Mb 52% CP UN DISK1PART01
>e: cd N/A N/A
>f: cd N/A N/A
>
>C:\root\bin /usr/bin system binmode
>C:\root\lib /usr/lib system binmode
>C:\root / system binmode
>c: /cygdrive/c user textmode,noumount
>d: /cygdrive/d user textmode,noumount
>
>Found: C:\root\bin\bash.exe
>Found: C:\root\bin\cat.exe
>Found: C:\root\bin\cpp.exe
>Found: C:\root\bin\find.exe
>Found: c:\WINDOWS\COMMAND\find.exe
>Warning: C:\root\bin\find.exe hides c:\WINDOWS\COMMAND\find.exe
>Found: C:\root\bin\gcc.exe
>Found: C:\root\bin\gdb.exe
>Found: C:\root\bin\ld.exe
>Found: C:\root\bin\ls.exe
>Found: C:\root\bin\make.exe
>Found: c:\PROGRA~1\BORLAND\CBUILD~1\BIN\make.exe
>Warning: C:\root\bin\make.exe hides
>c:\PROGRA~1\BORLAND\CBUILD~1\BIN\make.exe
>Found: C:\root\bin\sh.exe
>
> 56k 2000/12/03 C:\root\bin\cygbz21.0.dll - os=4.0 img=1.0 sys=4.0
> "cygbz21.0.dll" v0.0 ts=2000/11/20 15:53
> 390k 2000/12/05 C:\root\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
> "cygtcl80.dll" v0.0 ts=2000/11/25 17:39
> 5k 2000/12/05 C:\root\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
> 10k 2000/12/05 C:\root\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
> "cygtclreg80.dll" v0.0 ts=2000/11/25 17:39
> 81k 2000/12/05 C:\root\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
> "cygitcl30.dll" v0.0 ts=2000/11/25 17:43
> 35k 2000/12/05 C:\root\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
> "cygitk30.dll" v0.0 ts=2000/11/25 17:43
> 623k 2000/12/05 C:\root\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
> "cygtk80.dll" v0.0 ts=2000/11/25 17:43
> 18k 2000/10/23 C:\root\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
> "cyggdbm.dll" v0.0 ts=2000/10/22 19:26
> 21k 2001/06/20 C:\root\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0
> "cygintl.dll" v0.0 ts=2001/6/20 10:09
> 45k 2001/07/04 C:\root\bin\cygjbig1.dll - os=4.0 img=1.0 sys=4.0
> "cygjbig1.dll" v0.0 ts=2001/7/3 20:25
> 119k 2001/06/06 C:\root\bin\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0
> "cygjpeg6b.dll" v0.0 ts=2001/6/5 21:27
> 163k 2001/05/06 C:\root\bin\cygpng2.dll - os=4.0 img=1.0 sys=4.0
> "cygpng2.dll" v0.0 ts=2001/5/5 21:05
> 45k 2001/04/25 C:\root\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
> "cygform5.dll" v0.0 ts=2001/4/24 22:28
> 26k 2001/04/25 C:\root\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
> "cygmenu5.dll" v0.0 ts=2001/4/24 22:27
> 156k 2001/04/25 C:\root\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
> "cygncurses++5.dll" v0.0 ts=2001/4/24 22:29
> 226k 2001/04/25 C:\root\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
> "cygncurses5.dll" v0.0 ts=2001/4/24 22:17
> 15k 2001/04/25 C:\root\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
> "cygpanel5.dll" v0.0 ts=2001/4/24 22:27
> 17k 2001/06/28 C:\root\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
> "cyghistory4.dll" v0.0 ts=2001/1/6 20:34
> 21k 2001/06/28 C:\root\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
> "cyghistory5.dll" v0.0 ts=2001/6/27 19:27
> 108k 2001/06/28 C:\root\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
> "cygreadline4.dll" v0.0 ts=2001/1/6 20:34
> 135k 2001/06/28 C:\root\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
> "cygreadline5.dll" v0.0 ts=2001/6/27 19:27
> 245k 2001/06/12 C:\root\bin\cygtiff3.dll - os=4.0 img=1.0 sys=4.0
> "cygtiff3.dll" v0.0 ts=2001/6/12 10:25
> 41k 2001/07/04 C:\root\bin\cygXpm-noX4.dll - os=4.0 img=1.0 sys=4.0
> "cygXpm-noX4.dll" v0.0 ts=2001/7/3 18:21
> 45k 2001/07/04 C:\root\bin\cygXpm-X4.dll - os=4.0 img=1.0 sys=4.0
> "cygXpm-X4.dll" v0.0 ts=2000/11/19 18:45
> 49k 2001/02/03 C:\root\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
> "cygz.dll" v0.0 ts=2001/2/3 12:35
> 701k 2001/09/13 C:\root\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
> "cygwin1.dll" v0.0 ts=2001/9/12 20:54
> Cygwin DLL version info:
> dll major: 1003
> dll minor: 3
> dll epoch: 19
> dll bad signal mask: 19005
> dll old termios: 5
> dll malloc env: 28
> api major: 0
> api minor: 46
> shared data: 3
> dll identifier: cygwin1
> mount registry: 2
> cygnus registry name: Cygnus Solutions
> cygwin registry name: Cygwin
> program options name: Program Options
> cygwin mount registry name: mounts v2
> cygdrive flags: cygdrive flags
> cygdrive prefix: cygdrive prefix
> cygdrive default prefix:
> build date: Wed Sep 12 23:54:31 EDT 2001
> shared id: cygwin1S3
>
>Use -h to see help about each section
>
--
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/