Repair user folder Permissions using terminal

Disk utility won't repair ownership & permmisions in the root user folder. I did a transfer of apps from my old Tibook and something went wrong. Some of my folders list "Owner" as unkown etc. I had this issue a few years back when restoring from a cloned drive, and someone on this forum suggested a Terminal command to reset my user folder back to defaults with the proper ownership and that worked! Unfortunately I can't remember the command line ("sudo chown...something like that). Changing permissions on each folder and file using the "get info" command is too tedious. Thanks for any help.
MBP 17in 2.33ghz Mac OS X (10.4.8)
TiBook 667 Mac OS X (10.3.7)
TiBook 667   Mac OS X (10.3.7)  

Since the cursor advanced to the next line after entering each command, and no error message was returned, it sounds like the commands worked.
The Get Info panel is sometimes slow to reflect permissions changes. Try control-option-clicking Finder's Dock icon and select Relaunch. See if that kick-starts the Get Info permissions report.
You can verify that everything changed correctly by typing this into a Terminal window:
ls -laR ~ > ~/Desktop/list.txt
That will create a file on your desktop called list.txt. Open it with TextEdit. It will list every file and folder in your home directory. If your username is listed as the owner of everything then it worked correctly.

Similar Messages

  • Permission repair - Users folder on another Hard Drive

    Moved Users folder to 2nd internal HD, using NetInfo Manager and a sym link. This is done increase performance in multimedia apps. So in the drive my OS 10.4.5 is on, I have a symlink of User's folder. When I do a permissions repair for this volume, will Disk U., through the symlink, repair permissions on the actual User's folder on the second HD? Though I realize perm. repair deals mainly with OS installed stuff, you never know.

    As long as you play by the book - use NetInfo Manger - there is no need to worry or fret that "the next update will break." It doesn't and it hasn't, and I've used another drive for ~/ for over 4 yrs now. It just "works."
    That doesn't mean I've tried to use sym_links for Applications or to change the defaults locations - that is where people run into trouble.
    What is best should be based on experience, and from the day Mike Bombich (author of Carbon Copy Cloner) put a tutorial on how to change the home directory, no downside and in fact easier to maintain and backup a system (and IF you ever do need to restore the system you don't have to deal with losing what is in /users either, in the rare event your OS update or something does go wrong).
    Seems most problems with directory etc are to the boot volume anyway.
    Also seems like some FUD and "misinformation" perhaps?

  • Changing user folder permissions

    My wife and I both have admin accounts on my computer. I want to be able to easily transfer files from my user folder to hers without running into permissions problems. For example, I may want to take a photo from my Pictures folder and drop it in her Pictures folder. I can't do that because access is blocked to everyone but her. It's irritating to have to drop the file on a neutral ground, log in to her account, and take the file and put it in her folder. I logged in as root and tried to change the permissions by giving admin group read and write privileges but it gives an error of -60002 if I try that. I can't change the permissions while not logged in as root since the option is greyed out. Any ideas? I don't care one bit about "compromising security".

    Hi Xeep,
    Error -60002 is "The authorization parameter is invalid".
    From your account, have you first tried changing the Owner to yu, then the Group to admin, then the owner back to her?
    Or better yet, try BatChMod...
    http://www.macchampion.com/index.shtml

  • Change multiple user folder permissions

    Hi,
    I'm hoping someone can help me. Stupidly I moved the folder where the users directories are with the finder. the result is I am having problems when a user logs is due to incorrect permissions. does anyone have a script or terminal command I can use to correct this issue. basically I need the folder name to be the owner and no access by other users. Thanks!

    Hi Anthony, you could use something crude like
    #!/bin/bash
    Users=/Users.txt
    data=/pathto_Homedirectories
    #for a list of users from data folder
    ls -1 $data > $Users
    for name in $(awk '{print $1}' < "
    sudo chown -R $name $data/$name
    done
    exit
    This is assuming the Home Directory names are standard.
    You will need to edit the value for data.
    As always test, test, test and have a good known working backup.

  • Add user to permissions through terminal

    This is killing me. Seems like it should be such a simple task in the terminal but I just can't figure it out.
    What I would like to do is to give another user on my computer write permissions to a file that I own.
    I have tried several different things to no avail. Anyone have ideas? I know how to change the owner of the file, change the group or change my permissions but I just can't figure out how to add another user and set their permissions.
    Thanks for help!

    I am not doing this to one file. I know how to do this from the UI but I am trying to write a script to loop through the files in a folder and allow other specific users to read and write the files.
    Here is what I have tried
    chmod -R 775 nameOfFile
    ## This only changes the permissions for me as the admin
    chgrp -f group nameOfFile
    ## this only changes the group that has access
    chown newOwner nameOfFile
    ## this works but just removes me from ownership instead of adding a user that has read capabilities
    Thanks for your help

  • User folder permissions

    Hello,
    The environment: about 100 users, about 25 Windows 7 PC, DC = Server 2003 SBS, AD, local profiles with redirected desktops, documents, start menus.
    The special case: Some (generic) accounts are not supposed to be allowed to load media from external sources, such as flash drives. They must get their media from a server location.
    The part of the solution I have: Using User GPO, you can block access to removable devices for these accounts. This works - flash drives, external cd roms, hard drives, etc do not open when using those accounts.
    The issue: It is possible for a user who has external drive access to login, copy the files to his local profile on the HDD. Then it is possible for him to add the generic account that should not have access to the security permissions, allowing that generic
    account access to media they should not be able to access.
    Does anyone have any way of preventing a user from adding anyone to their local profile on the HDD? As the user is a owner on their local profile, and the profile doesn't get created until they log in for the first time, they can change any permissions and
    add whoever they want in.
    Please try to avoid a solution that runs a script after a user logs in and changes the permissions. We have 0 login scripts, everything done through group policy, and we want to stay that way if at all possible.
    Thanks

    Going to bump this...

  • How do I Get File and Folder Permissions using VBscript?

    I need a mechanism in Vbscript that will allow me to get a file's or a bunch of files permission in a folder. for example: lets say I have a file named something.dll now i need to retrieve what kind of permission it has i.e. Read, Write, Read & Execute,
    Modify or Full Control. Any kind of help will be appreciated. Thanks in Advance.

    Have you tried this >  AssistiveWare - How can I prevent apps from being deleted?
    Unfortunatley, restrictions may be the only way to prevent the app from being deleted 

  • Users folder permission

    My friend was updating her macbook, she said she was doing an update for Microsoft office. Upon reboot it will hang at a blue screen. I can't even get it to go into safe mode. Anyways, I didn't want to mess around with it, I wanted to get her files off of the hdd since she does not have any backups.
    I put a spare hard drive I have laying around, installed OSX 10.6 and put the old hard drive into an external enclosure. I can see the drive and browse it but when it comes time to go into her actual folder under the "Users" folder, there is a red circle with a line through it. It'll say something about I don't have permission to view content. I tried changing the permissions through the folder info and once I do I can go in her folder but its blank.
    I've been searching around and I have read through many threads and I don't know what else I can try.
    I need some guidance.

    WZZZ,
    Sorry I actually marked the wrong one by mistake. I was able to view the files inside by resetting the home folder permissions using the information you posted.
    Thanks again!
    Try resetting the home folder Permissions.
    Boot from the Mac OS X Install Disc:
    Insert the disc.
    Shut down the computer.
    Turn it on again whilst holding down the C key.
    You can let go when you see a spinning dial.
    Click through the menus until you after you’ve accepted a license agreement.
    Snow Leopard: At the top, click Utilities -> Reset Password.
    Lion: At the top, click Utilities -> Terminal. Type resetpassword in the Terminal and press Enter.
    Click on your main hard drive.
    In the dropdown box under “Select the user account” make sure to select your username.
    Underneath where it says “Reset Home Directory Permissions and ACLs”, click the Reset button.
    Press cmd + Q to Quit the Reset Password application. Press it again if you have a Terminal open.
    Click Mac OS X Installer in the top left and click Quit Mac OS X Installer.
    Click the Startup Disk button.
    Click on your main hard drive and click the Restart button.

  • "Users Folder" is HUGE!

    After moving all the applications from the boot drive I found the "users" folder was using up most of my boot drive. Can I move this folder to another hard drive without system consequence? I continue to have software system update messages saying the boot drive is too full.
    I've got lots of drive space in the computer, but I don't know what folders I can migrate. Or I'll move the whole boot process/system files to a much larger drive. Don't know which way is best.

    See the topic http://www.bombich.com/mactips/homedir.html which describes one such procedure.

  • After trying to change permissions on my computer so others on my network can access files, my external Hard Drive has a lock on it and I can't access files. I've tried repairing permissions, logging in under another Administrator account, using Terminal

    After trying to change permissions on my computer so others on my network can grab files, my external Hard Drive has a lock on it and I can't access files. I've tried repairing permissions, logging in under another Administrator account, using Terminal to fix the problem, downloaded BatChmod but nothing works… Any other suggestions? I have an Imac running OS10.6.8.

    There is suddenly a lock icon on my external backup drive!
    Custom Permissions

  • I used a terminal command to show the Library in the User folder, and now the Finder is behaving erractically.  Can anyone tell me how to reverse the show library terminal command?

    I used a terminal command in Lion to show the LIbrary in the Users folder, and now the Finder is behaving erratically, hanging up and becoming almost paralyzed.  Can anyone tell me how to reverse the terminal command for show Library.  The command I used was:
    chflags nohidden ~/Library/

    Showing the Library folder will not cause the problem you've described. Nevertheless:
    chflags hidden ~/Library
    will hide the folder. To reveal the folder:
    chflags nohidden ~/Library
    Note, there is no "/" after Library.

  • SUDO command - How to remove a User using Terminal?

    So I just inherited from my coworker's MacBook Pro. I then decided to transfer all of my files and realized that the root folder was still on his name. I changed the User's name in "System Preferences" but that did not change the root folder's name. I then went to Terminal and tried to change the folder's name using the "mv OldFoldersName NewFoldersName"  and the prompt said Permission denied. I then used "sudo mv OldFoldersName NewFoldersName". After restarting my computer, all the files were gone and I landed on a "LION first time USE" type of Desktop. All my files are gone and terminal shows me two users' names under /Users/ => OldUser and NewUser.
    What can I do to recover my old files? What can I do to repair my Mistake and only have one User?
    Thank you very much for your help.

    10Kg wrote:
    All my files are gone and terminal shows me two users' names under /Users/ => OldUser and NewUser.
    What can I do to recover my old files?
    If your adapt at using Terminal, why don't you hook up a blank external drive, command s boot into Single user root mode,
    ls /Users
    then cd to that directory or mv it to the external drive?
    Any why are you messing with Terminal and on your only copy of your files?
    Kind of risky right?
    Nearly everything on a Mac has been figured out and a safe GUI ability to allow users to do things, there is no need to risk the dangers of the Terminal and unknown under workings.
    But now you have to revert to your backup and start all over like John said.
    Read here for more options
    https://discussions.apple.com/docs/DOC-3046
    https://discussions.apple.com/docs/DOC-3045

  • How to use FileVault on second internal drive with user-folder?!

    Hi there,
    I've a problem that has not solved yet.
    My MBP early 2011 with OS X Lion 10.7.5 has instead the SuperDrive two internal harddiskdrives:
    The "System"-Drive (128 GB SSD) for nothing else than the MacOSX installation/applications, and the "User"-Drive (500 GB classic HDD) for all my data and my user-folder. (Yes, I moved it via Terminal commands from "System" to "User").
    All works fine, but I am only allowed to encrypt the "System"-Drive via FileVault2. The "User"-Drive is not supported by FileVault2.
    I tried to encrypt it with the Terminal commands:
    diskutil cs convert /Volumes/WD-Blue -passphrase
    (Note: "WD-Blue" is the name of the "User"-Drive)
    After confirming the new passphrase, it should be encrypting my "User"-Drive. In the HardDiskDrive-Utility is this hdd converted into a "Mac OS Extended (Journaled, encrypted)". So far, so good
    But, now the big problem:
    After rebooting the MBP, it is not possible to login.
    "An error has occured with this user" (or similar)
    I have to reboot, hold CMD+R, and deselect in the HDD-Utility the HDD-Protection, and decrypt this drive with the known passphrase.
    After this "correction", all works fine, but without the encryption...
    So... any ideas, how to protect the second hdd with my user-folder, without losing my data, because I think, when the second one has been deleted and the new format is "Mac OS Extended (Journaled, encrypted)", it won't solve my problem, because my user-folder is not on the "System"-Drive.
    Thank you, and sorry for my english
    Regards.

    Hi there,
    I solved my problem by inform myself...
    Here is the solution to encrypt the second internal drive, without losing data, if your user-folder is on the second one (and not on SYSTEM). I will type "WD-Blue" in this example. You have to type in your drivename, that you want to encrypt.
    Please note, that modifying your system this way is at your own risk!
    Add new user in the ucp with admin-permissions
    logout your user
    login as new user (admin)
    be sure, that no file on the second drive is in use
    open terminal
    type diskutil list to see your drives
    type diskutil cs convert /Volumes/WD-Blue -passphrase YOURPASSWORD
    Terminal should encrypt your drive. To check the status type diskutil cs list
    If the amount of bytes the same, the drive has been encrypted
    So, now still use terminal and type (after encryption has been accomplished):
    curl https://raw.github.com/jridgewell/Unlock/master/install.sh | bash
    Follow the promts and enter your given password for the encrypted drive (i.e. for "WD-Blue")
    Exit terminal and reboot
    Done
    This way works fine. My user-folder is still on WD-Blue (2nd Drive) and the hdd is encrypted without losing my files.
    Regards,
    Marc.
    List of references:
    Encryption without formatting:
    http://www.macworld.com/article/1162999/complete_guide_to_filevault_2_in_lion.ht ml?page=2
    Mount second encrypted drive while boot-sequence:
    https://github.com/jridgewell/Unlock
    Please note, that modifying your system this way is at your own risk!

  • DPM 2012 Failed to update permissions used in end-user recovery

    Hello everyone,
    I'm going to try the clearest way possible to describe the problem.
    Our test server is Windows Server 2012 with DPM 2012 SP1 CU2 (BKP-SRV01) with a Remote SQL server 2012 (PBASC)
    I protected a share folder on a DC on Windows Server 2008 R2 (PAD)
    When I activate End-User Recovery I get a warning in the monitor tab that say this
    Failed to update permissions used for end-user recovery on pad. Permissions update failed for the following reason: (ID 3123)
    DPM is unable to enumerate contents in pad_PartageTest on the protected computer BKP-SRV01. Recycle Bin, System Volume Information folder, non-NTFS volumes, DFS links, CDs, Quorum Disk (for cluster) and other removable media cannot be protected. (ID 38 Details:
    the end user recovery is working, but i do not know if it affect other things. I also get that message when i try to browse on the DPM server when creating a protection group
    When I go see the DPM Server / File and Storage Services / Shares on Server Manager i get  "Failed to retrieve folder permission" in the properties of the Protected server share.
    I tried to search for almost 2 days without finding anything about that particular issue.
    Is there a way (clean way) to fix the issue?
    Thanks in advance for the help!

    Closing for housekeeping.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This
    posting is provided "AS IS" with no warranties, and confers no rights.
    That's not very helpful. I've got the same issue :(
    Comes up for servers where a protection group related to it errors out (recovery point failure usually).

  • After using time machine my users folder cannot be seen, but all information is still intact. Where did it go?

    After using time machine my users folder cannot be seen, but all information is still intact. Where did it go?

    This is a new feature or bug if you want to call it that in OS X 10.9.3
    Until Apple fixes this, here is a temporary work around.
    Copy and paste the following command in the Terminal and then hit Enter, followed by your password.
    sudo ln -s /Users /Users\ Folder; ln -s /Users/Shared /Users/Shared\ Folder
    This will put a link to the Users folder called "Users Folder" on your Hard Drive and a link to the Shared folder called "Shared Folder" inside of the Users folder.

Maybe you are looking for

  • Zen is stuck on rebuilding.

    So my zen 2 gb crashed yesterday (like always) it went to the rebuilding screen but it never finishes rebuilding. I reseted the thing like 0 times already and it does the same thing. Same night I just let the battery died and when I charged it up thi

  • Doc Splitting with Project Center wise

    If we take each Plant as a Profit Center, Is it possible to see each Profit center wise document splitting for     P&L and Balance Sheet Accounts?

  • Cannot Deliver as low on stock

    Hi all, I have support case. The problem is we can't deliver because we don't have enough stock, but we don't want any availability check which is why we use item category ZBN. The schedule line category is L1 which doesn't have availability check, b

  • 8GB ipod touch keeps freezing up and won't run apps correctly

    I have an 8GB ipod touch that is almost a year old and it keeps freezing up.  Some apps that use the motion side to side to move objects, doodlejump for example, won't work.  I have reloaded apps and restored the ipod and it is still having a problem

  • Problem with OCX licenses in Forms 6

    I've inserted an OCX in my Oracle Forms 6 application. It works fine, but when i execute the application in a client, with a InstallShield redist, registering my ocx correctly, Forms Runtime requieres my OCX LICENSE. ?Why? THE LICENSE IS ONLY FOR DEV