This is the mail archive of the cygwin@cygwin.com 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: 1.5.5: sshd problem


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@john ~
> $ net helpmsg 5
>
> Access is denied.
>
> john@john ~
>
> >Please post the output of "ls -ln /bin/bash".
> >
> >
> john@john ~
> $ ls -ln /bin/bash
> -rwxrwxrwx    1 1000     545        527360 Oct 20 22:12 /bin/bash
>
> john@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@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@john ~
> $ /bin/ls -1 /proc/registry/HKEY_USERS/*/Software/Cygnus\ Solutions/Cygwin/mounts\ v2/
>
> john@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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/


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