Search the web
Sign In
New User? Sign Up
nslu2-general
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Only root can SFTP?   Topic List   < Prev Topic  |  Next Topic >
Reply | Forward  | 
Re: Only root can SFTP?

in #nslu2-linux

16:01 < AdamBaker> Progress I think - I've tried to recreate the
scenario of how bash gets started by openssh and the result is bash
segfaulting. Unfortunately the stack is corrupted in the core dump.
16:12 < AdamBaker> It seems that when used with the -c option the
latest bash must be started with a valid $PWD in the environment. I
can verify that (after sleeping) by adding it to the environment in my
wrapper.

The good news is that I found the problem starts with bash 3.2 patch
level 11, and it has a lot to do with getcwd. It turns out one of the
configuration detection was not performed because of cross
compilation, and the default value has bad interaction with the patch
level 11 getcwd related change.

The latest bash_3.2.17-1 solved the problem. I also changed the bash
version number like `bash --version`.

Cheers,


-Brian


--- In nslu2-general@yahoogroups.com, "Brian Zhou" <b88zhou@...> wrote:
>
> AdamBaker in #nslu2-linux investigated some more on this problem. And
> looks like bash 3.2-3 is the culprit.
>
> Root does not have this problem simply because root is not using bash.
>
> I can confirm that reverting to bash_3.2-2 makes everything working
again.
>
> -Brian Zhou
>
> --- In nslu2-general@yahoogroups.com, "Michael" <jm@> wrote:
> >
> > Hi, I recently did an "ipkg upgrade" and for whatever reason normal
> > users can no longer use SFTP or SCP. A normal user can SSH just fine,
> > but SFTP results in a connection closed message.
> >
> > Anyone have any idea what could be causing this? I've tested
> > /opt/libexec/sftp-server and it seems to have the right permissions
> > and is runnable by normal users.
> >
> > /var/log/messages says the following for the login attempt:
> > <35>Jun 27 14:18:52 sshd[525]: error: Could not get shadow information
> > for root
> > <38>Jun 27 14:18:53 sshd[525]: Accepted password for root from
> > 128.171.157.174 port 2550 ssh2
> > <38>Jun 27 14:18:53 sshd[525]: subsystem request for sftp
> >
> > However these messages are identical to a successful login.
> >
> > Any help would be appreciated.
> >
> > Cheers,
> > --Mike
> >
>





Tue Jul 17, 2007 1:34 am

brian_zhou
Offline Offline
Send Email Send Email

Forward
 | 
Expand Messages Author Sort by Date

Hi, I recently did an "ipkg upgrade" and for whatever reason normal users can no longer use SFTP or SCP. A normal user can SSH just fine, but SFTP results in...
Michael
mikewinter2000
Offline Send Email
Jun 28, 2007
12:30 am

I am getting this too, with my unslung CS-406 Cube Station. Any help would be much appreciated. Simon...
Simon J. Melhuish
sjmelhuish
Offline Send Email
Jul 5, 2007
12:00 pm

AdamBaker in #nslu2-linux investigated some more on this problem. And looks like bash 3.2-3 is the culprit. Root does not have this problem simply because root...
Brian Zhou
brian_zhou
Offline Send Email
Jul 16, 2007
10:43 pm

in #nslu2-linux 16:01 < AdamBaker> Progress I think - I've tried to recreate the scenario of how bash gets started by openssh and the result is bash ...
Brian Zhou
brian_zhou
Offline Send Email
Jul 17, 2007
1:35 am

Thank you Brian - I'm running again now with sftp to my slug, and no doubt would be to the Cube Station had it not had a hardware failure! Cheers, Simon...
Simon Melhuish
sjmelhuish
Offline Send Email
Jul 28, 2007
9:57 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help