Amazon Ec2 FTP Write Permission error

0 votes

I am able to successfully connect to amazon ec2 instance using Filezilla. The username I used is ec2-user. So, when I try to transfer my application war to tomcat it says

/var/lib/tomcat6/webapps/RealEstateERP.war: open for write: permission denied Error: File transfer failed.

I tried to change permission to use FileZilla but am still getting the error. So, how do I resolve the error?

Sep 18, 2018 in AWS by datageek
• 2,440 points
159 views

1 answer to this question.

0 votes

The ec2-user don't have permission to write files in /var/lib/tomcat6/webapps/. Only the root user can do so. You have two ways here to do so:

1) Copy files to /home/ec2-user/ using Filezilla. Now SSH into the Linux machine through putty. Change to root user using command sudo -s. Then copy file from /home/ec2-user to /var/lib/tomcat6/webapps/ using command cp -i RealEstateERP.war  /var/lib/tomcat6/webapps/.

2) SSH into Linux machine through putty.Change to root user using command sudo -s.Provide write permission to all users on /var/lib/tomcat6/webapps/ using command chmod 777 /var/lib/tomcat6/webapps/. Then copy files to directory directly from FileZilla.

answered Sep 18, 2018 by Archana
• 4,090 points

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

Permission Denied: AWS EC2 FTP

This is a permission issue. You can ...READ MORE

answered Mar 28 in AWS by Kolki
75 views
+2 votes
2 answers

Amazon AWS Filezilla transfer says : permission denied

Well, I can't see your screenshot that ...READ MORE

answered May 3, 2018 in AWS by Cloud gunner
• 4,260 points
2,271 views
0 votes
1 answer

Trying to Determine Amazon EC2 instance creation date/time

You can't find as such attribute called ...READ MORE

answered May 29, 2018 in AWS by Flying geek
• 3,150 points
1,623 views
0 votes
1 answer
0 votes
1 answer

Amazon EC2 - disk full

Well, I think its one (or more) ...READ MORE

answered Aug 10, 2018 in AWS by Priyaj
• 56,160 points
23 views
0 votes
1 answer

How to find unused Amazon EC2 security groups?

Select all and delete there you can ...READ MORE

answered Jul 9, 2018 in AWS by Priyaj
• 56,160 points
323 views
0 votes
1 answer

Create Amazon EC2 instance with API

If you are looking for a method ...READ MORE

answered Jul 20, 2018 in AWS by Archana
• 4,090 points
55 views
0 votes
1 answer

How to upload a lib for Tomcat in Amazon EC2?

You need to set the proper privileges ...READ MORE

answered Aug 20, 2018 in AWS by Archana
• 4,090 points
34 views