Richard Duran wrote: > > We are running an "automounter" service as a DomainAdmin (because > LocalSystem doesn't have access to networked items). When we ssh into > the box we can see all the network drives under "/cygdrive". However, > when we set up ssh-passthru to that [EMAIL PROTECTED] can connect to > [EMAIL PROTECTED] without need to authenticate. Then upon > logging in, only the local drives are visible to the user. Removing the > entry in $HOME/.ssh/authorized_keys fixes the issue, but we need to be > able to have passthru access. We tried having sshd run as the same > DomainUser, but then only passthru works. When a password is requested, > a permission denied error is returned even though the correct password > is entered. > > Any suggestions?
With respect to your last issue, i.e. sshd runs as the same DomainUser, there is no passthru, and the correct password is not accepted: - this problem should not happen on recent versions of Windows (not sure exactly since when). - to fix it on any version of Windows, you can easily patch sshd as below (I just tried it) and edit /etc/passwd to replace the entry "unused_by_nt/2000/xp" by the output of the command "crypt your_passwd" your_passwd can be anything, not necessarily your Windows password. Pierre /usr/src/openssh-3.7.1p2-2> diff -up auth-passwd.c~ auth-passwd.c --- auth-passwd.c~ 2003-09-18 04:26:48.001000000 -0400 +++ auth-passwd.c 2004-02-23 17:15:48.871792000 -0500 @@ -82,7 +82,7 @@ auth_password(Authctxt *authctxt, const } # endif # ifdef HAVE_CYGWIN - if (is_winnt) { + if (is_winnt && pw->pw_uid != geteuid()) { HANDLE hToken = cygwin_logon_user(pw, password); if (hToken == INVALID_HANDLE_VALUE) -- 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/