This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Wrong PATH and other env after starting bash
At 03:56 AM 4/25/2005, you wrote:
>Dave Korn <dave.korn <at> artimi.com> writes:
>
>>
>> ----Original Message----
>> >From: david.balazic
>> >Sent: 22 April 2005 16:12
>
>> > Besides, now I reinstalled base-passwd and have a good /etc/passwd
>>
>> No, you don't. If all your files are listed as having group ownership
>> "mkgroup_l_d", that means that the /etc/group file is bad. Since
>> base-passwd creates that as well, it means /etc/passwd is probably no good
>> either.
>>
>> Are you in a windows domain? The default setup only creates local machine
>> accounts in /etc/passwd and /etc/group. If you're logged in as a network
>> user it won't know who you are. That could be the problem.
>
>Yes, I am in a windows domain. (But my UID is correctly recognised :
>the id command returns uid=11135(stein) gid=10545(mkgroup_l_d);
>the group seems wrong thou)
Yep, then that's fine. If you install with a domain user, the '/etc/passwd'
and '/etc/group' file will be created with the '-c' flag rather than the
'-d' flag, since it's simpler and quicker. There's benefits to regenerating
these files with the '-d' flag, though if you're part of a large domain, this
may take some time. 'mkgroup_l_d' maps to gid 10545 which maps to 'Domain
Users', which your domain user will be a part of. This is likely to be
enough for you to work, unless your id is part of lots of other domain
groups that you need Cygwin to understand. And if that's the case, you
need to rerun 'mkpasswd' and 'mkgroup' with the '-d' flag.
My recommendation is to check your home path as specified in your
'/etc/passwd'. It will likely point to the place that Windows considers
your home. If that's not what you want for Cygwin, use the '-p' flag with
'mkpasswd' and specify where you want your home to be. Looking at your
'cygcheck' output, it seems that someone somewhere is setting your $HOME
environment variable in the Windows environment. This will override your
'/etc/passwd' setting. If you don't require $HOME set in your Windows
environment, remove it. If you do require it, you'll need decide whether
having it set to 'c:/Documents and Settings/stein' is appropriate for both
environments. If not, the only suggestion I can give you is to make sure
that $HOME gets unset in your 'cygwin.bat' file before starting 'bash'.
Then Cygwin will use the home directory specified in your '/etc/passwd'.
If the above doesn't help resolve the issues you're seeing, I agree with Dave
that it makes sense to just start over. Uninstall and reinstall everything.
This may not be ideal but it will at least give a known starting point from
which you can logically proceed.
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
838 Washington Street (508) 893-9889 - FAX
Holliston, MA 01746
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/