I Changed permissions for every enclosed folder in my Library (not Home)

I wanted to change permissions on a fiie in my root Library (not Home Library) and clicked apply to enclosed items for the entire Library folder. Once I realized what happened (after the fact) I tried to repair permissions but things aren't working right obviously. I have a backup of the Library on my Time Machine drive that is before the snafu.
Is is possible to restore just this Library folder, and if I restored just this folder using Time Machine would it also restore the permissions as they were before I screwed up.
I'm backing up the altered Library folder to another drive just to be safe if I do need to restore.
Always learning,
Thanks
Message was edited by: Thor Stevens

Thor Stevens wrote:
I wanted to change permissions on a fiie in my root Library (not Home Library) and clicked apply to enclosed items for the entire Library folder. Once I realized what happened (after the fact) I tried to repair permissions but things aren't working right obviously. I have a backup of the Library on my Time Machine drive that is before the snafu.
Is is possible to restore just this Library folder, and if I restored just this folder using Time Machine would it also restore the permissions as they were before I screwed up.
no, that's not possible because many of those items are in use while you are booted normally. you need to do a full system restore from TM from before you did this. from your last post you seem to be doing just that. and in the future NEVER ever use "apply to enclosed items" on ANY system created folders. that applies btw to things like your home folder, the library in your home folder, your desktop folder etc. use it only on folders you made yourself. apart from messing up permissions on system files like those in the root library, many system created folders like your home folder have hidden ACLs and using 'apply to enclosed items" propagates those ACLs to everything inside.
I'm backing up the altered Library folder to another drive just to be safe if I do need to restore.
Always learning,
Thanks
Message was edited by: Thor Stevens

Similar Messages

  • Table that contains the change date for every cost element

    Hi everyone!
    Can anyone please help me find a table which contains the change date for every cost element?
    Thanks,Jess

    If you basically want to find out if anyone changed the cost element, you need to use transaction KA05 and enter the cost element and controlling area.
    This would actually bring you whatever field was changed and on double clicking give you the actual change and the date on which the change was made.
    Problem is this change date is actually the creation date of a change document which is in the table CDHDR.Its not like the change date is on any master tables.
    Hope this helps
    Deepa

  • Change permissions for UME repository

    Dear friends,
           Is it possible to change permissions for the ume repository. By default, it has "Allow" permission for List Children and Read properties. I dont see any options to change permissions under Settings -> permissions. Does anyone here in this forum knows how can I achieve the same? I am actually trying to index the ume repository and the crawler fails. I was wondering if the repository needed to have a full control. So, I am trying to change the permissions.
    We are on EP6 SP13 (all components)
    Any help is appreciated,
    Thanks,
    Mandar

    Hello experts,
    any ideas?
    I need aswell to change the permission in the UME repository...
    Thanks in advance!
    Greets
    Thomas

  • How to add a default value in a site column for every item in a document library

    HI
    i created a content type with some site columns ,
    and included in a Document library.
    Process ( content type)
    -ProcessNo
    -ProcessName
    after that i uploaded 100 Documents but not  added value in a site column process name.
    now  how i add a default value in a site column for every document in a document library 
    adil

    HI
    i get below error when i change the script 
    PS C:\scripts> C:\Scripts\updatedefaultvalue.ps1
    Cannot index into a null array.
    At C:\Scripts\updatedefaultvalue.ps1:8 char:7
    + IF($i[ <<<< "Title"] -eq $null)
        + CategoryInfo          : InvalidOperation: (Title:String) [], RuntimeExce
       ption
        + FullyQualifiedErrorId : NullArray
    $web = Get-SPWeb http://tspmcwfe:89/
    $list = $web.Lists["test"]
    $item = $list.Items | Where { $_["Name"] -eq "Emc" }
    foreach($i in $items)
    IF($i["Title"] -eq $null)
             $i["Title"] = "test"
           $i.Update()
    adil
    Why are you piping a where in the items? Do you only want to add the "test" to ones matching
    a name?
    If you have ISE installed on your server I recommend you put your code in there and debug it. 
    If this is helpful please mark it so. Also if this solved your problem mark as answer.

  • Changed permissions for a folder and items - now can't delete or open

    Hello
    I was recently playing around with the Get Info button when right clicking on a folder or icon. I was trying to lock the folder so it could not be accessed (except with a password). I ended up locking it with the check box, then changing the privileges to No Access at the bottom under Ownership and Permissions and Details (all drop down menus were set to No Access). Also, now the checkbox is greyed out, so I can't uncheck it...
    I was working on an external drive and then transferred the folder to my G5. However, while I can access the folder, I can not open the items I locked down. I also can not delete the folder and I keep getting "You Do not have sufficient privileges". I tried switching the Owner back to my own name (since it got set somehow to System), but after clicking the little lock and entering my password, it says "The operation could not be completed...An unexpected error occured (error code 120)".
    Basically, how can I delete this folder or move it to the trash? And also, is there any good way to lock down folders so you need a password to get in?
    Thank you
    Chris

    Deleting sandvox does not delete the customizations like udfs, forms. The actions that you perform in sandbox results in creation of the same in OIM db and also in metadata db.
    As a solution of the problem you can try creating a new sandbox and then create new versions of the application instance forms. Once done navigate the application instance and assign the newly created application instance form. This might work and you can ignore the earlier forms.

  • Solved - How to take ownership and change permissions for blocked files and folders in Powershell

    Hello,
    I was trying to take ownership & fix permissions on Home Folder/My Documents structures, I ran into the common problem in PowerShell where Set-Acl & Get-Acl return access denied errors. The error occurs because the Administrators have been removed from
    file permissions and do not have ownership of the files,folders/directories. (Assuming all other permissions like SeTakeOwnershipPrivilege have been enabled.
    I was not able to find any information about someone successfully using native PS to resolve the issue.  As I was able to solve the issues surrounding Get-Acl & Set-Acl, I wanted to share the result for those still looking for an answer.
    Question: How do you use only Powershell take ownership and reset permissions for files or folders you do not have permissions or ownership of?
    Problem: 
    Using the default function calls to the object fail for a folder that the administrative account does not have permissions or file ownership. You get the following error for Get-Acl:
    PS C:\> Get-Acl -path F:\testpath\locked
    Get-Acl : Attempted to perform an unauthorized operation.
    + get-acl <<<< -path F:\testpath\locked
    + CategoryInfo : NotSpecified: (:) [Get-Acl], UnauthorizedAccessException
    + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.GetAclCommand
    If you create a new ACL and attempt to apply it using Set-Acl, you get:
    PS C:\> Set-Acl -path F:\testpath\locked -AclObject $DirAcl
    Set-Acl : Attempted to perform an unauthorized operation.
    At line:1 char:8
    + Set-Acl <<<< -path "F:\testpath\locked" -AclObject $DirAcl
    + CategoryInfo : PermissionDenied: (F:\testpath\locked:String) [Set-Acl], UnauthorizedAccessException
    + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.SetAclCommand
    Use of other functions like .GetAccessControl will result in a similar error: "Attempted to perform an unauthorized operation."
    How do you replace owner on all subcontainers and objects in Powershell with resorting to external applications like takeown, icacls, Windows Explorer GUI, etc.?
    Tony

    Hello,
    Last, here is the script I used to reset permissions on the "My Documents" tree structure that admins did not have access to:
    Example:  Powershell script to parse a directory of User-owned "My Document" redirection folders and reset permissions.
    #Script to Reset MyDocuments Folder permissions
    $domainName = ([ADSI]'').name
    Import-Module "PSCX" -ErrorAction Stop
    Set-Privilege (new-object Pscx.Interop.TokenPrivilege "SeRestorePrivilege", $true) #Necessary to set Owner Permissions
    Set-Privilege (new-object Pscx.Interop.TokenPrivilege "SeBackupPrivilege", $true) #Necessary to bypass Traverse Checking
    #Set-Privilege (new-object Pscx.Interop.TokenPrivilege "SeSecurityPrivilege", $true) #Optional if you want to manage auditing (SACL) on the objects
    Set-Privilege (new-object Pscx.Interop.TokenPrivilege "SeTakeOwnershipPrivilege", $true) #Necessary to override FilePermissions & take Ownership
    $Directorypath = "F:\Userpath" #locked user folders exist under here
    $LockedDirs = Get-ChildItem $Directorypath -force #get all of the locked directories.
    Foreach ($Locked in $LockedDirs) {
    Write-Host "Resetting Permissions for "$Locked.Fullname
    #######Take Ownership of the root directory
    $blankdirAcl = New-Object System.Security.AccessControl.DirectorySecurity
    $blankdirAcl.SetOwner([System.Security.Principal.NTAccount]'BUILTIN\Administrators')
    $Locked.SetAccessControl($blankdirAcl)
    ###################### Setup & apply correct folder permissions to the root user folder
    #Using recommendation from Ned Pyle's Ask Directory Services blog:
    #Automatic creation of user folders for home, roaming profile and redirected folders.
    $inherit = [system.security.accesscontrol.InheritanceFlags]"ContainerInherit, ObjectInherit"
    $propagation = [system.security.accesscontrol.PropagationFlags]"None"
    $fullrights = [System.Security.AccessControl.FileSystemRights]"FullControl"
    $allowrights = [System.Security.AccessControl.AccessControlType]"Allow"
    $DirACL = New-Object System.Security.AccessControl.DirectorySecurity
    #Administrators: Full Control
    $DirACL.AddAccessRule((new-object System.Security.AccessControl.FileSystemAccessRule("BUILTIN\Administrators",$fullrights, $inherit, $propagation, "Allow")))
    #System: Full Control
    $DirACL.AddAccessRule((new-object System.Security.AccessControl.FileSystemAccessRule("NT AUTHORITY\SYSTEM",$fullrights, $inherit, $propagation, "Allow")))
    #Creator Owner: Full Control
    $DirACL.AddAccessRule((new-object System.Security.AccessControl.FileSystemAccessRule("CREATOR OWNER",$fullrights, $inherit, $propagation, "Allow")))
    #Useraccount: Full Control (ideally I would error check the existance of the user account in AD)
    #$DirACL.AddAccessRule((new-object System.Security.AccessControl.FileSystemAccessRule("$domainName\$Locked.name",$fullrights, $inherit, $propagation, "Allow")))
    $DirACL.AddAccessRule((new-object System.Security.AccessControl.FileSystemAccessRule("$domainName\$Locked",$fullrights, $inherit, $propagation, "Allow")))
    #Remove Inheritance from the root user folder
    $DirACL.SetAccessRuleProtection($True, $False) #SetAccessRuleProtection(block inheritance?, copy parent ACLs?)
    #Set permissions on User Directory
    Set-Acl -aclObject $DirACL -path $Locked.Fullname
    Write-Host "commencer" -NoNewLine
    ##############Restore admin access & then restore file/folder inheritance on all subitems
    #create a template ACL with inheritance re-enabled; this will be stamped on each subitem to re-establish the file structure with inherited ACLs only.
    #$NewOwner = New-Object System.Security.Principal.NTAccount("$domainName","$Locked.name") #ideally I would error check this.
    $NewOwner = New-Object System.Security.Principal.NTAccount("$domainName","$Locked") #ideally I would error check this.
    $subFileACL = New-Object System.Security.AccessControl.FileSecurity
    $subDirACL = New-Object System.Security.AccessControl.DirectorySecurity
    $subFileACL.SetOwner($NewOwner)
    $subDirACL.SetOwner($NewOwner)
    ######## Enable inheritance ($False) and not copy of parent ACLs ($False)
    $subFileACL.SetAccessRuleProtection($False, $False) #SetAccessRuleProtection(block inheritance?, copy parent ACLs?)
    $subDirACL.SetAccessRuleProtection($False, $False) #SetAccessRuleProtection(block inheritance?, copy parent ACLs?)
    #####loop through subitems
    $subdirs = Get-ChildItem -path $Locked.Fullname -force -recurse #force is necessary to get hidden files/folders
    foreach ($subitem in $subdirs) {
    #take ownership to insure ability to change permissions
    #Then set desired ACL
    if ($subitem.Attributes -match "Directory") {
    # New, blank Directory ACL with only Owner set
    $blankdirAcl = New-Object System.Security.AccessControl.DirectorySecurity
    $blankdirAcl.SetOwner([System.Security.Principal.NTAccount]'BUILTIN\Administrators')
    #Use SetAccessControl to reset Owner; Set-Acl will not work.
    $subitem.SetAccessControl($blankdirAcl)
    #At this point, Administrators have the ability to change the directory permissions
    Set-Acl -aclObject $subDirACL -path $subitem.Fullname -ErrorAction Stop
    } Else {
    # New, blank File ACL with only Owner set
    $blankfileAcl = New-Object System.Security.AccessControl.FileSecurity
    $blankfileAcl.SetOwner([System.Security.Principal.NTAccount]'BUILTIN\Administrators')
    #Use SetAccessControl to reset Owner; Set-Acl will not work.
    $subitem.SetAccessControl($blankfileAcl)
    #At this point, Administrators have the ability to change the file permissions
    Set-Acl -aclObject $subFileACL -path $subitem.Fullname -ErrorAction Stop
    Write-Host "." -NoNewline
    Write-Host "fin."
    Write-Host "Script Complete."
    I hope you find this useful.
    Thank you,
    Tony
    Final Thought: There are great non-PS tools like
    Set-Acl and takeown which are external to PS & can also do the job wonderfully.  It may be much simpler to call those tools than recreate the wheel in pure
    code.  Feel free to use whatever best suits your time, scope & cost.

  • Boot loop after changing permissions for /applications directory

    Hi there,
    i have an imac with leopard OS. After a program install complained about missing priviliges for /applications directory
    i adjusted the permissions for this folder. I changed admin user right from read to read/write and added another user, also with read/write rights.
    After applying the permissions (including subdirectories) i rebooted.
    Now the mac doesn`t come up anymore. It boots, shows the apple and the turning wheel and after 3-5 minutes boots again in a loop.
    Any ideas highly aprreciated....
    thx

    Attempt to reboot in Safe Mode then try restarting normally.

  • Changing permissions for /home

    Hi,
    I have a problem with my /home directory. It has no write permissions and I can't change that. The owner of the directory is root but even if login as root I can't change the permissions for the /home directory. When looking at the properties for the /home directory in the File Manager it says that the file is a NON_WRITABLE_FOLDER. When trying to remove the directory I get a message saying that the "Directory is a mount point or in use".
    Does anyone know what I have to do to be able to change the permissions of the /home directory.
    Thankful for all help!
    /Johan

    Hi,
    It seems to be /home directory is a NFS mounted directory from the other system. To change its ownership you need to login to the system as root and change the permission for mount options as -rw.
    Hope it helps !
    Regards,
    Dharani
    SlashSupport india Pvt Ltd.
    Hi,
    I have a problem with my /home directory. It has no
    write permissions and I can't change that. The owner
    of the directory is root but even if login as root I
    can't change the permissions for the /home directory.
    When looking at the properties for the /home directory
    in the File Manager it says that the file is a
    NON_WRITABLE_FOLDER. When trying to remove the
    directory I get a message saying that the "Directory
    is a mount point or in use".
    Does anyone know what I have to do to be able to
    change the permissions of the /home directory.
    Thankful for all help!
    /Johan

  • Hi my daughter did some changes in the settings,now i am getting voice support for every task i do,i am not able to access anything cause unable to toggle down to the reset option,pls help as to what to do

    hi my daughter did some changes in the setting,now i am getting voice support for every task i am doing,plus cannot toggle between the pages,unable to do the changes as not able to toggle to reset option either,pls help.

    You probably have the Voiceover accessibility feature turned on. It's difficult to navigate as you need to use specific voiceover gestures. The easirest thing to do is connect the phone to iTunes. Select the Summary pane and click the "Configure Universal Access..." button.  In  the window that opens,select "Neither" in the seeing options and click "OK".

  • Changing permissions for _QTSS user

    Trying to change my streaming media directory from the default to another hard disk. Apparently I need to make the internal user qtss the owner of that directory, but am unable to do so. It does not appear in list of users when I try to change permissions on the new streaming folder. Unable to change it using get info, workgroup manager or even chmod. We are using an external active dir and only those users show up. Any idea how to do this?

    Found the same trouble.
    Try XRay. This utility allow easily change permissions via GUI interface.

  • All permissions lost on a folder in a library

    Hi,
    I accidentally deleted all permission to a folder in a library of document. I wanted to delete acces to everyone except me, but I forgot to uncheck my name... This folder was working with unique permissions and I am the only administrator. How can I access 
    the folder again?
    Thank you for your help!

    Hi Sefen,
    Have you tried adding yourself to the list, otherwise you need to contact your SharePoint Site collection administrator to add you again to the list.
    or else inherit the permission again from the parent, and break inheritance with unique permission, then add users as required.
    Hope this helps!
    MCITP: SharePoint 2010 Administrator
    MCTS - MOSS 2007 Configuring, .NET 2.0
    | SharePoint Architect | Evangelist |
    http://www.sharepointdeveloper.in/
    http://ramakrishnaraja.blogspot.com/

  • Changes done for the Site in the BCC are not reflecting in the Production

    Hi,
    we are using ATG10.0.2 BCC, application is based on CRS10.0.2
    changing the asets for a site in BCC and deployed success fullly changes are there in the BCC but those are not affecting in production
    In Production configuration of BCC i mapped Source Repository atg/multisite/SiteRepository with Destination Repository: atg/multisite/SiteRepository_production
    please help me to reslove this issue
    Thanks,
    Chandrakanth

    How about checking this?
    Login into the DB and see if you have values changes getting reflected in the CA DB and prod DB.
    If values are getting reflected in the DB then clear the cache of the repository.
    If the values are not getting reflected in prod db then check the datasource property of that repository.
    Peace
    Shaik

  • Picture Book theme - why has my book printed with text box outlines showing? and how do I change this for any future purchases? This did not occur with previous books.

    Why have borders appeared around the text boxes in the Picture Book theme and how do I change them for the future.  My latest book looks dreadful!

    Have you checked, if your book is really set to the "Photos" Theme? This looks like you may have used one of the "Travel" themes. These themes create borders around the text boxes. When you select a theme, the book title will say "Photos", even if the theme is a different one.
    For example, frames text boxes with the "travel" theme.
    Have you previewed your book, before printing it? Did the framed boxes already show in the preview?
    See: Previewing an order in iPhoto or Aperture
    Regards
    Léonie

  • How do I change permissions for West Dig USB HD, how said "read only" and can't use it.

    I have a West Did Hard drive from my PC that want to use on my Macbook.  Looking at the permissions said "read only".  I tried to move files on the drive and could not when attached to my Macbook.  Where do I change these settings that will allow me to use this drive.  Thanks for any help.
    This is my first Mac so do not know much about the Mac process, moving slow and steady.
    Donco

    Was this drive in use with a windows machine previously?
    If yes then I would guess that it is formatted as NTFS, Mac's can not write to NTFS discs.
    If you have sufficient space on your Mac copy the disk contents to a folder on your desktop and reformat the drive for use with Mac and Windows, then put the files back.
    Post back with some answers and I'll try to guide you through this

  • Permissions for creating a folder in Bi Publisher

    Hi All,
    I am unable to create a folder in Bi Publisher Shared Folder.
    Regards,
    Vishwanath

    hi vishwam,
    do u have permissions that for u r login user? please check the permissions
    Bi Publisher-->Admin>Roles and Permissions>Add Folders: ( Login User name)
    Thanks,
    Saichand.v

Maybe you are looking for

  • My safari freezes when I start it. Help?

    Everytime I try to use Safari, it jus freezes the rainbow wheel just stays on my screen forever. Now, I have to use it in Safe Mode. How do I fix this?

  • Subset of a ResultSet

    I am trying to optimise my Database code. At step one I make a fetch on the data by getting all the info about all States in my Country table. Now having got a reference to this resultSet, I want to narrow down the ResultSet to contain rows only for

  • Best monitor for MacBook?

    I want a monitor for my new MacBook but am not going to shell out 1K for apple display with USB 2.0 and that is dated 3 years.  What other options have people had success with? Thanks for your support! Of course, this might be a moot point if Apple g

  • No sound effects on games or keyboard sound since downloaded 8.1.3 this morning on iPad airanyone any ideas pl ? 

    no sound effects on games or keyboard click since downloading 8.1.3 this morn. At first no sound on anything then played about in setting and switched off and now no sound effects despite being on full volume. If I reset will I lose my games pl ?

  • H:message page is build wrong

    Hi Guys! I ran into a strange problem on my jsp pages. If got a quite long form with many inputs, and message tags belonging to them. They all look like: <div class="<%=pageMessages.hasMessages("inputname")?"error":"normal" %>" >      <div class="div