[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] suidperl and writing perl that uses suid



Does my RaQ XTR support suidperl programming and using suid. I looked
through the archives and found comments about exploits which make me
think that it does, but I can't seem to get it to work.

I may have damaged part of my perl installation by accidently
upgrading when running some scripts that came with RT. (If I had read
the RT FAQ before I would have learned that "# perl -MCPAN -e 'install
CPAN'" will update CPAN so it doesn't try to automatically update to
perl 5.6. ) I restored the pieces that I knew had to be restored but I
may have missed a library or program someplace.

I wrote 

#!/usr/bin/perl
print "hello world\n"

as root. If I flip on the suid bit, I can't an error "Can't do
setuid". Something is messed up, but I'm not sure what I did to get
this way.

-- 
Josh Kuperman                       
josh@xxxxxxxxxxxxxxxxxx