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 6205445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:16:33+00:00 2026-05-24T05:16:33+00:00

we are having a problem with our recently installed web app. It allows users

  • 0

we are having a problem with our recently installed web app.

It allows users to upload files and save them to a directory in the OS. We’ve asked the Security guys to add the websphere user to the target path group, and this path has 770 permissions.

That should do it, if we log in to the machine with the websphere user, we can create folders and files in that path; but our java web app can´t create a directory and it fails.

Unfortunately no exception is thrown, the failing method first checks for this the existence of this directory with File.isDirectory() if it returns false, then it tries to create it with File.mkdirs().

The directory is not created and so a custom error message is displayed to the user. No other clue in the logs.

I’ve tried to reproduce the problem in my local linux laptop and toying with users and groups, i’ve seen that changes to permissions do not take effect until a new session is started, but i’m not sure how that affects our deployed java web app and what needs to be done for permissions to be effective.

I’m also sure the files are written with websphere user, since the app has written some files in a different path.

Has anyone faced something similar?

thanks

  • 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-05-24T05:16:34+00:00Added an answer on May 24, 2026 at 5:16 am

    chown seems to be a solution.

    UPDATE:

    Another solution is to check the ‘file permission policy‘ for the java client (see).

    Java 2 security uses several policy files to determine the granted permission for each Java program.
    For the list of available policy files that are supported by WebSphere® Application Server, see Java 2 security policy files.

    * The client.policy file is a default policy file that is shared by all of the WebSphere Application Server client containers and applets on a node.
    * The union of the permissions that is contained in the java.policy file and the client.policy file are given to all of the client containers for WebSphere Application Server and applets running on the node.
    * The client.policy file is not a configuration file that is managed by the repository and the file replication service. Changes to this file are local and do not replicate to the other machine.
    * The client.policy file supplied by WebSphere Application Server is located in the profile_root/properties/client.policy.
    * If the default permissions for a client (union of the permissions defined in the java.policy file and the client.policy file) are enough, no action is required. The default client policy is picked up automatically.
    * If a specific change is required to some of the client containers and applets on a node, modify the client.policy file with the Policy Tool. Refer to Using PolicyTool to edit policy files for Java 2 security, to edit policy files. Changes to the client.policy file are local for the node.
    

    I hope it helps you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a problem at work in that our app which uses WCF for
We were having a problem with our build server not checking out modifications from
We're having a problem with a merge replication. Our publisher runs SQL Server 2008,
We're having a significant number of problems creating a bulk upload function for our
We are having a problem in our test and dev environments with a function
We are having a problem with our selenium tests which run in IE on
we're having this big problem with our application. It's a rather large application with
I am having a problem with margins / line-height in one of our websites.
I am having a problem with our RSS feed displaying correctly in Safari but
I am using ASP.NET 3.5 and we are having a problem with our website

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.