• Bug#245017: tftpd-hpa #245017 reproducible for me too

    From Martin Pool@1:229/2 to All on Fri Aug 13 11:00:29 2004
    From: [email protected]

    This is reproducible for me too.

    initgroups seems to call syscall setgroups32() regardless of whether
    the process is root or not, and regardless of whether the process
    already has the requested groups. setgroups32() fails with EPERM if
    the process is not root, even if the groups are already as requested.
    (Seems reasonable to me.) Thus the failure.

    It works OK if inetd.conf is changed to run tftpd as root, as Jaakko
    said.

    So the fix is either

    0- Just document that it has to be started as root, and make the
    install script do that.

    1- Change tftpd so that if it's started as non-root, it doesn't try
    to chroot, change privileges, etc.

    0 is easier; 1 is probably neater.

    I'm going to change the tags to that effect.

    --
    Martin

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.4 (GNU/Linux)

    iD8DBQFBHHOLPGPKP6Cz6IsRAr4VAJ90/gJwcitydgCq+7pwLRIzfrjxfgCeJbwM GJWjaPZxoDqqa52XNdfoEgg=
    =ZTY2
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)