This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: More testing needed: New passwd/group AD/SAM integration
- From: "Chris J. Breisch" <chris dot ml at breisch dot org>
- To: cygwin at cygwin dot com
- Date: Fri, 16 May 2014 16:35:09 -0400
- Subject: Re: More testing needed: New passwd/group AD/SAM integration
- Authentication-results: sourceware.org; auth=none
- References: <f5biop9x55t dot fsf at troutbeck dot inf dot ed dot ac dot uk> <20140513145247 dot GQ2436 at calimero dot vinschen dot de> <20140513161626 dot GT2436 at calimero dot vinschen dot de> <f5ba9aliqv0 dot fsf at troutbeck dot inf dot ed dot ac dot uk> <20140513164122 dot GU2436 at calimero dot vinschen dot de> <f5b61l9io4h dot fsf at troutbeck dot inf dot ed dot ac dot uk> <20140513191732 dot GX2436 at calimero dot vinschen dot de> <f5boaz1gz3d dot fsf at troutbeck dot inf dot ed dot ac dot uk> <20140514113659 dot GD2436 at calimero dot vinschen dot de> <f5bvbt8e9ao dot fsf at troutbeck dot inf dot ed dot ac dot uk> <20140514150654 dot GF2436 at calimero dot vinschen dot de>
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