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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:11:24+00:00 2026-06-17T15:11:24+00:00

I am creating folder/file in linux using jdk 1.4 (mkdir). I am running this

  • 0

I am creating folder/file in linux using jdk 1.4 (mkdir). I am running this code from my application using test user(limited permission). But the folder/file is creating with root permission. I need to delete these files and folders manually at later time. When i try to delete the folder/file i got access denied. The JDK is installed in root.

How can i create the folder/file with different user permission (non root) in java 1.4?

Please help me. Thanks in advance.

  • 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-17T15:11:26+00:00Added an answer on June 17, 2026 at 3:11 pm

    Your files will be created with the owner of whatever your VM runs as. If you want to run as a different user, su - <userid> is your friend.

    You can eg. use the --command param to mkdir your directory.

    Cheers,

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

Sidebar

Related Questions

I'm programmatically creating a folder using C# and need to set the default view
I cannot figure out why my script is not creating a folder from my
I am creating an application which produces some files/directories in my WebContent folder and
Right now I'm using this code to upload files to Google Drive: https://stackoverflow.com/a/11657773/1715263 It
I am creating an image via a php script using imagepng. This works fine
I'm wanting to generate a dynamic zip/gzip file using php (user clicks button/link/whatever, and
I'm creating an application that gets a list of .java and .class files from
I am using linux to develop an embedded application. I have a HOST linux
Python is creating a folder in my directory every time I call this method.
Any code examples on how i must go about creating a folder say pics

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.