My permissions seem to be borked, how do I fix this?

I made a complete backup of the system with "rsync -aAXv", and set up my encryption. After restoring everything, and booting up and trying to login, openbox didn't want to start, and "startx" didn't work either. After a bit of testing I noticed that I didn't have the permissions to create the necessary temporary files and therefore x and openbox didn't start.
I just ran "ls -l" on /home/john/.Xresources
"-rw------- 1 john john 54 Sep  6 11:10 /home/john/.Xauthority"
When I try to run openbox, I get this:
"Openbox-Message: Unable to make directory '/home/john/.cache/openbox': Permission denied
Openbox-Message: Unable to make directory "/home/john/.cache/openbox/sessions": Permission denied
Openbox-Message: Failed to open the display from the DISPLAY environment variable."
Where does the problem come from?
Can using pcmanfm to copy files (ctrl-c + ctrl-v) cause this? I first had to copy the backup from my external harddrive (ext4) to my laptop (btrfs) and then back before I restored the files on my desktop pc.
Last edited by Nordic89 (2014-09-07 10:10:01)

When copying files/folders with root privilages, root becomes the owner of these files/folders. It may be that some of the directories and files you copied are owned by the root user/group and not user/group john. What you could do is change the permissions of all files in the directory recursively so that all files are owned by user/group john. This can be done using 'chown'. Login as root user or if you have administrative privilages, use 'sudo' followed by the below command to change the permissions of all the files in the directory "john" recursively:
# chown -R john:john /home/john
What this does is recursively (-R) change the user:group (ownership) of all directories and its content to john:john, thus allowing that user full acces to all files in that directory.
To learn more about chown and user permissions:
$ man chown
Arch Wiki: File permissions and attributes
Last edited by rgb-one (2014-09-13 17:10:48)

Similar Messages

  • Movies downloaded are stoping occasionally and seem to be loading, how do I fix this?

    Each time I play a movie which is downloaded the movie stops several times and seems to be reloading or streaming and takes sometimes many more minutes to watch, any ideas how to fix this? The wifi is no problem.

    That would indicate either a local network or more likely an Internet connectivity issue.
    What is the download speed of the Internnet connection supposed to be?  What are you actually getting?  Test it from a site like speedtest.net.

  • My documents on ipad 3 closes everytime I try to open it.it happened after I did an update last week.all my files and folders seem to be lost.how can I fix this?

    What can I do my documents keep closing when I tried to open it i have updated it last week and now it seems like it is not working.what cud the problem be?

    Can you start Firefox in [[Safe mode]] ?
    You can also do a clean reinstall and download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    You can initially skip the step to create a new profile, that may not necessary for this issue.
    See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • How can I fix this permissions "Library/Printers-should be 80 group is 0. Permissions differ. And User differs on "private/var/db/displaypolicyd" should be 0; Group is 244?

    How can I fix this on my 2014 iMac, please?
    Verifying permissions for “Macintosh HD”Group differs on “Library/Printers/InstalledPrinters.plist”; should be 80; group is 0.Permissions differ on “Library/Printers/InstalledPrinters.plist”; should be -rw-rw-rw- ; they are -rw-r--r-- .User differs on “private/var/db/displaypolicyd”; should be 0; user is 244.Group differs on “private/var/db/displaypolicyd”; should be 0; group is 244.
    I run the "fix" and it seemingly does, but if I verify permissions again later it returns.
    Thank you!

    It's not an error but an informative message that you can safely ignore. it's innocuous.

  • I keep getting the spinning wheel, and macbook pro seems to be slowing down.  How do i fix this without buying software?

    I keep getting the spinning wheel, and macbook pro seems to be slowing down.  How do i fix this without buying software?

    Go to system profiler and report back the amount of RAM that you have.
    Make sure that you have at least 20% of your hard drive free.
    Make sure you don't have a lot of items on your desktop as that can slow things down.
    Quit applications that aren't responding or you aren't using and won't be using for a while.
    ~/Library/Caches Quit all applications and delete this folder. Do a regular delete then do a secure erase on all the items that won't delete.
    If it only happens with a certain application (Safari for example)...
    1. Quit the application (Safari)
    2. Open ~/Library/Preferences and find the file for safari (com.apple.Safari.plist).
    3. Put the file in the trash. Do NOT empty the trash yet. Open the application and make sure everything's ok. Now you can delete the file. In Mail if you trash the file, you will get rid or your setup.
    Make sure that your dashboard doesn't have too many widgets and use Activity Monitor to see what it's using.
         There are ways to disable if you want to.
    Make sure that all of your software is up to date.
    Repair permissions (it can't hurt)
    Don't have a lot of login items.
    Your internet browser shouldn't have a lot of extensions.
    I hope this helps
    Chris

  • I cant seem to download and install the latest iphone software update. I have tried since the release and have been unsuccessful on more than 7 occasions and lost all the data on the process. Anyone have that problem an how do I fix this problem?

    I cant seem to download and install the latest iphone software update. I have tried since the release and have been unsuccessful on more than 7 occasions and lost all the data on the process. Anyone have that problem an how do I fix this problem?

    Hi
    Thanks but I have tried doing the above - when I said 7 times I was modest, its more like 15 times.
    And I am referring to the 5.1 software update. I dont have wifi so I guess I will have to try that seeing that my husband also has the same problem - he has also tried downloading several times. It always times out en says that the connection is lost but yet there are always an internet connection and a decent signal once it stopped. Think it said error 32052 or something!
    I am disappointed because the update includes inprovement on the battery life - did you guys notice any difference?

  • Hello, when i open itunes i get the message: The iTunes Library file cannot be saved. A folder was specified instead of a file.  It seems I can't update my itunes library. how do i fix this? thanks in advance

    hello,
    when i open itunes i get the message: The iTunes Library file cannot be saved. A folder was specified instead of a file. 
    It seems I can't update my itunes library. how do i fix this? thanks in advance

    Hi there Br0x,
    You may want to try rebuilding the iTunes library as an initial troubleshooting step. Take a look at the article below for more information.
    iTunes: How to re-create your iTunes library and playlists
    http://support.apple.com/kb/ht1451
    -Griff W.

  • When using Migration Assistant to transfer files from my pc, I get an error message saying that an attempt was made to access a socket in a way forbidden by its access permissions.  How can I fix this?

    When using Migration Assistant to transfer files from my pc, I get an error message saying that an attempt was made to access a socket in a way forbidden by its access permissions.  How can I fix this?

    You followed:
    http://www.apple.com/support/switch101/

  • Screen rotation lock is missing. It seems to have been replaced by a "mute on/off" button instead. How do I fix this?

    It seems to have been replaced by a "mute on/off" button instead. How do I fix this?
    I'm using an iPod 3G running 5.1.1.

    I have the same issue as the person in this thread. https://discussions.apple.com/message/15245430#1524543
    I have also fixed my issue thanks to that thread, thank you.

  • HT2506 hi i can't seem to copy and paste pdf files from preview to a microsoft word document. it always comes up with nonsense characters in the word document. how do i fix this? thanks in advance

    hi i can't seem to copy and paste pdf files from preview to a microsoft word document. it always comes up with nonsense characters in the word document. how do i fix this? thanks in advance

    Hi,
    The quickest way to do this (tested with OS 10.8.2, MS Word 2011) is in one line:
    tell application "Microsoft Word" to close every document whose name begins with "book"
    The reason why your script doesn't work is that you aren't specifying to Word which document you want it to close.
    So, changing one line ought to do it:
    close document incrementvalue -- instead of "close document"
    But... when you close a document, you change the document count. Document 2 becomes document 1, document 3 becomes document 2 etc. So eventually you'd get a message saying "The object you are trying to access doesn't exist".
    Because of this, if you want to do it in a repeat loop, you have to work backwards:
    tell application "Microsoft Word"
      set doc_count to count documents
      repeat with x from doc_count to 1 by -1
      if name of document x begins with "book" then close document x
      end repeat
    end tell
    Hope this helps.

  • After updating to Yosemite, I updated iPhoto. Alert said to convert my library to new iPhoto. Then alert said I needed to repair permissions. Then a freeze. Then iPhoto won't find and show my library. How do I fix this?

    After updating to Yosemite, I updated iPhoto. Alert said to convert my library to new iPhoto. Then alert said I needed to repair permissions. Then a freeze. Then iPhoto won't find and show my library. How do I fix this? I can see the library icon on my external drive, but it doesn't show as a library in iPhoto. When I double click on the icon, nothing happens. When I choose it from alternate menu, doesn't open. Where do I get help?

    Peter
    Do you have a back up? What version of iPhoto do you have? Assuming 09 or later:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • I have just required a second hand mac and when I try to download a song or import a cd to iTunes an error notice says that I am not priveledged to make changes? The preference settings and apple I'd seem to be ok. How do I fix this?

    I have just required a second hand mac and when I try to download a song or import a cd to iTunes an error notice says that I am not priveledged to make changes? The preference settings and apple I'd seem to be ok. How do I fix this?

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • After installing Mountain Lion.  Under sound, where it says select an output device, it say no output devices found and there is no sound.  How do I fix this?  I have reinstalled the os twice and still the same.  I have also repaired permissions.

    After installing Mountain Lion.  No sound. Under sound, where it says select an output device, it says no output devices found, and there is no sound.  How do I fix this?  I have reinstalled the os twice and still the same.  I have also repaired permissions.

    Try resetting the PRAM and SMC...
    PRAM Reset:
    http://support.apple.com/kb/HT1379
    SMC Reset:
    http://support.apple.com/kb/HT3964
    Hope this helps!

  • Flashplayer seems to download but wont work ! How can I fix this ?

    Flashplayer seems to download but wont work ! How can I fix this ?

    Moved to Installing Flash Player.
    Recommended Links to Windows Installers
    Please try installing from the appropriate stand alone Windows installers located here:
    Installation Problems - Flash Player - Windows
    http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html#mai n-pars_header
    Direct Links to Windows Installers
    Flash Player for ActiveX (Internet Explorer)
    http://download.macromedia.com/pub/flashplayer/current/support/install_flash_player_ax.exe
    Flash Player Plug-in (All other browsers)
    http://download.macromedia.com/pub/flashplayer/current/support/install_flash_player.exe

  • I recently purchased an iMac and transferred all of my documents etc. from my Macbook Pro, but now it seems as if some of my photos are distorted and squished. Does anyone know how I can fix this?

    I recently purchased an iMac and transferred all of my documents, photos etc. from my Macbook Pro. Everything seemed fine until I opened iPhoto and now it seems as if some of my photos are distorted and squished. Does anyone know how I can fix this?

    How did you move your iPhoto Library from the old Mac to your new one?
    Do the following:
    1 - launch iPhoto with the Command+Option keys held down to open the First Aid window. Be sure to follow the circled recommendation in the screenshot.
    2 - run Option #4, Rebuild Database.

Maybe you are looking for

  • I and K keys no longer working on Macbook keyboard

    The I and K keys no longer work, it seems. I've restarted, attempted to clean out the keyboard, restarted again, etc. No dice. Sometimes when I push I or K I'll get an odd string of characters--'YIOU' or a bunch of symbols--but mostly I just get no r

  • App update problem with iOS 6.1

    Hi there, Since I updated my IPhone 5 to IOS 6.1, I am not able to update my apps through app store! what is the problem? Thanks,

  • How to attach input file in the Test Script in SECATT in ECC6 ?

    Hi , How to attach input file in the Test Script in ECC6  in Tcode SECATT ? For Testing in SECATT in ECC6, how to attach input file which contains multiple records ? Best Regards, Padhy

  • IPod updater breaks iPod Mini

    my iPod mini has worked fine for over a year, only a couple of freezes that were easily corrected by a reset. yesterday I download the latest iTunes, and the iPod Updater 2005-9-23. Since then my Mini refuses to download more than 2-3 songs without l

  • IBOOK G4 #A1080 Screen (No Video, Black)

    Most recently my son turned on his  ibook  and his screen was black, the computer is running but he can't see anything on the screen. Specifications are as follows:  serial # LW550647QRYC Model # A1080. Does Apple still warrant, have the website to v