[scponly] AG: Problem with Debian scponly 4.8 and winscp

Kaleb Pederson kaleb.pederson at gmail.com
Wed Feb 13 22:56:47 EST 2008


Let's take winscp out of the picture and figure out what's going on after all.

What happens when you do the following:

ssh yourUser at yourHost /bin/pwd

Please send me the level 2 debug output for the above.  Next, follow 
the 'strace' instructions that are available on the FAQ page, gzip, and then 
send them to me.  You can send them to me personally or to the list.  Note 
that your password would be visible in them, so it should be a temporary 
password or user account.

Now that we know your permissions and chroot are both setup correctly, I just 
need to figure out what's going on, and the logs might not be right in this 
case, but I haven't looked at much of the winscp compat code either.

Thanks.

--Kaleb



On Wednesday 13 February 2008, Alexander Maringer wrote:
> Hi,
>
> at the moment, I feel like a noob ...... Perhaps it is the matter
> because I tried anything before for a long time.
>
> So ... the output:
> # su -s /bin/bash - scponly
> scponly at MyHost:~$ cd /home/scponly
> scponly at MyHost:~$ cd /
> scponly at MyHost:/$ pwd
> /
> scponly at MyHost:/$ cd /home/scponly
> scponly at MyHost:~$ pwd
> /home/scponly
> scponly at MyHost:~$ ls -l bin/pwd
> -rwxr-xr-x 1 root root 21240 2008-02-12 14:40 bin/pwd
> scponly at MyHost:~$ ./bin/pwd
> /home/scponly
> scponly at MyHost:~$
>
> Everything, like it should be ..... *I think*
>
> Regards
>
> Alexander Maringer
>
> Kaleb Pederson schrieb:
> > Hi again Alexander,
> >
> > Ok, so now do the following to test out permissions and the ability to
> > execute the files:
> >
> > # su -s /bin/bash - scponly
> > $ cd /home/scponly
> > $ ls -l bin/pwd
> > $ ./bin/pwd
> >
> > Thanks.
> >
> > --Kaleb
> >
> > On Wednesday 13 February 2008, Alexander Maringer wrote:
> >> Hi,
> >>
> >> doing the chroot-stuff with the user root anything works fine:
> >> /home/scponly # chroot /home/scponly /bin/bash
> >> / # /bin/pwd
> >> /
> >>
> >> Trying to do it with user scponly I run into problems, because I only
> >> can use chroot as root, not as user: scponly at MyHost:~$ /usr/sbin/chroot
> >> /home/scponly /bin/bash
> >> /usr/sbin/chroot: cannot change root directory to /home/scponly:
> >> Operation not permitted
> >>
> >>
> >> Regards
> >>
> >>
> >> Alexander Maringer
> >>
> >>
> >> -----Ursprüngliche Nachricht-----
> >> Von: Kaleb Pederson [mailto:kaleb.pederson at gmail.com]
> >> Gesendet: Mittwoch, 13. Februar 2008 04:30
> >> An: Alexander Maringer
> >> Betreff: Re: [scponly] Problem with Debian scponly 4.8 and winscp
> >>
> >> As your on linux, you should be able to do something like the following:
> >>
> >> su -s /bin/bash - scponly
> >>
> >> You should be able to verify the chroot with the following:
> >>
> >> chroot /home/scponly /bin/bash
> >>
> >>
> >>
> >> _______________________________________________
> >> scponly mailing list
> >> scponly at lists.ccs.neu.edu
> >> https://lists.ccs.neu.edu/bin/listinfo/scponly
>
> _______________________________________________
> scponly mailing list
> scponly at lists.ccs.neu.edu
> https://lists.ccs.neu.edu/bin/listinfo/scponly





More information about the scponly mailing list