How to change subdiretory ownership?

i am a root user
i want to change one diectory's ownership (also including subdirectory's ownership)
my command is
chown -R newusername:staff directoryname
but subdirectory's ownership is not changed.
how to do this?
thx

It should change the owner ship to the last node, I tried it and it worked, make sure that you are root.
Samir Patel

Similar Messages

  • How to change the ownership of a doc after a specific time in workflow ?

    Hi
    My objective is to create a workflow in ESO , that will change the ownership of a contract document from the current person to his supervisor ( supervisor's id will be in user id management page) after a specific time .
    Please help me how to do it ?
    I am using TWE editor for workflow design
    Regards
    Swastik

    To prepare a computer for sale or donation, in addition to the steps mentioned in this support article, take these steps:
    If you set a firmware password, remove it by running Firmware Password Utility in Recovery mode.
    If you activated FileVault in OS X 10.7 or later, turn it off.
    If you use Boot Camp, the partition must be deleted
    If you created any other data partitions on the internal drive, remove them in Disk Utility.
    Erase the data partition(s) with the option to zero out data. An SSD doesn't need to be zeroed.
    You can't legally or practically transfer any software downloaded from the Mac App Store to the new owner of the machine, even if it was free. That includes OS X, so if you paid for an upgrade OS X 10.7 or later, you must reinstall  the original OS, either from the installation media, if applicable, or by booting into Internet Recovery (option-command-R at the startup chime.)
    The new owner will have to repurchase the software, if need be, under his or her Apple ID. If you ever updated the bundled iLife applications (Garage Band, iMovie, and iPhoto) through the App Store, you can't transfer them either.
    Remove the machine from your list of registered products. If it's still covered by an AppleCare Protection Plan, transfer the coverage to the new owner by following the instructions in the AppleCare Terms and Conditions (under the heading "Transfer of Plan.")

  • How to change workspace ownership

    Hi,
    the owner of a beehiveonline workspace left the company. Is there a way to change the ownership for this workspace
    or add an administrator?
    thanks,
    Claudio

    Claudio,
    If the group sponsor/manager adds another email address to the Group manager's email that user will be added as a coordicnator when the next user is added.
    Is the sponsor also the one who left? If so email the details of the group and who has taken over to [email protected] and we can adjust the setup.
    Phil

  • How to change file ownership/permission on Airport Extreme Time Capsule

    I have a 3TB Airport Extreme Time Capsule that currently have a folder with a number of files.  The problem is it won't let me delete some of these files because I don't have permission.  On a mac it would be trivial to either take ownership or change my permissions.  Any ideas on how I can do this on the TC?

    niblettes wrote:
    I only know what OSX tells me -- so my information is only as good as its messages.
    Locked files seem like a good possibility though.
    Your first post seemed to say that some specific files couldn't be deleted. If you know any of their names, see if one is locked.  if not, that isn't the problem.  If it is, unlock it and try to delete.  If it still won't delete, that's not the problem, either (or at least not all of it).
    How can I just make all file unlocked since I have no idea which of the tens of thousands of file are at fault?
    I know in OSX its easy to change permissions on a folder and then propagate that change to all child foders and files.  Does locking/unlocking work the same?
    If you don't know of any specific files, try creating one, locking it, then seeing if you can delete it. 
    There doesn't seem to be any way to unlock all files in a folder. 
    Do you want to delete everything on the TC?  If so, just erase it with Airport Utility -- only takes seconds.
    EDIT:  These files wouldn't be in Time Machine backups, would they?  If so, you can only delete entire backups via the Finder, not individual files or folders.  But the message OSX usually sends when you try that says so fairly clearly.
    Message was edited by: Pondini

  • HT4889 How do change the ownership of files after using the migration assistant?

    After I copied all of my files across using the migration assistant, the tool is nice enough to assume that I want to use the same ID that I had on my PC.  This is not my case as I am using a different name on the mac.  How do I get the files from the other user name?  I have already set the sharing permissions so that I can see them on both user ids, however the only way I can see to update is to copy them all.  As I have about 1TB of files, this is a little inconvenient.  Any thoughts?

    Thanks.  It got me on the right track.  At the end, I copied the 1TB over and just deleted the other profile.  I tried to set the ownership to my regular ID by removing the lock from "Get Info" but I still had to move them out of the other "user" folder.

  • Mass change the ownership of the documents ! Thoughts?

    Fellas,
    I am looking for some information on how mass change of ownership can happen to following documents in Sourcing:
    RFx
    MA
    Ex: Buyer A is the owner of the documents and he/she is no more with the organization. We would like to mass change the ownership of these documents.
    My thoughts:
    1. Create a report to pull the documents
    2. Script to update the owner
    3. Schedule a job, so the script can run and update all the documents.
    Thanks
    Gummadi

    Hi Gummadi,
    We had same requirement , change  the ownership of Master Agreements.
    1. Create a report to pull the list  for Agreements to be changed with below columns:
    DISPLAY_NAME , CALC_METHOD, UNIQUE_DOC_NAME, DOC_TYPE,
    STATUS, CURRENCY, VENDOR, CONTACT, LOCATION,
    2.  Create workbook for Master Agreements, above fields are mandatory  for any Mass Change on MA's.
          add DOC_OWNER_USER column to the work book 
    3. Import this work book to CLM/E-Souring.
    Hope  this will help you.
    Thanks
    - Sai

  • I've bought an used macbook pro and want to change the ownership!

    Basically i've purchased on ebay a pre-owned macbook pro that hasn't come with the original OS discs and I don't know how to change the ownership!
    I've only have the ebay articule of the auction that I won and my credit card resume where I paid for the item that proofs my ownership on the macbook but nothing else!!
    I just want to state somehow legally that this macbook is now mine in case i need apple care assistance or anything else (legal matters).
    thanks on advance to the whole community!

    pre-owned macbook pro that hasn't come with the original OS discs
    Which OS was originally pre-installed?  You need this information, in order to receive the proper instructions on how to wipe it clean.
    Macs that came with the OS'es 10.6.8 & earlier are not suppose to be sold w/o the DVDs that originally came w/them per Apple's license agreement.  If this is the case w/you, then you purchased a glorified door stop.  The system DVDs have troubleshooting tools on them and they are machine specific.
    You can get replacement System Install & Restore CD/DVDs from Apple's Customer Support - in the US, (800) 767-2775 - for a nominal S&H fee. You'll need to have the model and/or serial number of your Mac available.
    If you're not in the US, you may need to go through the regional Apple Store that serves your location to find the contact number. Here's a list of links to all of those - http://store.apple.com/Catalog/US/Images/intlstoreroutingpage.html  Another resource:  International Support Phone #s.

  • How to change the clusterware ownership?

    Our initial 10g Clusterware install is currently owned by root. As we upgrade to 11g, I would like to change the ownership. The 11g cluster install guide states that ownership cannot be changed during the install, and I cannot find anything in the 10g documentation about changing the ownership. How does one change the clusterware ownership in a 10g installation?

    Thanks. As to "why" I want to change the ownership, it is more of a matter of principle. Keep in mind that my cluster experience is rather low, but it seems problematic for a DBA to have so many root responsibilities in an organization (ie, ours) where those responsibilities are clearly delineated in two different groups. What I also found confusing is that the installation guides make reference to a "crs_user", but I was not able to find much supporting documentation for such a user. Is that the preferred way to go, or is that more of a band aid in the lines of a concession?

  • How to change permission in registry sub keys?

    Hi 
    I use script take ownership of a registry key and change permissions.
    Below is my powershell script, It can take ownership and change permissions to administrators group.
    But It only effected root registry key folder not sub keys.
    How to modify script can take ownership and change permissions in root keys and all sub keys?
    function enable-privilege {
    param(
    ## The privilege to adjust. This set is taken from
    ## http://msdn.microsoft.com/en-us/library/bb530716(VS.85).aspx
    [ValidateSet(
    "SeAssignPrimaryTokenPrivilege", "SeAuditPrivilege", "SeBackupPrivilege",
    "SeChangeNotifyPrivilege", "SeCreateGlobalPrivilege", "SeCreatePagefilePrivilege",
    "SeCreatePermanentPrivilege", "SeCreateSymbolicLinkPrivilege", "SeCreateTokenPrivilege",
    "SeDebugPrivilege", "SeEnableDelegationPrivilege", "SeImpersonatePrivilege", "SeIncreaseBasePriorityPrivilege",
    "SeIncreaseQuotaPrivilege", "SeIncreaseWorkingSetPrivilege", "SeLoadDriverPrivilege",
    "SeLockMemoryPrivilege", "SeMachineAccountPrivilege", "SeManageVolumePrivilege",
    "SeProfileSingleProcessPrivilege", "SeRelabelPrivilege", "SeRemoteShutdownPrivilege",
    "SeRestorePrivilege", "SeSecurityPrivilege", "SeShutdownPrivilege", "SeSyncAgentPrivilege",
    "SeSystemEnvironmentPrivilege", "SeSystemProfilePrivilege", "SeSystemtimePrivilege",
    "SeTakeOwnershipPrivilege", "SeTcbPrivilege", "SeTimeZonePrivilege", "SeTrustedCredManAccessPrivilege",
    "SeUndockPrivilege", "SeUnsolicitedInputPrivilege")]
    $Privilege,
    ## The process on which to adjust the privilege. Defaults to the current process.
    $ProcessId = $pid,
    ## Switch to disable the privilege, rather than enable it.
    [Switch] $Disable
    ## Taken from P/Invoke.NET with minor adjustments.
    $definition = @'
    using System;
    using System.Runtime.InteropServices;
    public class AdjPriv
    [DllImport("advapi32.dll", ExactSpelling = true, SetLastError = true)]
    internal static extern bool AdjustTokenPrivileges(IntPtr htok, bool disall,
    ref TokPriv1Luid newst, int len, IntPtr prev, IntPtr relen);
    [DllImport("advapi32.dll", ExactSpelling = true, SetLastError = true)]
    internal static extern bool OpenProcessToken(IntPtr h, int acc, ref IntPtr phtok);
    [DllImport("advapi32.dll", SetLastError = true)]
    internal static extern bool LookupPrivilegeValue(string host, string name, ref long pluid);
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    internal struct TokPriv1Luid
    public int Count;
    public long Luid;
    public int Attr;
    internal const int SE_PRIVILEGE_ENABLED = 0x00000002;
    internal const int SE_PRIVILEGE_DISABLED = 0x00000000;
    internal const int TOKEN_QUERY = 0x00000008;
    internal const int TOKEN_ADJUST_PRIVILEGES = 0x00000020;
    public static bool EnablePrivilege(long processHandle, string privilege, bool disable)
    bool retVal;
    TokPriv1Luid tp;
    IntPtr hproc = new IntPtr(processHandle);
    IntPtr htok = IntPtr.Zero;
    retVal = OpenProcessToken(hproc, TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, ref htok);
    tp.Count = 1;
    tp.Luid = 0;
    if(disable)
    tp.Attr = SE_PRIVILEGE_DISABLED;
    else
    tp.Attr = SE_PRIVILEGE_ENABLED;
    retVal = LookupPrivilegeValue(null, privilege, ref tp.Luid);
    retVal = AdjustTokenPrivileges(htok, false, ref tp, 0, IntPtr.Zero, IntPtr.Zero);
    return retVal;
    $processHandle = (Get-Process -id $ProcessId).Handle
    $type = Add-Type $definition -PassThru
    $type[0]::EnablePrivilege($processHandle, $Privilege, $Disable)
    enable-privilege SeTakeOwnershipPrivilege
    $key = [Microsoft.Win32.Registry]::LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing",[Microsoft.Win32.RegistryKeyPermissionCheck]::ReadWriteSubTree,[System.Security.AccessControl.RegistryRights]::takeownership)
    # You must get a blank acl for the key b/c you do not currently have access
    $acl = $key.GetAccessControl([System.Security.AccessControl.AccessControlSections]::None)
    $me = [System.Security.Principal.NTAccount]"Administrators"
    $acl.SetOwner($me)
    $key.SetAccessControl($acl)
    # After you have set owner you need to get the acl with the perms so you can modify it.
    $acl = $key.GetAccessControl()
    $inherit = [System.Security.AccessControl.InheritanceFlags]"ContainerInherit, ObjectInherit"
    $propagation = [System.Security.AccessControl.PropagationFlags]"None"
    $rule = New-Object System.Security.AccessControl.RegistryAccessRule "Administrators","FullControl",$inherit,$propagation,"Allow"
    $acl.SetAccessRule($rule)
    $key.SetAccessControl($acl)
    $key.Close()

    Hi jrv
    How to explicitly take ownership of the subkey?
    System.Security.AccessControl.InheritanceFlags 
    I try use value
    "ContainerInherit、ObjectInherit、None", and It only take permission in root key.

  • Can't mount external Hard drive and Can't change the ownership and permiss.

    Hello everyone, got a problem and maybe someone here will know. Apple care can't help because this is due to an external piece. I have a hard drive external. I partitioned it into two hard drives. Long ago, I opened the information window for one of my partitioned drives. And changed the ownership and permission to "no access". I do this all the time to keep my files from being read if its not the administrator (me). Just recently I plugged in my hard drive (firewire and USB). Only one drive mounts on the desk top. I cannot see my other partitioned hard drive and I can' access it to change the ownership and permission with "apple key and I".. I can see a trace of the two partitioned hard drives when I use disc utility. But again it won't let me change the ownership so I can mount this again. How do I access my harddrive without refomatting? I have tried to mount this with both of my apple laptops..no luck yet. Please help, anyone.

    Hi, Donnie. Welcome to the Discussions.
    What part of "No Access" was unclear?
    "No Access" means no access for anyone.
    To fix this:
    1. Launch Terminal, which resides in the Macintosh HD > Applications > Utilities folder.
    2. At the Terminal prompt, type the following command:
    sudo chmod a+rwx "/Volumes/partition_name"
    where: partition_name is the name of the affected partition.
    3. Press Return.
    4. Type your Admin password when prompted, then press Return.
    5. At the Terminal prompt, type exit and press Return.
    6. Quit (Command-Q) Terminal.
    7. Relaunch Finder: Press and hold the Option key, click and hold mouse button 1 on the Finder icon in the Dock, select "Relaunch" from the Finder icon's contextual menu.
    You should then see the volume, or be able to use Disk Utility to Unmount it, then Mount it and see it.
    Reset the permissions for Group and Other on the partition as desired. Do not change the permissions for Owner.
    If you want a volume / partition unmounted at startup, see:
    • this tip Mac OS X Hints, or...
    • this tip on the OSX86 Project forums.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • How to change or Switch - scroll direction - automatic using registry keys

    how to change or Switch - scroll direction on TouchPad Synaptics - automatic using registry keys   ?

    Hi jrv
    How to explicitly take ownership of the subkey?
    System.Security.AccessControl.InheritanceFlags 
    I try use value
    "ContainerInherit、ObjectInherit、None", and It only take permission in root key.

  • How to change the "short name (account name?)" and home directory name?

    Hi,
    I recently purchased a new iMac and migrated account info from my MacBook Pro.  I happened to use random account name during migration without knowing it will not be easy to change the short name (account name?) and home directory name.  As a result, I am now having extremely confusing short name and home directory name on my new iMac.
    I did online search to find out how to change the two names, but I could only found somethig like "enabiling root user and....."  I have no idea what it was talking about and I don't want to take risk altering such advance set up manually.
    Please advice how I can change the short name and home directory name safely without much PC knowledge.
    Thank you very much in advance.

    There are a few ways of doing this. The easiest method is logging into the first account and copying everything to an external drive (or flash drive or whatever), which changes the permissions so that others can see the files.
    Then, login with the new account and copy the files over. Once they are copied, the correct permissions will be applied again (so other people on your computer can't access them).
    If you can't do this method for one reason or other, you can do some terminal commands to change the ownership of the files. Login to the new account. If it is an admin account, open terminal and type the following command:
    sudo chown -R -v yourusername:admin /Users/originalaccountnamehere
    That should change the ownership of the files from your old account to the new one. At that point, you can simply drag the files into place.

  • How to change the owner of business rules

    Hi,
    How to change the owner of the business rule's in hyperion 11.1.2.1.
    When i changed the owner name from planning to xxxxx i get "User not found reverting to nothing".
    Kindly help me with what id should i login to EAS (essbase administration services console) and the detailed process of changing the owner of business rule in properties tab.
    Cheers
    Praveen
    Edited by: Praveen on Nov 7, 2011 8:43 AM

    No....
    There is no 'ownership' of a tablespace. No such thing.
    UserA.tbl1 is owned by UserA, which is the same as saying it is in the schema UserA. It might be in tablespace USERS. If you want to change which tablespace it lives in, you can 'alter table' it to the new tablespace such as BIG_USERS. It would still be UserA.tbl1. I think you can move it online using Oracle's online reorg abilities.
    If you want the table to be owned by UserB, then you have to either export/import or CREATE TABLE AS SELECT it into UserB's schema. However doing so means that the table can no longer be referenced as UserA.tbl1. If you want that reference to work, you have to create a synonym in UserA's schema that points to UserB.tbl1. At no point does the ownership of the tablespace come in to question.
    I think you meant 'schema' instead of 'tablespace' in your original quesetion.

  • How to change owner

    how to change ownership of the Iphone?

    If you are not changing the number or service, all you need to do is change the Apple ID. Create a new Apple account for your wife.
    On the phone, go to Settings>iCloud, then scroll to bottom of screen and select Delete Account.  Then enter the new ID.

  • I just bought a used macbook pro 15 unibody, and would love to know how to change it's name from "previous owner's macbook pro" to "my macbook pro". Any help would be greatly appreciated.

    I need to know how to change the macbooks name to reflect new ownership. Thanks.

    jeremyfromcanton wrote:
    It did not come with the original discs, and I bought it for the fact that it came with certain programs already on it. I do have the snow leopard os disc I bought to update my older macbook, but don't want to lose those programs which I bought it for.
    Then you need to obtain them from the seller.  It is illegal (according to Apple) to sell Macs without the system discs that came with it.
    You can get replacement System Discs from Apple's Customer Support - in the US, (800) 767-2775 - for a nominal S&H fee. You'll need to have the model and serial number of your Mac available.
    If you're not in the US, you may need to go through the regional Apple Store that serves your location to find the contact number. Here's a list of links to all of those -
    http://store.apple.com/Catalog/US/Images/intlstoreroutingpage.html
    Mac OS X 10.6 Help: If you forget your administrator password

Maybe you are looking for

  • DB13 ARCHIVE backup error

    Hi , Can any body help me. i taking backup using TCODE: DB13 i got follwing errors Job log Job started Step 001 started (program RSDBAJOB, variant &0000000000025, user ID KUMARS) Execute logical command BRARCHIVE On host blrsap002 Parameters:-u / -ji

  • Where are all of my photo albums?

    I just updated my computer & found that Iphoto is now gone & that Photos has replaced it. Where are all of my photo albums that I spent so much time organizing in Iphoto now? I can't find them anywhere in Photos. It's a very badly, designed system!

  • NI-CAN 1.6 silent install

    Hello, does anybody know how to run NI-CAN 1.6 installer in silent mode (that is, no user input ist required)? As it is an InstallShield installer, I've tried the parameter /s with setup.exe, but nothing happens. With any other parameter, the "normal

  • Query directly the EM DB tables?

    Hi, Is it possible to query directly the DB sitting behind the EM web front end? Where will this DB normally be found, name of the DB, schema, user account, default password? Thanks, Yoni

  • How to create a time schedule graph

    I need to create a report with a to show things like holidays or business trips of several persons. The available graph types doesn't appropriates this intention. My question is, can I adapt an existing graph type or need I create a new one and in bo