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

  • Home
  • SEARCH
  • 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 6146641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:58:49+00:00 2026-05-23T18:58:49+00:00

I am currently running Cygwin on a target Windows Server 2003 machine to fire

  • 0

I am currently running Cygwin on a target Windows Server 2003 machine to fire off a shell script that, among other things, creates a bunch of files on disc. However after the files are created I no longer have permissions to manipulate them through Windows.

When the files are created the owner is getting set to ‘SYSTEM’ and the permissions for Administrators/Creator Group/Creator Owner/system are set to only ‘special permissions’ and nothing else.
The permissions for Everyone and Users have Read & Execute, List folder contents and Read.

My problem is that I cannot delete/modify the files now through Windows. I would prefer to have something built into my scripts (either the shell script or something to call in Cygwin) that would allow Administrators full control on the folder and all contents.

My current workaround has been to either do file modifications through Cygwin but this is not preferable. I have also used setfacl -r -m default:other:rwx to add write permissions for the ‘Users’ group but it doesn’t appear to have a recursive option and still doesn’t give ‘full control’

Is there a better way to use setfacl? Can I call the shell script using different/elevated permissions?

Results of getfacl on a newly created directory:

$ getfacl Directory/
# file: Directory/
# owner: SYSTEM
# group: root
user::rwx
group::r-x
group:Users:rwx
mask:rwx
other:r-x
default:user::rwx
default:group::r-x
default:group:Users:rwx
default:mask:rwx
default:other:r-x
  • 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-23T18:58:50+00:00Added an answer on May 23, 2026 at 6:58 pm

    You can try setting umask:

    umask u=rwx,g=rwx,o=rwx
    

    That should give user, group, and other read/write/execute on any newly created dirs.

    If you only want the modified umask permanently, you can add it to your .bash_profile


    Edit – Added example of mkdir before/after umask.

    Here’s the output of getfacl on a directory created before I set umask:

    [/cygdrive/c/Documents and Settings/NOYB/Desktop]
    ==> getfacl test_wo_umask/
    # file: test_wo_umask/
    # owner: NOYB
    # group: Domain Users
    user::rwx
    group::r-x
    group:root:rwx
    group:SYSTEM:rwx
    mask:rwx
    other:r-x
    default:user::rwx
    default:user:NOYB:rwx
    default:group::r-x
    default:group:root:rwx
    default:group:SYSTEM:rwx
    default:mask:rwx
    default:other:r-x
    

    Here’s the output of getfacl on a directory created after I set umask:

    [/cygdrive/c/Documents and Settings/NOYB/Desktop]
    ==> getfacl test_w_umask/
    # file: test_w_umask/
    # owner: NOYB
    # group: Domain Users
    user::rwx
    group::rwx
    group:root:rwx
    group:SYSTEM:rwx
    mask:rwx
    other:rwx
    default:user::rwx
    default:user:NOYB:rwx
    default:group::rwx
    default:group:root:rwx
    default:group:SYSTEM:rwx
    default:mask:rwx
    default:other:rwx
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently running Server 2003 but am looking at reinstalling in the near future due
How can I get the windows version I am currently running under Cygwin? I
I'm working on a shell script that scrapes a date off a webpage and
We're currently running a server on Compatibility mode 8 and I want to update
We are currently running a SQL Job that archives data daily at every 10PM.
We're currently running with php 5.2.5. We have now encountered a bug that creates
I am currently running JDK 6 on Windows 7 and have installed the Unlimited
I have a currently running PHP application that I want to add real-time feed
I am currently running a third-party software suite, which uses SQL Server as its
I just installed apache (1.3.33) via cygwin running on Windows XP. I have the

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.