[Question] - File/Folder Permissions
#1
Posted 05 January 2006 - 01:15 AM
Title Edited - Please follow new posting rules from now on.
--Zxian
#2
Posted 05 January 2006 - 01:41 AM
This is a tool that comes with both Windows 2000 and Windows XP (as well as Server 2003). There is an extended version called XCACLS that you can grab from the MS site.
C:\>CACLS /? Displays or modifies access control lists (ACLs) of files CACLS filename [/T] [/E] [/C] [/G user:perm] [/R user [...]] [/P user:perm [...]] [/D user [...]] filename Displays ACLs. /T Changes ACLs of specified files in the current directory and all subdirectories. /E Edit ACL instead of replacing it. /C Continue on access denied errors. /G user:perm Grant specified user access rights. Perm can be: R Read W Write C Change (write) F Full control /R user Revoke specified user's access rights (only valid with /E). /P user:perm Replace specified user's access rights. Perm can be: N None R Read W Write C Change (write) F Full control /D user Deny specified user access. Wildcards can be used to specify more that one file in a command. You can specify more than one user in a command. Abbreviations: CI - Container Inherit. The ACE will be inherited by directories. OI - Object Inherit. The ACE will be inherited by files. IO - Inherit Only. The ACE does not apply to the current file/directory.
#4
Posted 07 January 2006 - 11:53 AM
just my suggestion.
#5
Posted 07 January 2006 - 06:12 PM
Goodbye.
#6
Posted 07 January 2006 - 08:52 PM
#7
Posted 09 January 2006 - 07:54 PM
nmX.Memnoch, on Jan 7 2006, 06:52 PM, said:
Because Webshots is more than a screen saver. It's a image manager that works with their website and can set the background image on the desktop. I use it on my home machines. It's pretty nice for free software.
This post has been edited by Maelstorm: 09 January 2006 - 07:55 PM
#8
Posted 09 January 2006 - 08:04 PM
#9
Posted 09 January 2006 - 08:37 PM
\Program Files User Installed Software Software Archive Adabas StarOffice Winamp User ID #1 Adabas StarOffice Winamp Some other user installed program User ID #2 Adabas StarOffice Winamp Some other user installed program User ID #3 Adabas StarOffice Winamp Some other user installed program
This is for programs that must be installed on a per-user basis. That's why this directory exists. Now the problem is all users must have write access to the User Installed Software directory in order for the initial logon script to create their directory and take ownership of it. They also have read only access to the Software Archive directory. I'm sure that you can see the security implications of this arrangement.
I've been thinking of a solution to this problem, but I'm not coming up with anything. The main problems seems to be that the User Account management interface in the Control Panel does not offer any "hooks" so after it creates an account, it then calls a specified script to perform user specific functions before their initial logon. That would be ideal, because then the initial logon script could then just ask the user if they want to install the software.
I have thought about using a command-line script to create the user id, create their software directory, set them as the owner, and give them full control of it. But the problem here is that I cannot set the owner to anyone except myself as the administrator. This means that the initial login script will have to take ownership of the directory when it runs.
My questions are as follows:
1) After I create the user program directory, how do I set the ownership to that user?
2) Is there a way to tell the user accounts applet in the control panel to execute a script when a user is created? This should perferably work with the old Win2K user management interface.
3) Is there a better way of doing this? Am I barking up the wrong tree here?
#10
Posted 10 January 2006 - 12:20 AM
As for the other issue with write access in a subfolder where they only have read to the parent...this is very much possible. Just make sure that either "Everyone" or "Authenticated Users" (preferably) is in the "Bypass traverse checking" security option of gpedit.msc.
#11
Posted 12 January 2006 - 12:22 PM
#12
Posted 12 January 2006 - 01:26 PM
Personally, I use takeown first to take all hard drive present ... and after I use xacls ...
#13
Posted 12 January 2006 - 04:03 PM
SubInACL allows you to specify who you are giving ownership to, which I believe is what he wants to do.
As an aside...if you're using Quota Management directory/file ownership management is a must. The quotas are determined by which directories/files the user is an owner of.
#14
Posted 21 January 2006 - 10:59 AM
Why did Microsoft discontinue gui like interface found in Windows 2000??!!!
#15
Posted 21 January 2006 - 11:38 AM
#16
Posted 07 February 2006 - 11:56 PM
nmX.Memnoch, on Jan 9 2006, 10:20 PM, said:
No need for this; traverse checking merely verifies that the user has Traverse Folder (execute) permissions for the parents; it doesn't check read/write or other permissions. Also, it's on by default for Everyone, and removing that entry breaks things. (the default permissions aren't set up to be compatible with this, and from what I've read, the traverse checking algorithms are broken in recent releases. At the very least, SYSTEM requires this right or bad things happen.)
All that is required is to configure READ access on the parent, then add write access to the child. (Note that if an explicit DENY ACL for write access is attached to the parent folder, ACL inheritance must be disabled for the child, or the DENY will be inherited and override the ALLOW.)
- ← [Question] "Power users" can have same rights "Administ
- Windows XP
- [Question] - Disable changing of the text/backgrouond color of the web →



Help

Back to top









