delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
To: | cygwin AT cygwin DOT com |
X-Injected-Via-Gmane: | yes |
Path: | not-for-mail |
From: | Andrew DeFaria <Andrew AT DeFaria DOT com> |
Newsgroups: | gmane.os.cygwin |
Subject: | Re: No home directory on fresh setup |
Date: | Thu, 21 Feb 2002 07:47:42 -0800 |
Lines: | 34 |
Message-ID: | <3C75169E.90900@DeFaria.com> |
References: | <5219830074 DOT 20020221152023 AT syntrex DOT com> |
NNTP-Posting-Host: | dsl-64-195-250-225.telocity.com |
Mime-Version: | 1.0 |
X-Trace: | quimby2.netfonds.no 1014306525 14865 64.195.250.225 (21 Feb 2002 15:48:45 GMT) |
X-Complaints-To: | usenet AT quimby2 DOT netfonds DOT no |
NNTP-Posting-Date: | 21 Feb 2002 15:48:45 GMT |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 |
X-Accept-Language: | en,ru |
Pavel Tsekov wrote: > Hello Jan, > > Thursday, February 21, 2002, 2:50:36 PM, you wrote: > > VJvd> A fresh installation of the latest cygwin results in no home directory. One > VJvd> enters in /usr/bin/<user>. > > This problem is not new and it's already fixed in CVS sources. It's > specific to Win9x/ME installations only. > > For more details: http://sources.redhat.com/ml/cygwin/2002-01/msg01903.html > > If you intend to add new users (via mkpasswd) to your current > installation, have in mind that the mkpasswd program should be > passed the -p or --path-to-home option in order to add the > appropriate entry in /etc/passwd. I've always wondered, why not simply take the home path that Windows generates? When I run mkpassed I use -d because I'm in a domain (which, BTW, I think the Cygwin install should do by default and if mkpasswd cannot contact the domain controller then it should switch to -l) I get a path in the HOME field to the users home directories. I later scripted this to change entries like \\<server>\Users\${USER}$ (don't know why the domain controller has trailing $'s) to /home/${USER} and ensure that \\<server>\Users is mounted to /home later on. Finally I have changed /etc/profile to grab this HOME directory field from passwd, check to make sure it's a valid directory then set $HOME to it. Otherwise echo a warning and create a /home/${USER} local home directory. I also export the SHELL to avoid that problem. /etc/profile is symlinked to a global /etc/profile as is /etc/passwd and /etc/group. This makes maintaince easy and global. However I've found that telnet and rlogin do not like a symlinked /etc/passwd or /etc/group but only on NT 4. My setup script therefore copies the current global /etc/passwd, which is a problem but I don't know of a better fix. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |