Re: TEST RELEASE: Cygwin 2.0.0-0.7

2015-04-17 Thread Jim Reisert AD1C
> New 2.0.0-0.7 test release:

I'm happy to report that Xwin now starts up straight away, even with
"missing" /etc/passwd and /etc/group files.

Thanks for fixing this!

-- 
Jim Reisert AD1C, , http://www.ad1c.us

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: TEST RELEASE: Cygwin 2.0.0-0.7

2015-04-17 Thread Jim Reisert AD1C
There's still something funky going on.  ssh won't recognize my
~/.ssh/config file.

With my existing passwd and group files, I get this error (notice that
the warned permissions are different that what "ls" reports):

-rw---+ 1 Jim Reisert None  205 Apr 17 06:19 .ssh/config

[JJR:~] $ ssh ad1c
@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE!  @
@@@
Permissions 0644 for '/cygdrive/D/home/.ssh/id_rsa' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/cygdrive/D/home/.ssh/id_rsa": bad permissions


If I move both passwd and group out-of-the-way, the config file is not
recognized at all!

-rw---+ 1 Jim Reisert None 205 Apr 17 06:19 .ssh/config

[JJR:~] $ ssh ad1c
ssh: Could not resolve hostname ad1c: Name or service not known

-- 
Jim Reisert AD1C, , http://www.ad1c.us

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: TEST RELEASE: Cygwin 2.0.0-0.7

2015-04-17 Thread Corinna Vinschen
On Apr 17 06:15, Jim Reisert AD1C wrote:
> > New 2.0.0-0.7 test release:
> 
> I'm happy to report that Xwin now starts up straight away, even with
> "missing" /etc/passwd and /etc/group files.
> 
> Thanks for fixing this!

Sure, thanks for your feedback!


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat


pgpG82d_JBGSF.pgp
Description: PGP signature


Re: TEST RELEASE: Cygwin 2.0.0-0.7

2015-04-17 Thread Corinna Vinschen
On Apr 17 06:27, Jim Reisert AD1C wrote:
> There's still something funky going on.  ssh won't recognize my
> ~/.ssh/config file.
> 
> With my existing passwd and group files, I get this error (notice that
> the warned permissions are different that what "ls" reports):
> 
> -rw---+ 1 Jim Reisert None  205 Apr 17 06:19 .ssh/config
> 
> [JJR:~] $ ssh ad1c
> @@@
> @ WARNING: UNPROTECTED PRIVATE KEY FILE!  @
> @@@
> Permissions 0644 for '/cygdrive/D/home/.ssh/id_rsa' are too open.
  ^^
   Another file?

> It is recommended that your private key files are NOT accessible by others.
> This private key will be ignored.
> Load key "/cygdrive/D/home/.ssh/id_rsa": bad permissions
> 
> 
> If I move both passwd and group out-of-the-way, the config file is not
> recognized at all!
> 
> -rw---+ 1 Jim Reisert None 205 Apr 17 06:19 .ssh/config
> 
> [JJR:~] $ ssh ad1c
> ssh: Could not resolve hostname ad1c: Name or service not known

I don't understand the reason for this message.  It does not exactly
point to a problem with the config file.  I think I need more
explanation here and a bit of detective work from your side...


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat


pgpxKHZNfvIRo.pgp
Description: PGP signature


Re: TEST RELEASE: Cygwin 2.0.0-0.7

2015-04-17 Thread Jim Reisert AD1C
I finally understand what happened.

In my /etc/passwd, I have configured a different home directory for
myself.  Without that file, it goes to /home/Jim Reisert which does
not exist!

Is there a way to change my default home directory without using
/etc/passwd, other than creating a symbolic link inside of /home?

- Jim

-- 
Jim Reisert AD1C, , http://www.ad1c.us

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: TEST RELEASE: Cygwin 2.0.0-0.7

2015-04-17 Thread Corinna Vinschen
On Apr 17 06:46, Jim Reisert AD1C wrote:
> I finally understand what happened.
> 
> In my /etc/passwd, I have configured a different home directory for
> myself.  Without that file, it goes to /home/Jim Reisert which does
> not exist!
> 
> Is there a way to change my default home directory without using
> /etc/passwd, other than creating a symbolic link inside of /home?

That's what is explained in https://cygwin.com/cygwin-ug-net/ntsec.html

The chapters you should be looking for are

  https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch-home

  E.g. this setting in /etc/nsswitch.conf would do the trick if you're
  the only user (but careful with sshd!):

Or perhaps

  https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch-desc

  Set "db_home: desc" and change the description field in your SAM
  according to the above document.


HTH,
Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat


pgpKujJ8fLeGQ.pgp
Description: PGP signature


Re: TEST RELEASE: Cygwin 2.0.0-0.7

2015-04-17 Thread Corinna Vinschen
On Apr 17 15:16, Corinna Vinschen wrote:
> On Apr 17 06:46, Jim Reisert AD1C wrote:
> > I finally understand what happened.
> > 
> > In my /etc/passwd, I have configured a different home directory for
> > myself.  Without that file, it goes to /home/Jim Reisert which does
> > not exist!
> > 
> > Is there a way to change my default home directory without using
> > /etc/passwd, other than creating a symbolic link inside of /home?
> 
> That's what is explained in https://cygwin.com/cygwin-ug-net/ntsec.html
> 
> The chapters you should be looking for are
> 
>   https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch-home
> 
>   E.g. this setting in /etc/nsswitch.conf would do the trick if you're
>   the only user (but careful with sshd!):

  db_home: /cygdrive/d/home

> Or perhaps
> 
>   https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch-desc
> 
>   Set "db_home: desc" and change the description field in your SAM
>   according to the above document.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat


pgptASafg3ZTk.pgp
Description: PGP signature


Re: TEST RELEASE: Cygwin 2.0.0-0.7

2015-04-17 Thread Jim Reisert AD1C
>   https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch-home

Very helpful, Corinna! Working as advertised.

- Jim

-- 
Jim Reisert AD1C, , http://www.ad1c.us

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: TEST RELEASE: Cygwin 2.0.0-0.7

2015-04-17 Thread Steven Penny
On Fri, Apr 17, 2015 at 7:46 AM, Jim Reisert AD1C wrote:
> Is there a way to change my default home directory without using
> /etc/passwd, other than creating a symbolic link inside of /home?

You can modify /etc/fstab like this

c:/home /home . acl

Example
http://github.com/svnpenn/dotfiles/blob/24302d29ef7158df1aa3a584131c810/fstab#L2

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple