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,540 points
4,144 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,170 points

Related Questions In AWS

0 votes
1 answer
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, 2019 in AWS by Kolki
2,103 views
+3 votes
2 answers

Amazon AWS Filezilla transfer says : permission denied

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

answered May 3, 2018 in AWS by Cloud gunner
• 4,670 points
15,143 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,280 points
9,755 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
• 58,020 points
1,127 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,170 points
1,057 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,170 points
923 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP