Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8381691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:44:56+00:00 2026-06-09T16:44:56+00:00

I want to create a folder and write a file in the created folder

  • 0

I want to create a folder and write a file in the created folder in an Amazon EBS volume from a Java Servlet installed on Amazon EC2 running Ubuntu.

I have mounted the EBS volume at

/mnt/my-address

But the Servlet is unable to create the folder and write the file?

My Question

Why Java sevlet is not able to create a folder on Amazon EBS mounted volume?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T16:44:58+00:00Added an answer on June 9, 2026 at 4:44 pm

    Looks like your folder does not have the correct read/write permissions.

    Try granting read-write access to all users to the directory in question, e.g.:

    sudo chmod -R ugo+rw /mnt/my-address
    

    If you are uncomfortable with granting write permissions to all, you could fine tune the permissions by playing with ownership and groups, but I would need more info about your setup to help you with that.

    Edit: if the ec2-user is the only one needing access, you could change the ownership of the directory to that user and then grant access to only him:

    sudo chown -R ec2-user:ec2-user /mnt/my-address
    sudo chmod -R u+rw,go-rw /mnt/my-address
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Java I want to create a file from and save the data on
i want to create functions what get the folder size. I write small function:
I want to create a hidden folder using java application. That program should work
I have installed Maven 3.0.4 and now want to run already created java project
I want to write a custom query in magento website. I created a file
I write application in Java using SWT. I would like to create unique file
I want to create a folder in sdcard in an android device and I
On confluence I want to create a link that links to: P:\myFolder\folder, where P
I want to create some files at WEB-INF/upload and upload is a folder which
How can I create Libs folder in my android project. I want to Add

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.