Re: [Ssh-sftp-perl-users] ERROR:SFTP->put died: Couldn't fsetstat: Permission denied
Brought to you by:
dbrobins
|
From: Nigel R. <ni...@sy...> - 2014-01-15 17:22:45
|
Maybe you need to use Net::SFTP::Attributes to change the permissions.
$attrs->perm( [ $value ] )
Get/set the value of the permissions in $attrs.
From: Tim Pushor [mailto:tim...@yo...]
Sent: Wednesday, January 15, 2014 9:33 AM
To: ssh...@li...
Subject: [Ssh-sftp-perl-users] ERROR:SFTP->put died: Couldn't fsetstat:
Permission denied
Hello list,
Using Net::SFTP 0.10 to automate transferring files to one of our vendors
has produced this error:
SFTP->put died: Couldn't fsetstat: Permission denied
I've commented out the $sftp->do_fsetstat($handle,$a) line from SFTP.pm and
the file goes. I believe this is due to the overly restrictive environment
our vendor has set up. I didn't look too close but it looks like the
fsetstat is trying to set the file permission bits to 0777.
Is there any way to perhaps get an option put into this module to be able to
disable this behavior? I do not want to leave the system like this as module
upgrades will break the script again. I can't be the only one that will trip
over this.
Thank you,
--
Tim Pushor
York Electronics Ltd.
Information Technology
Phone: 403.207.0202 x243
Mobile: 403.978.6502
|