in reply to Public Access Linux Box

Update from thread creator: I do infact have it successfully running setuid root, with
@ENV{'PATH'} = '';
, etc; the strange problems are this:

useradd doesn't like when I add "-s /bin/bash" (Perl yells at me); also, when I run system("passwd... the program dies saying that I can't change my newly created accounts password, very much as if I tried changing another person's password when not logged in as root? This I don't understand.

Replies are listed 'Best First'.
Re: Re: Public Access Linux Box
by belg4mit (Prior) on Mar 15, 2003 at 07:50 UTC
    In list form exec you you want '-s', '/bin/bash' same goes for uid etc... it's not going to parse the args as if they came in on a command line.

    --
    I'm not belgian but I play one on TV.