Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Re: Net::FTP::Recursive Permission and Ownership...

by insensate (Hermit)
on Apr 08, 2004 at 14:07 UTC ( [id://343612]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Net::FTP::Recursive Permission and Ownership...
in thread Net::FTP::Recursive Permission and Ownership...

I don't see why the process you describe requires root access... I think Net:FTP::Recursive is the perfect tool. If you have the access to do the remsh (I assume now you're on HP-UX) you should have the same access to the account you want owning the files on the remote system(s). As for changing the file permissions, that can be a simple script after you put the files out... using Net:SSH would be ideal. Avoid chmod -R though for obvious security reasons... I would instead build a list of files... maybe with the File::Find modules so you can chmod specific filenames/directories.
use File::Find; sub process_file { push @files, $File::Find::name unless (-d); push @dirs, $File::Find::name if (-d) } find( \&process_file, "your src dir" );

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://343612]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-25 12:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found