[scponly] Workaround for the "groups" prob under chroot and WinSCP

Marcin Pacyna mpacyna at nexvision.com
Wed May 14 18:06:52 EDT 2003


Hello,

I think I have a workaround for the "groups" problem (ie. groups is a shell
script which can't be executed under chroot because there is no shell)

I wrote/compiled a fake 'groups' program in C which returns the string
'users' and a return code 0 then replaced the shell script version with the
binary one and WinSCP no longer complains:

groups.c:
=========================
#include <stdio.h>

main()
{
        printf("users\n");
        return 0;
}
=========================

Regards,

Marcin Pacyna




More information about the scponly mailing list