Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^2: Secure upload without account in remote server

by wanradt (Scribe)
on Dec 15, 2010 at 15:52 UTC ( #877293=note: print w/replies, xml ) Need Help??

in reply to Re: Secure upload without account in remote server
in thread Secure upload without account in remote server

Thank you, i get rid of suidperl. But i have some "thinking" bug in power. So, i can't make a script which scp-s files to remote server in other user rights. Should i?

Minimized script:

#!/usr/bin/perl use strict; use warnings; use Net::SCP qw( scp iscp ); my $scp = Net::SCP -> new( '', 'X' ); $scp->put( 'file.jpg' ) or die $scp->{errstr};

Even showing effective user (with POSIX) and effective group as user X and needed group, scp is still runned under runner user. (This i guess, because i don't see any debugging interface in Net::SCP. And if i try make scp with "system 'scp -v ...'" i see it still does not use setuid/setgid)

So i still have no solution to scp files to remote server without explicitly giving permissions to users.
Nġnda, WK

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://877293]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2017-12-12 12:33 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (332 votes). Check out past polls.