Error: open for write: permission denied
Posted: 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
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