Error: open for write: permission denied

Need help with FileZilla Client? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
dragonfly41
500 Command not understood
Posts: 5
Joined: 2011-11-14 18:38
First name: D
Last name: L

Error: open for write: permission denied

#1 Post by dragonfly41 » 2011-11-14 21:16

I'm on Windows client and I'm just starting to use FileZilla to SFTP local files on a remote server .. an Amazon EC2 instance running Ubuntu.

On my windows client I have Putty Pageant running as source of public keys.

Now the problem I'm having must be very basic .. "permission denied" leading to failed transfers

Error: /usr/lib/nx/nxsetup: open for write: permission denied
Error: File transfer failed


I right click the target server directory to check read/write permissionbs.

The directories in both source (localhost) and target (EC2 instance) can be navigated by FileZilla.

I tried to set attributes read/write for the entire target folder

but I get this ..

Status: Set permissions of '/usr/lib/nx' to '777'
Command: cd "/usr/lib"
Response: New directory is: "/usr/lib"
Command: chmod 777 "nx"
Error: set attrs for /usr/lib/nx: permission denied


I have tried going to target server to change permissions of target folder /usr/lib/nx

sudo chmd +w /usr/lib/nx/


Also I've tried WinSCP but get identical errors ..

Cannot create remote file '/usr/lib/nx/nxsetup'

Permission denied
Error code: 3


-------------------------------------

What is the basic configuration I'm missing just to transfer files from A to B using SFTP?

I've tried running FileZilla in administrator mode.

Is this probably a problem of permissions at the server end (Ubuntu) rather than in FileZilla?

-------------------------------------

Here is a copy of the log file .. (EC2 path edited)

2011-11-14 21:00:53 3056 3 Status: Connecting to ec2-xx-xxx-xx-xxx.eu-west-1.compute.amazonaws.com...
2011-11-14 21:00:53 3056 3 Response: fzSftp started
2011-11-14 21:00:53 3056 3 Command: open "ubuntu@ec2-xx-xxx-xx-xxx.eu-west-1.compute.amazonaws.com" 22
2011-11-14 21:00:54 3056 3 Status: Connected to ec2-xx-xxx-xx-xxx.eu-west-1.compute.amazonaws.com
2011-11-14 21:00:54 3056 3 Status: Retrieving directory listing...
2011-11-14 21:00:54 3056 3 Command: pwd
2011-11-14 21:00:54 3056 3 Response: Current directory is: "/home/ubuntu"
2011-11-14 21:00:54 3056 3 Command: ls
2011-11-14 21:00:54 3056 3 Status: Listing directory /home/ubuntu
2011-11-14 21:00:54 3056 3 Status: Calculating timezone offset of server...
2011-11-14 21:00:54 3056 3 Command: mtime ".bashrc"
2011-11-14 21:00:54 3056 3 Response: 1317454718
2011-11-14 21:00:54 3056 3 Status: Timezone offsets: Server: 0 seconds. Local: 0 seconds. Difference: 0 seconds.
2011-11-14 21:00:54 3056 3 Status: Directory listing successful

User avatar
botg
Site Admin
Posts: 31605
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: Error: open for write: permission denied

#2 Post by botg » 2011-11-14 22:02

You lack permissions to change permissions. Please contact the server administrator for assistance.

dragonfly41
500 Command not understood
Posts: 5
Joined: 2011-11-14 18:38
First name: D
Last name: L

Re: Error: open for write: permission denied

#3 Post by dragonfly41 » 2011-11-14 22:17

I am the server administrator for my Amazon EC2 Ubuntu instance!

I've played around with permissions and found that I had to open permissions at the server end.

sudo chmod 777 /usr/lib/nx

allowed me to upload the script without errors.

I can close down the permissions after FileZilla sessions (777 is wide open).

Thanks

Post Reply