Unable to change home folder owner? ls -al showing root

Hello.
I seem to be unable to change the owner of my home folder?
I have tried to use the following command:
sudo chown -R myusername /home/myusername
I even tried to log in as root and do the same, and still ls -al shows root as owner..
I think i have been able to chmod the home folder though, because i can create and delete files in my users homedir.
However, this is kinda bothering me because vncserver seem to be unable to read its passwd file as its asking for a new password every time i start it.. (unless i start it with sudo, but then it reads the passwd file from /root/.vnc/passwd)

If you want proper permissions/acl support you'll have to create a usermapping from uid and gid to microsoft sid. If I don't want to share it with windows I create a usermapping like this:
https://www.tuxera.com/community/ntfs-3 … r-mapping/
#!/bin/sh
domain=$(sed -e "i obase=10\nibase=16" -e "s/[[:xdigit:]]\{8\}/\U&\n/g" /etc/machine-id | bc | {
read a
read b
read c
echo "$a-$b-$c"
echo "# generic \.NTFS-3G\UserMapping"
echo "# (id generated from /etc/machine-id)"
echo
echo "# root group"
echo ":0:S-1-5-21-$domain-512"
echo "# root user"
echo "0::S-1-5-21-$domain-500"
echo "# user group"
echo ":users:S-1-5-21-$domain-513"
echo ":100:S-1-5-21-$domain-513"
echo "# generic template"
echo "::S-1-5-21-$domain-10000"
Last edited by progandy (2014-03-31 16:16:19)

Similar Messages

  • How to change home folder name

    How to change home folder name ?

    Here are the instructions from Apple on changing user short name or home directory name. I've used this on a couple of used MacBooks I've bought on eBay. And remember to go into System Preferences>Sharing and change the Computer Name in there.
    http://support.apple.com/kb/HT1428

  • Changed home folder name, how do I get my desktop back?

    I changed the home folder name and when I logged off and then back on to the computer, my desktop was completely different. I was told by apple care that it had to be corrected through the command lines. I would greatly appreciate someone's help with this issue!
    iMac   Mac OS X (10.4.10)  

    http://docs.info.apple.com/article.html?artnum=107854

  • Change home folder

    How do I change both the short and long name in my home folder? My name was entered incorrectly when setting up. This was done through the directory utility in Snow Leopard but there is no directory utility in Lion.

    Mac OS X- How to change user short name or home directory name
    Macworld | Changing the short username in Leopard
    The second reference should work in Snow Leopard and Lion. Use the last procedure titled, "The Full Monty."

  • Changing HOME folder name

    Just upgraded to 10.5. My Home folder (the little house icon) won't let me change its name.
    The message I get is:
    'martinwhite' can't be modified or deleted because it is needed by OS X
    How do I rename it?
    Cheers,
    martinwhite !!!!!

    MartinJapan2007 wrote:
    Just upgraded to 10.5. My Home folder (the little house icon) won't let me change its name.
    The message I get is:
    'martinwhite' can't be modified or deleted because it is needed by OS X
    How do I rename it?
    Cheers,
    martinwhite !!!!!
    That's called your "short" name.
    Open System Preferences, open Accounts, select yours.
    Click the lock icon below to open it up. You need to enter your password.
    Now, right-click your name and you will see "Advanced Options"
    Here you can change your "short name"
    Please read the warning and be sure you have a very recent backup - - just in case.

  • Change Home folder for AD accounts to a separate NAS

    Hi,
    We're running a large Windows network at a school with all pupils having individual Windows domain logins. Most of the subjects use Windows based PC's (Win 7). However, a small number of departments (Art, Music etc) have a number of Macs.
    We have the Macs running fine on the network with pupils able to log in on the Macs via their AD accounts (all Mac workstations joined to both OD and AD - running 10.9.4). They have access to their "Windows" home folder on the dock and also a separate Home folder created locally on the mac they log into. Until now that has been fine. However, we want to move to having all the Mac home folders on one NAS, giving greater flexibility for pupils to move from Mac to Mac and keep the same files, and also retain separate access to their AD folders too (although this last bit isn't essential)
    I gather I can edit their AD accounts to change the Windows home folder to point to the NAS used for the Mac Home folders, which will fix the problem when they log onto the Macs. But of course this is of no use as they will still need to be connecting to their Windows home folder whenever they log onto a PC.
    On the Mac server (running 3.1.2) the ability to change the Home folder is grayed out for AD accounts. Similarly when I try and change the Home path in Workgroup Manager (10.9) the process errors - "Error of type eDSNoStdMappingAvailable (-14140) on line 1351 of /SourceCache/WorkgroupManager/WorkgroupManager-421/Plugins/UserAccounts/UserVol umesPluginView.mm"
    Finally, I have also gone into the Directory Utility and tried changing the NFSHomeDirectory to the correct path manually, but again when I try and save I get an error "An invalid attribute type was not provided".
    Just to get to the nub of the problem - can I set up a separate networked home folder location for AD users logging onto my Macs, independent of the Windows home directory. Ideally as I have well over 1000 student accounts this is something I'd like to be able to sort en mass rather than individually, but will take any suggestions at this point!
    Cheers,
    LSDWho

    Hi,
    Could still do with trying to work out if this is possible. If anyone has any ideas / suggestions it would be much appreciated.
    Cheers,
    LSDWho

  • Unable to save home folder while deleting account

    Hi there:
    I am trying to delete a user account from a 10.6.8 MBP. I want to save the user's home folder to a DMG, like I always do. There is 201.42GB free on the HD. I get an error when trying to delete the account, however, that:
    "The home folder cannot be saved. To save the folder, you need 57.6GB of free disk space." (Well, it's not really an error. The "save folder" option is greyed out, with that explanation).
    LIke I mentioned, there is over 200GB free on the drive. I tried repairing permissions and rebooting. Verified disk. No help.
    Can anyone advise?
    Thanks!

    Grrr...Never mind. Once I took ownership of the user's folder, OSX started reporting the correct size. There is not, in fact, enough room on the HD, so I'll figure something else out.
    Thanks.

  • Unable to create a folder in lower levels of root folder

    It appears to me I cannot create a new folder in the lower levels of root folder. Currently, I have to create a new folder right below root folder and then drag it to lower level folder. Why I can't do it in one go. Thanks!

    Hi Ray. That is normal behavior for Snow Leopard now. The OS wants to reserve the root level for itself. Also, folders you create at the root level may not accurately reflect the correct permissions.
    You want to try to keep all your files/folders in your Home (User) folder. That way all your documents remain portable when you move to another Mac or migrate your data back after an Erase & Install. If your docs are scattered all over the drive there is a chance some stuff will not get transferred during a move. So try to keep everything inside your Home folder.
    If you have to place a new folder at the root level, try creating the folder on your Desktop, then dragging it to the root level.
    And Welcome to the Macintosh!
    You might find the following links helpful:
    http://www.apple.com/support/switch101/
    http://www.apple.com/support/mac101/
    Cheers!

  • Cannot change public folder owner in adsiedit to the server_name$ where PF are stored

    Hi,
    I have migrated PF from Exch 2003 to the Exch 2010 SP2 RU6.
    Some of PFs still have the old Exchange 2003 servername as the owner in Security-Advanced-Owner of ADSIEdit.
    However when I try to change it to the Exch2010_server_name$ (the one where Public Folders are mounted - I cannot (without any reason). But I can change it to one of the CAS servers, strange isn't it?
    I have already tried this using domain admin account and Exchange admin account (both are assigned to Public Folder Management).
    Can you help me to set the correct server name (as it is set for new public folders), please?
    BR Michal Ziemba

    Hi  Michal,
    Based on my knowledge, we don't need to change the owner of public folder manually when we migrate public folder.
    The issue may be related to AD replication. You can run Dcdiag on your domain controllers and make sure you're not having replication problems.
    Here is a thread for your reference.
    Public Folder Issues - Exchange 2010 after migration from 2003
    http://social.technet.microsoft.com/Forums/exchange/en-US/fe0909c1-ee2e-448b-ad89-e8f4ff92b4a9/public-folder-issues-exchange-2010-after-migration-from-2003-insuffaccessrights?forum=exchange2010
    Hope it helps.
    If there are any problems, please feel free to let me know.
    Best regards,
    Amy
    Amy Wang
    TechNet Community Support

  • Unable to change home page ??

    Safari returns to default home page every time I turn the computer back on. I can change it then and it maintains itself as long as the computer is active, but in the morning, I have to re-set it
    Is this a common problem, os something specific to my computer, a possible flaw

    Hello Oleiva and Nabis:
    Welcome to Apple discussions to both of you.
    Try this:
    Close Safari. Trash the Safari preference file
    (com.apple.safari.plist). Open Safari and reenter
    your personal prefernces (including your preferred
    home page).
    Everything should 'stick' now.
    Barry
    Hello Barry...
    I did that 2 or 3 times times and it came back after a reboot or after a complete shut off of the computer. I also Zap the pram and 3 other solution propose by the Apple online support. At this day... still stuck with the apple start page. I realy dont know what to do.

  • "Home" Folder doesn't show

    Hi,
    I had formatted my macbook pro with mac lion OSX installed from usb drive and everything went well except the major issue that I am unable to see "Home" folder with house icon in finder sidebar. Infact, application icon also couldnt be seen in dock. Tried formatting system several times but in vain
    Thanks

    From the Finder menu:
    Finder>Preferences>Sidebar---->check the box with the house.
    Mac 101.

  • Applications not in 'Home' folder

    For some reason all of my apps are in the sub-folder, 'Applications'. The main 'App' folder is empty. I don't know how this happened. Is there an easy way to move/copy to main folder?
    Thanks!

    Is one of the Application folders in your Home folder and one in the root level (/Applications) of your drive. Usually, Applications are installed to /Applications, not in Users/yourname/Applications.
    Or, is it a subfolder of your Applications folder? In other words /Applications/Applications.
    First let's copy those folders to removable media for safety, if you don't already have a backup.
    Either way you need to check carefully which Applications are real and which are alias. The is an arrow icon on aliases and when you "Get Info" (command - i) or just Preview in Finder, the "kind" will be "alias". Round up the "real" Apps and put them in /Applications. When all are copied into Applications, delete Users/yourname/Applications.
    -mj

  • User in unable to change background image/theme

    Hello,
    I am currently working with a user who is unable to change is background image it only shows a black background. He is currently on Windows 7 Enterprise Edition
    We have tried the following troubleshooting steps:
    1. Ran full system scan with no results
    2. Ran sfc /scannow
    3. Ran diskchk
    4. Copied over new TranscodedWallpaper.jpg
    5. Checked Power Options - Checked desktop background settings - expaneded slideshow and made sure Plugged in option is set to Available
    6. Checked that Remove Background images is not selected in Ease of Access Center
    We go not have a group policy set to disable the changing of the wallpaper and he is the only user with this issue.
    Any assitance would be greatly appreciated. Source:
    https://support.microsoft.com/en-us/kb/2504610
    Thank you,
    Sunny

    Hi sshah210,
    Try this registry key method .
    Navigate to the following path :
    HKEY_CURRENT_USER\Control Panel\Desktop\Wallpaper
    Choose a picture path and configure it .
    If the issue persists , I agree with S.Sengupta.We can create another account to have a check .
    Best regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • HOME FOLDER not in Macintosh HD USERS FOLDER

    My Home Folder does not show in USERS folder within Macintosh HD. The only folder in Macintosh HD is Shared.
    The Home Folder does show up in Places and all files are still there.
    How do I have the Home Folder and its icon show up in Macintosh HD under Computer
    I have iMac 24 with OSX 10.5.8 with 2.4GHz Intel Core 2 Duo Processor with 2 GB 667 MHz DDR2 SDRAM
    Thanks for any help!

    unless you've moved it it likely just became invisible. run this in terminal
    chflgs 0 ~
    see if the home folder shows up in /Users.

  • I bought a MacBook Pro off of someone and the home folder is still in their name...is there any way I can change it without losing all of my stuff?

    So I recently bought a MacBook Pro off of someone so I can use it for school. The home folder is still in the previous owners name and I was wondering if there is any way I could change it without losing all of my stuff that is on the MacBook Pro??  Thanks for your help!

    See Changing user account short name

Maybe you are looking for