lkml.org 
[lkml]   [1998]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: NFS and setuid programs fails on 2.1
    >>>>> "Alan" == Alan Cox <alan@lxorguk.ukuu.org.uk> writes:

    Alan> Ok send me the example again (I didnt keep it - I should have) I'll look at
    Alan> it this end

    #!/bin/sh

    file1=${1-/mnt/kernel/temp}
    user=hanneke

    # Now execute a suid program by some other user.
    su $user -c date > $file1

    ls -l $file1

    # Cleanup afterwards
    rm -f /tmp/ls $file1


    --
    ----------------------------------------------------------------------
    telephone: +31 33 455 85 84 Tasking Software BV
    fax: +31 33 455 10 05 P.O. Box 899
    email: kees_bakker@tasking.com 3800 AW Amersfoort
    WWW: http://www.tasking.com The Netherlands
    ----------------------------------------------------------------------
    ----- Quality Development Tools Worldwide -----
    -----------------------------------
    Someday you'll look back on this and laugh.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

    \
     
     \ /
      Last update: 2005-03-22 13:44    [W:0.020 / U:123.536 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site