[scponly] AG: Problem with Debian scponly 4.8 and winscp
Alexander Maringer
maringer at maringer-it.de
Wed Feb 13 11:40:08 EST 2008
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
>>
>
>
>
More information about the scponly
mailing list