RE: SFTP commands
Date: Mon, 30 Jun 2008 14:37:47 +0530
>>>>If the permissions weren't getting changed it would make more sense.
It could be a file path problem--a relative >>>>>path that didn't match
the server's home directory, for example. Test case 614 tests chmod and
it works without an >>>>>issue. Since the command is evidently being
running, I don't know why there would be a quote error being returned.
The permissions are getting changed (the user has permission to
change)(FTP works fine with out throwing any errors)
But in sftp when the file has 555 or 444 permissison and we try to
change any other permissions
The permisison are changed but the following error occurs
* Re-using existing connection! (#0) with host <hsotname>
* Connected to <hsotname> (<hsotname>) port 22 (#0)
* Sending quote commands
* Attempt to set SFTP stats failed: Permission denied---->what is this
* Connection #0 to host <hsotname> left intact
* Quote command returned error
The value of the errorStatus ::.ChmodFile 21(from curl_
should I have to set/configure some settings for the sftp user do let
me know how to do it????
-- From: curl-library-bounces_at_cool.haxx.se [mailto:curl-library-bounces_at_cool.haxx.se <mailto:curl-library-bounces_at_cool.haxx.se> ] On Behalf Of Dan Fandrich Sent: Thursday, June 26, 2008 10:56 PM To: curl-library_at_cool.haxx.se Subject: Re: SFTP commands On Thu, Jun 26, 2008 at 04:44:08PM +0530, nagarajan.sreenivasan_at_wipro.com wrote: > Hi all > > I am using Linux platform > > finally got rename working but now I have a problem with chmod > > scenario: > ======== > > I have a file with 555 permisison . > > I want to change it to 777 permission. > > but I am getting the following error > > * Sending quote commands > * Attempt to set SFTP stats failed: Permission denied > * Connection #0 to host <hostname> left intact > * Quote command returned error > value of res in ChmodRemoteFile is : 21(CURLE_QUOTE_ERROR (21) ) The probably is probably just what it says: "Permission deined". Are you sure the SFTP user has permission to change the mode of the given file? >>> Dan -- http://www.MoveAnnouncer.com <http://www.MoveAnnouncer.com> The web change of address service Let webmasters know that your web site has moved Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.comReceived on 2008-06-30