Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Thu, 13 Nov 2003 21:02:05 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: John Pye cc: cygwin AT cygwin DOT com Subject: Re: 1.5.5: sshd problem In-Reply-To: <3FB4359A.3030204@student.unsw.edu.au> Message-ID: References: <3FB42AA5 DOT 9090302 AT curioussymbols DOT com> <3FB4359A DOT 3030204 AT student DOT unsw DOT edu DOT au> Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 14 Nov 2003, John Pye wrote: > Well... This is looking weird now :-) > In response to your suggestions, Igor... > > >Access is denied. > > > >At a guess, your sshd doesn't have permissions to execute bash. > > > > > > $ net helpmsg 5 > > john AT john ~ > $ net helpmsg 5 > > Access is denied. > > john AT john ~ > > >Please post the output of "ls -ln /bin/bash". > > > > > john AT john ~ > $ ls -ln /bin/bash > -rwxrwxrwx 1 1000 545 527360 Oct 20 22:12 /bin/bash > > john AT john ~ > $ > > Why are those numbers like that? 1000 and 545? Shouldn't they read my > username? No, the "-n" option to ls forces it to output numeric values instead. > Some of /etc/passwd: > > SYSTEM:*:18:544:,S-1-5-18:: > Administrators:*:544:544:,S-1-5-32-544:: > Administrator:unused_by_nt/2000/xp:500:513:U-JOHN\Administrator > john:unused_by_nt/2000/xp:1000:513:John Pye,U-JOHN\john,S-1-5-2 > sshd:unused_by_nt/2000/xp:1004:513:sshd privsep,U-JOHN\sshd,S-1 > > Also... > > john AT john ~ > $ cat /etc/group > SYSTEM:S-1-5-18:18: > None:S-1-5-21-1960408961-1647877149-725345543-513:513: > Administrators:S-1-5-32-544:544: > Backup Operators:S-1-5-32-551:551: > Guests:S-1-5-32-546:546: > Power Users:S-1-5-32-547:547: > Replicator:S-1-5-32-552:552: > Users:S-1-5-32-545:545: > > How would /bin/bash have become chmod 777 ? That's the default mode Windows gives it. This should work, but somehow doesn't... Can sshd get to all the necessary files and directories? Look at the permissions on /etc and the files in it, as well as /bin. > >Also, please post the output of "mount -m" and > >"/bin/ls -1 /proc/registry/HKEY_USERS/*/Software/Cygnus\ Solutions/Cygwin/mounts\ v2/". > > > john AT john ~ > $ /bin/ls -1 /proc/registry/HKEY_USERS/*/Software/Cygnus\ Solutions/Cygwin/mounts\ v2/ > > john AT john ~ > $ Ok, looks like all your mounts are system mounts, unless you simply don't have the permission to read the registry keys for the SYSTEM user... > Thanks for the suggestions, Igor > JP Hmm, try looking for wrong directory permissions, that's my only guess at this point... Sorry. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- 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/