This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: More testing needed: New passwd/group AD/SAM integration


Corinna Vinschen wrote:
Thanks for testing.  If you find any other problems or annoyances,
please speak up.


Thanks,
Corinna


I have a problem with ssh using this on a domain machine.

$ uname -a
CYGWIN_NT-6.3 cbreisch-win8 1.7.30s(0.272/5/3) 20140514 11:29:16 x86_64 Cygwin

I had ssh set up and working properly before installing the snapshot.

$ cat /etc/nsswitch.conf
passwd: files
group: files

If I leave it using files, I have no problems.

So, I change it to db and attempt to restart sshd

$ cat /etc/nsswitch.conf
passwd: db
group: db

# cygrunsrv -E sshd
# cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.

Add files back in:

$ cat /etc/nsswitch.conf
passwd: db files
group: db files

$ cygrunsrv -S sshd

works perfectly.

It appears to have something to do with the cyg_server account. Perhaps because I set it up before I installed the snapshot? Why would that matter?

In any event, when set to use files, I can do this:

$ id cyg_server
uid=1008(cyg_server) gid=513(None) groups=513(None),0(root),545(Users)

when only using db, I get

$ id cyg_server
id: cyg_server: no such user

cyg_server does exist on the machine:

$ net users

User accounts for \\CBREISCH-WIN8

-------------------------------------------------------------------------------
Administrator            Chris                    clfs
cyg_server               Guest                    LocalAdmin
man                      sshd
The command completed successfully.

and is in /etc/passwd

$ grep cyg_server /etc/passwd
cyg_server:unused:1008:513:Privileged server,U-CBREISCH-WIN8\cyg_server,S-1-5-21-2077790098-1200989767-2685255527-1008:/cygdrive/d/cygwin/root/var/empty:/bin/bash

Interesting, I just noticed that it says /cygdrive/d/cygwin/root... There's no such path.

$ ls /cygdrive/d/cygwin/root
ls: cannot access /cygdrive/d/cygwin/root: No such file or directory

I changed my /cygdrive mount to /win

but even /win/d/cygwin/root doesn't exist. .../cygwin/root is from an old install.

$ ls /win/d/cygwin/root
ls: cannot access /win/d/cygwin/root: No such file or directory





--
Chris J. Breisch

--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]