Attn leet menz (and grlz) (736 hits)
Category: Computers & InternetRating: -0.53 on 17 reviews (Rate this item) (V)
Submitted by Korthrun McBloodlust <korthrun.at.korthrun.net> (View user info) at 2004-01-15 15:33:28 EST
Wondering if any possible perl gurus out there can lend a hand.
I am trying to use $> to change the EUID of a perl script to a non priveleged user. This is to run an SSH command on a backup server, to make a new directory. For obvious reasons I do not want passwordless ssh setup for root. This is what I have atm:
$> = 10177;
print "Copying data over to backup.foo.com\n";
system "ssh backup.foo.com mkdir /backup/ns5/$date";
system "scp /usr/local/backup/* backup.foo.com:/backup/ns5/$date/";
print "K tx.\n";
exit 0;
It still seems to execute the ssh and scp commands as root. Is this because of the system call? Should I be using exec? Anyc lues would be nice. Googleing for $> is not very effective and I am perusing perlmonks atm but am not finding a whole lot yet. Thanks for any that help, and a nice fuck you and have a nice day to the whiners.
User Reviews
Submitted by lilbill87 (user info) at 2004-04-29 18:01:25 EDT (#)
Ranking: -2
No Comment
Submitted by beer-turtle (user info) at 2004-01-15 20:32:43 EST (#)
Ranking: 0
replace the flux capacitor, the phlogiston filter attachment has corrupted the pump array.
-turtle
Submitted by seanfogy (user info) at 2004-01-15 18:45:39 EST (#)
Ranking: 0
Submitted by lucid (user info) at 2004-01-15 16:34:02 (#)
Ranking: -2
No self respecting penguin would use the word leet, let alone l337.
Thats because there's no such thing as a "self respecting penguin". Penguins suck. Fuck em.
Submitted by CDizzle (user info) at 2004-01-15 18:01:02 EST (#)
Ranking: 0
Korthran, I guess this should tell you that none of these guys know perl.
Submitted by lucid (user info) at 2004-01-15 16:34:02 EST (#)
Ranking: -2
No self respecting penguin would use the word leet, let alone l337.
Submitted by Random Joe at 2004-01-15 16:23:38 EST (#)
Ranking: 0
Don't backup your shit, waste of time. Disks never fail.
Submitted by Loren1 (user info) at 2004-01-15 16:23:33 EST (#)
Ranking: 0
I mean *parameter*
Submitted by Loren1 (user info) at 2004-01-15 16:23:06 EST (#)
Ranking: 0
This inspired me to zap my perameter ram.
Submitted by maiorano84 (user info) at 2004-01-15 16:09:59 EST (#)
Ranking: 0
RB - What are you talking about? You know full well that a boolean square root double nesting structure is completely unnecessary in this case. What he needs is a series of simple imbedded formulas based on basic quantum theory. MAKE SURE TO HAVE YOUR COMPUTER IN RADIANS!!! If not, the resulting algorithms in the flux capacitor will send you to 1357 Europe when the Black Plague was at its peak.
Have a nice day!
Submitted by reallybored (user info) at 2004-01-15 15:59:58 EST (#)
Ranking: 0
Personally, i used a boolean square root double nesting structure with a call to a parameters set that was defined in the global variable list.
Submitted by Insanethemind (user info) at 2004-01-15 15:59:00 EST (#)
Ranking: 0
and you should be spelling it 1337, n07 "leet" , f0o1
I PwN j00
Submitted by Insanethemind (user info) at 2004-01-15 15:54:00 EST (#)
Ranking: 0
yes, you should be using exec.
Submitted by tweeter <wellwoopidiedoo.at.msn.com> at 2004-01-15 15:49:19 EST (#)
Ranking: -2
I'd of helped you if you didn't put in that last sentence
Submitted by korthrun (user info) at 2004-01-15 15:41:48 EST (#)
Ranking: 0
It's a pre response to the people who would/will whine about how this is not a tech support forum etc etc.
Submitted by JinkyWilliams (user info) at 2004-01-15 15:35:35 EST (#)
Ranking: -1
Why did you feel it necessary to insert that last sentance?
Stay orange.
--JW
Submitted by firefly (user info) at 2004-01-15 15:34:17 EST (#)
Ranking: -2
what?
Submitted by korthrun (user info) at 2004-01-15 15:34:16 EST (#)
Ranking: 0
Oh, I want to keep expect and SUID wrappers out of the picture unless they are the only way.


