Jump to content
xisto Community
wutske

Windows Umask Option ?

Recommended Posts

I need some information for a school assignment. I have to find a windows alternative to umask (info: https://en.wikipedia.org/wiki/Umask ), but after hours of googl'ing, I haven't found anything yet.
The onlything I have found so far is the set recursive file permissions to the root directory, tough that isn't exactly what I'm looking.

It's also possible that their isn't a real alternative, that's a part of the assignment too :) .

Thanks in advance.

Share this post


Link to post
Share on other sites

I am very open to correction here as I may be wrong. When I first saw UMASK I thought you had mistakenly posted a Unix question in the Windows forum. Unix is really the only OS a UMASK has a place and windows doesn’t really have an equal at least not directly.Conceptually UMASK is where a newly created file gets its permissions. On Unix systems this can be set at the system or user levels. From experience, setting the UMASK can be tricky (as a Windows guy) as the values are reversed from setting a file permission directly. The question is where does Windows get the information to set default permissions on a newly created file? The answer is from the parent directory, the permissions are inherited. In most cases this is the direct answer but things can get tricky. Below are a few exceptions1. Certain system folders have permissions that are not inherited and have specific “security” build into them. Examples include c:\windows\system32 and the recycle bin.2. You can set the permissions to not inherit from parent. Right click on a file>properties>security>advanced button. There is a check box that allows you to do this.3. I’m not completely sure about this but I believe that there are some group policies that can be set if you are part of a domain.4. Files are not the only thing that can have permissions. Registry entries can also be restricted.I suppose the finial answer is this. There is no direct correlation between a UMASK in Unix and Windows. The closest thing is file permissions that are inherited in Windows.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.