File permission not enforced

I have couple of shared folders created on the server and some permissions set on this folder. When the specific user tries for example execute some of the permission..most of them works and some does not work regardless whatever i give that user from privileged access to complete ownership of the folder.

real example

Shared folder on windows 2012 r2 accessed by a user from win8.1 with full control and full ownership ( share permissions, everyone full control ) and still the user can not delete or add any file or folder, the user can save opened documents or rename.

steps tried:

created another user --> same problem

user logged on the server --> no problem

as a reminder user has full control and ownership but still cannot delete files and folder from win 8.1 on a shared folder exist on windows 2012 r2

Thanks

 
July 28th, 2015 3:30pm

Permissions are controlled by the most restrictive permission set for the user.  If the user have full access, but is member of a group that has a more restrictive permission, the more restrictive permission takes precedence.  Check to see what groups in which the user is a member.
Free Windows Admin Tool Kit Click here and download it now
July 28th, 2015 4:47pm

thanks for replying..the user is in the only group of Domain user group

This is insane

I logged with the user account on the server, created a folder by the user, I set all groups ( users, Domain users, everyone, the user himself ) full control over the folder and still the user can not on his win 8.1 add any new folder or documents ( restarting the computer did not do any better ). What the heck is blocking the user from editing a folder that he created himself on the server ( logged on the server directly ) meanwhile, even all groups existed on the folder permission are given full control whether he is included in that group or not. 


July 28th, 2015 10:41pm

thanks for replying..the user is in the only group of Domain user group

This is insane

I logged with the user account on the server, created a folder by the user, I set all groups ( users, Domain users, everyone, the user himself ) full control over the folder and still the user can not on his win 8.1 add any new folder or documents ( restarting the computer did not do any better ). What the heck is blocking the user from editing a folder that he created himself on the server ( logged on the server directly ) meanwhile, even all groups existed on the folder permission are given full control whether he is included in that group or not. 


Free Windows Admin Tool Kit Click here and download it now
July 28th, 2015 10:41pm

Hi,

If the user can rename a file, he should also able to delete that file.

From the description, the user cannot delete or create file or subfolder. He can edit or rename existing files however. And the issue only occur when he remotely access the shared folder. 

Though you mentioned Share permission is set as Full Control, please again check if Full Control is checked.

Also please find a specific file which cannot be deleted by the user. Check its NTFS permission and make sure there is no DENY permission, and the user do have full control permission on that file. A quick test is to remove all NTFS permissions, and give the specific user Full Control to see if he can delete the file. 

Also what's the error when failing to delete or create a file?

July 30th, 2015 7:01am

please check the parent drive permission, like c: security permission

and check the subfolder permissions..

if parent security permission is set to read only, and sub folders you set to full control.. 

sub folders will still inherit the parent security permission..which is read only.

Free Windows Admin Tool Kit Click here and download it now
July 30th, 2015 9:32am

I disabled the inheritance from these folders and still the same thing
August 2nd, 2015 2:11pm

I disabled the inheritance from these folders and still the same thing

how about do some testing first,

1. share a folder (just a test folder)

2. set the permissions everyone to full control (set it at the root drive)

3. check the shared folder from another workstation 

4. if its work then slowly set the permissions

or check out  link below:

http://blogs.technet.com/b/keithmayer/archive/2012/10/21/ntfs-shared-folders-a-whole-lot-easier-in-windows-server-2012.aspx

Free Windows Admin Tool Kit Click here and download it now
August 2nd, 2015 11:56pm

Thanks for your reply

It is still the same stubborn error.

I had a dual boot on that pc, so I booted windows 7 and tried to access the folder to delete a folder inside using the user credentials, but it is the same error.

I setup the permissions on that folder for everyone ( sharing and security ) to have full control and still the user or any other user can not delete the folder or any folder.....

August 5th, 2015 12:11pm

can you post the output of this:

icacls c:

if the shared folder is on c drive, just change the drive letter if the shared folder is on a different drive.

have you enabled encryption on the drive?

Free Windows Admin Tool Kit Click here and download it now
August 5th, 2015 9:56pm

I don't know what it can be, but I've had "fun" with running scripts from shares.  Perhaps some of the same things are affecting you.  Is UAC on or sort of "off"?  Is the share available from both the normal command prompt and an elevated (run as admin) command prompt?  Can the file be deleted in either command prompt?  Has IE on the client been used to add the share as either a trusted site or from the local intranet? 

I have had scripts run from a share until elevated access was required.  However, once the elevation was done, it failed because it no longer had access to the share.  The elevated user and the normal user are different.  There is a registry setting that can be set that will let the elevated user have access to the share as the non-elevated user. 

There might be other odd things too, like the need to add permissions for the non-elevated user in addition to the elevated user.  It has to elevate to do this. 

Another thing to check is the owner of the files.  You might have to take ownership.  

Just rambling.  I do feel your pain.  Prozac helps. 

August 6th, 2015 8:32pm

sorry for replying late, had some time off.

here is the output of the shared folder in question ( i changed the domain name to DomaiName )

DomainName\Domain Users:(OI)(CI)(F)
Everyone:(OI)(CI)(F)
BUILTIN\Users:(OI)(CI)(F)
DomainName\bob:(I)(OI)(CI)(F)
BUILTIN\Administrators:(I)(OI)(CI)(F

CREATOR OWNER:(I)(OI)(CI)(IO)(F)
NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
DomainName\Domain Users:(I)(CI)(RX)
BUILTIN\Users:(I)(CI)(RX,WD,AD)

encryption is not enabled
Free Windows Admin Tool Kit Click here and download it now
August 15th, 2015 7:02pm

should the UAC be off or on...

the user has ownership and I added everyone --> full access

Prozac does not help either...took the whole bottle.

August 15th, 2015 7:26pm

sorry for replying late, had some time off.

here is the output of the shared folder in question ( i changed the domain name to DomaiName )

DomainName\Domain Users:(OI)(CI)(F)
Everyone:(OI)(CI)(F)
BUILTIN\Users:(OI)(CI)(F)
DomainName\bob:(I)(OI)(CI)(F)
BUILTIN\Administrators:(I)(OI)(CI)(F

CREATOR OWNER:(I)(OI)(CI)(IO)(F)
NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
DomainName\Domain Users:(I)(CI)(RX)
BUILTIN\Users:(I)(CI)(RX,WD,AD)

encryption is not enabled
Free Windows Admin Tool Kit Click here and download it now
August 15th, 2015 10:57pm

Does this happens with different shared folder on same server ?

Also can you get SDDL output on the folder ? this can be obtained either using get-acl <Folder name> | format-list or using icalcs

SDDL stores - Owner SID, Primary Group SID, DACL information, SACL.

August 16th, 2015 7:41pm

yes it happen on all folders

Path   : Microsoft.PowerShell.Core\FileSystem::E:\Finance\ADMINISTRATION\Files\2013
Owner  : DomainName\bob
Group  : DomainName\Domain Users
Access : Everyone Allow  FullControl
         BUILTIN\Users Allow  FullControl
         DomainName\Domain Users Allow  FullControl
         DomainName\bob Allow  FullControl
         BUILTIN\Administrators Allow  FullControl
         CREATOR OWNER Allow  FullControl
         NT AUTHORITY\SYSTEM Allow  FullControl
         DomainName\Domain Users Allow  ReadAndExecute, Synchronize
         BUILTIN\Users Allow  CreateFiles, AppendData, ReadAndExecute, Synchronize
Audit  :
Sddl   : O:S-1-5-21-1555754151-1371175101-57080227-1121G:DUD:AI(A;OICI;FA;;;WD)(A;OICI;FA;;;BU)(A;OICI;FA;;;DU)(A;OICII
         D;FA;;;S-1-5-21-1555754151-1371175101-57080227-1121)(A;OICIID;FA;;;BA)(A;OICIIOID;FA;;;CO)(A;OICIID;FA;;;SY)(A
         ;CIID;0x1200a9;;;DU)(A;CIID;0x1200af;;;BU)


Free Windows Admin Tool Kit Click here and download it now
August 16th, 2015 8:05pm

Hi, your settings is working perfectly fine.

The users definitely will not be able to add, delete or create folders.

See this line:  DomainName\Domain Users Allow  ReadAndExecute, Synchronize

Domain users is read only.

If you allow domain users the "modify" rights, then they will be able to delete or create folders. But make sure you have backup system in place or else anything deleted means gone forever.

August 16th, 2015 11:32pm

yes it happen on all folders

Path   : Microsoft.PowerShell.Core\FileSystem::E:\Finance\ADMINISTRATION\Files\2013
Owner  : DomainName\bob
Group  : DomainName\Domain Users
Access : Everyone Allow  FullControl
         BUILTIN\Users Allow  FullControl
         DomainName\Domain Users Allow  FullControl
         DomainName\bob Allow  FullControl
         BUILTIN\Administrators Allow  FullControl
         CREATOR OWNER Allow  FullControl
         NT AUTHORITY\SYSTEM Allow  FullControl
         DomainName\Domain Users Allow  ReadAndExecute, Synchronize
         BUILTIN\Users Allow  CreateFiles, AppendData, ReadAndExecute, Synchronize
Audit  :
Sddl   : O:S-1-5-21-1555754151-1371175101-57080227-1121G:DUD:AI(A;OICI;FA;;;WD)(A;OICI;FA;;;BU)(A;OICI;FA;;;DU)(A;OICII
         D;FA;;;S-1-5-21-1555754151-1371175101-57080227-1121)(A;OICIID;FA;;;BA)(A;OICIIOID;FA;;;CO)(A;OICIID;FA;;;SY)(A
         ;CIID;0x1200a9;;;DU)(A;CIID;0x1200af;;;BU)


Free Windows Admin Tool Kit Click here and download it now
August 17th, 2015 12:04am

where to change this because it also says DomainName\Domain Users Allow  FullControl and in the Secuirty properties Domain users have full control...so I do not know where the ReadAndExecute, Synchronize is tocahnge it..
August 17th, 2015 11:15am

Perhaps the Prozac was not taken while elevated?  I doubt it's a UAC issue, but here is the link for the curious.  

https://technet.microsoft.com/en-us/library/Ee844140(v=WS.10).aspx

The most restricted group sounds confusing to me.  However, any deny access defined will take precedence.  So perhaps that what was meant.  I would look for any "deny" permissions set any place, as they do count first.  Looks like all allow to me, but there might be another unexpected group. 

(I'm a DBA.  A deny on the public database role will affect everybody that's affected by object security, even members of the db_owner role.  Security is not checked for sysadmin and the one "true" db owner.  It can be very confusing.  Might be the same thing here.) 

Free Windows Admin Tool Kit Click here and download it now
August 17th, 2015 1:44pm

where to change this because it also says DomainName\Domain Users Allow  FullControl and in the Secuirty properties Domain users have full control...so I do not know where the ReadAndExecute, Synchronize is tocahnge it..
change it at the root, if you get via c drive then right click on c drive go to properties click on security tab you should be able to see and change the permissions from there.
August 17th, 2015 9:26pm

Perhaps the Prozac was not taken while elevated?   

Free Windows Admin Tool Kit Click here and download it now
August 17th, 2015 9:27pm

in the SDDL output - above - for the same folder there is conflicting permission, one time it says  

DomainName\Domain Users Allow  FullControl

and another time it says 

DomainName\Domain Users Allow  ReadAndExecute, Synchronize

How come, there are two different security permission..I can see the Allow FullControl ( all of them are checked ), but I can not see where is the ReadAndExcute, Synchronize si only checked....

August 17th, 2015 9:44pm

in the SDDL output - above - for the same folder there is conflicting permission, one time it says  

DomainName\Domain Users Allow  FullControl

and another time it says 

DomainName\Domain Users Allow  ReadAndExecute, Synchronize

How come, there are two different security permission..I can see the Allow FullControl ( all of them are checked ), but I can not see where is the ReadAndExcute, Synchronize si only checked....

have you checked the root directory c drive?
Free Windows Admin Tool Kit Click here and download it now
August 18th, 2015 12:54am

but i can not give Domain user Full access to the Root of the C:\ ..it does not make sense...
August 18th, 2015 11:09am

Who is the owner of the root?  Can you check the effective permissions at the root for yourself?  Is there any group policy for file access?  Maybe an inconsistent permission state - can you try a new share on a new drive? 

Free Windows Admin Tool Kit Click here and download it now
August 18th, 2015 1:14pm

i found the culprit which it in a way does not make any sense but it solved the problem.

There are two permissions -  Share and  Security  

Regardless of the full permission setting on the security tab, the share permission will override. So the solution is to give Everyone group on the share permission, write permission. And voila 

Maybe Microsoft changed the default sharing permissions from read and write to read only as I do not recall having to do this on 2003 and 2008 server.

Any ways...thanks for everyone who helped in trying to find a solution ..specially the Prozac solution  

August 18th, 2015 2:51pm

Glad it finally worked.  It appeared to us that you already gave full control on the share. 

I know it is common to use Everybody.  If access needs to be restricted, take care that local users on the server don't have access to the files.  The group will likely have authenticated users as a member. 

Free Windows Admin Tool Kit Click here and download it now
August 18th, 2015 3:16pm

i found the culprit which it in a way does not make any sense but it solved the problem.

There are two permissions -  Share and  Security  

Regardless of the full permission setting on the security tab, the share permission will override. So the solution is to give Everyone group on the share permission, write permission. And voila 

Maybe Microsoft changed the default sharing permissions from read and write to read only as I do not recall having to do this on 2003 and 2008 server.

Any ways...thanks for everyone who helped in trying to find a solution ..specially the Prozac solution  

Thanks for updating the thread and glad to know you finally nailed it.

August 18th, 2015 11:01pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics