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 Message-ID: <3E14B9ED.2318E8C9@swipnet.se> Date: Thu, 02 Jan 2003 23:15:09 +0100 From: a12 X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT cygwin DOT com, Igor Pechtchanski Subject: Re: Cygwin home dir=/cygwin/c (not /home/) References: Content-Type: multipart/mixed; boundary="------------34F4A4119F6FE2767AA1B775" --------------34F4A4119F6FE2767AA1B775 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello Igor, Thank you for your reply. Following your reply I have rebuilt /etc/group and /etc/passwd /etc/group: SYSTEM:S-1-5-18:18: none:S-1-5-21-18958337-794100916-1409357915-513:513: admins:S-1-5-32-544:544: backup:S-1-5-32-551:551: guests:S-1-5-32-546:546: power:S-1-5-32-547:547: replicator:S-1-5-32-552:552: users:S-1-5-32-545:545: domain:S-1-5-21-220523388-688789844-725345543-513:10513: /etc/passwd: SYSTEM:*:18:544:,S-1-5-18:: admins:*:544:544:,S-1-5-32-544:: guest:*:501:513:U-GJ2QF0J\Guest,S-1-5-21-18958337-794100916-1409357915-501:/home/Guest:/bin/bash isoft:*:1002:513:RR isoft,U-GJ2QF0J\isoft,S-1-5-21-18958337-794100916-1409357915-1002:/home/isoft:/bin/bash patrol:*:1015:513:patrol,U-GJ2QF0J\patrol,S-1-5-21-18958337-794100916-1409357915-1015:/home/patrol:/bin/bash sshd:*:1016:513:sshd privsep,U-GJ2QF0J\sshd,S-1-5-21-18958337-794100916-1409357915-1016:/var/empty:/bin/bash sysaccount:*:1000:513:U-GJ2QF0J\sysaccount,S-1-5-21-18958337-794100916-1409357915-1000:/home/sysaccount:/bin/bash magr40:*:12085:10513:magr40,U-TCAD\magr40,S-1-5-21-220523388-688789844-725345543-102085:/home/magr40:/bin/bash Whether I login locally as user 'sysaccount' or domain user 'magr40', the problem persists: HOME=/cygdrive/c HOMEDRIVE=C: HOMEPATH=\ /etc/profile is enclosed. Any more hints ? Igor Pechtchanski wrote: > On Tue, 31 Dec 2002, a12 wrote: > > > Hello, > > I have just installed the latest Cygwin release on one PC. > > The two issues you mention are unrelated. See below. > > > It is up and running OK, except that all local users login into > > /cygdrive/c instead of /home/. > > Do you have the /etc/passwd and /etc/group files? If you do, are any of > the local users in /etc/passwd? What is their home directory set to? > Try rebuilding your /etc/passwd and /etc/group: > > $ for i in (/etc/passwd /etc/group); do mv $i ${i}-backup; done > $ mkpasswd -l > /etc/passwd > $ mkgroup -l > /etc/group > > and see if you still get that problem. > > > The length of PATH in DOS is 97 characters, and in cygwin 148 > > characters: > > > > Path=C:\WINNT\System32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Centura2.0\;C:\cygwin\bin > > > > 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 > > 1 2 3 4 5 6 7 8 9 0 1 2 3 4 > > > > /usr/local/bin:/usr/bin:/bin:Path=C:/WINNT/System32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/c/Program Files/Centura2.0/:/usr/bin > > > > What have I missed ? > > The fact that Cygwin translates the Windows path to a POSIX path using the > mount information. Also the fact that you have "Path=" as part of the > VALUE of the PATH variable. > Igor > -- > http://cs.nyu.edu/~pechtcha/ > |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu > ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com > |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski > '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! > > Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk! > -- /usr/games/fortune > > -- > 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/ --------------34F4A4119F6FE2767AA1B775 Content-Type: text/plain; charset=us-ascii; name="profile" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="profile" PATH="/usr/local/bin:/usr/bin:/bin:$PATH" unset DOSDRIVE unset DOSDIR unset TMPDIR unset TMP #mwe: set the umask to allow for creation of files with 644 and directories # with 755. umask 022 USER="`id -un`" #mwe: set a HOSTNAME variable to the host name in lower case letters export HOSTNAME=`hostname|tr '[A-Z]' '[a-z]'` # Set up USER's home directory if [ -z "$HOME" ]; then HOME="/home/$USER" fi if [ ! -d "$HOME" ]; then mkdir -p "$HOME" fi #mwe: create a .inputrc file that allows for case insensitive file/directory #mwe: completion if [ ! -e "$HOME/.inputrc" ]; then echo 'set completion-ignore-case on' > $HOME/.inputrc chmod 644 $HOME/.inputrc fi export HOME USER for i in /etc/profile.d/*.sh ; do if [ -f $i ]; then . $i fi done export MAKE_MODE=unix #mwe: There may be cases when you log on using ASH (/bin/sh) rather than BASH. # in this case, you'll have to set up the prompt and lack of aliases # differently. if [ ! -z "$BASH" ]; then #mwe: set the prompt to include [user AT host], current working directory, # {history number} and either $ or #. export PS1='[$USER@$HOSTNAME]\w:{\!}:\$ ' test -f ./.bashrc && . ./.bashrc #mwe: if aliases files exist, read them. test -f /etc/sh_aliases && . /etc/sh_aliases test -f ./.aliases && . ./.aliases else #mwe: Since Ash doesn't support aliases, we'll use a shell function to replace # the regular "cd" command with one that changes directory AND changes the # prompt to reflect the current directory. cd() { chdir $1 export PS1="[$USER@$HOSTNAME]`pwd`:\$ " } fi #mwe: Finally, change to your home directory. This also sets the inital Ash # prompt. cd $HOME --------------34F4A4119F6FE2767AA1B775 Content-Type: text/plain; charset=us-ascii -- 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/ --------------34F4A4119F6FE2767AA1B775--