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,390 points
94 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 3,770 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
41 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,240 points
1,794 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,130 points
1,193 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,120 points
20 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,120 points
264 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
• 3,770 points
38 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
• 3,770 points
26 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.