12 Replies Latest reply: Jul 2, 2013 12:46 AM by rocktwang
rocktwang Level 1 Level 1 (0 points)

I have been creating different user accounts (as the whole family has been using admin).

My son uses minecraft and his saved data would not work in another user, so i started tinkering . . . .

 

I have caused a problem in my admin account (various applications wont work, mail, skype, spotify, no sure what else yet) i think it was caused by typing in terminal, not sure exactly what i typed, not sure how to look at terminal history, is that possible?

 

I think it has changed my permissions.

Is there any risk of loosing valuable files (photos and music mainly) changing sharing and permissions settings for different users?

If i repair permissions in disk utility do i run the risk of loosing valuable files?

 

Help!!


iMac, Mac OS X (10.7.5)
  • rocktwang Level 1 Level 1 (0 points)

    Also console is opening which i dont really understand, is that a list of things that i have done? or is it what the system is doing?

  • Chris Goulbourne Level 1 Level 1 (100 points)

    Console will be displaying a list of what it is doing. In terminal if you press the up arrow it will take you through a list of the commands you entered

  • rocktwang Level 1 Level 1 (0 points)

    Thanks Chris

     

    Do you know if the commands i entered could effect permissions?

     

    For example

     

    Last login: Mon Jul  1 08:48:51 on console

    Brians-iMac:~ briplumb$ chflags nohidden -/Library

     

    or

     

    Last login: Mon Jul  1 08:48:51 on console

    Brians-iMac:~ briplumb$ jar xf ~/library/application\ Support/minecraft/bin/minecraft.jar

     

    Thanks again

    Brian

  • andyBall_uk Level 7 Level 7 (20,490 points)

    neither of those should have altered permissions, the first (if entered with a ~ rather than -) would have made the 'home' Library visible, without having to use Finder - Go menu (while holding Option)

  • andyBall_uk Level 7 Level 7 (20,490 points)

    the command

    history 50

    should show the last 50 commands you entered in a particular account.

  • rocktwang Level 1 Level 1 (0 points)

    Thanks very much Andy, these are all the commands that have been made, are any of these likely to cause permission issues?

     

    Last login: Mon Jul  1 11:25:48 on ttys000

    Brians-iMac:~ briplumb$ history 50    1  cd

        2  mkdir

        3  cd-

        4  cd

        5  mkdir mctmp

        6  cd mctmp

        7  jar xf ~/library/application\ Support/minecraft/bin/minecraft.jar

        8  chflags nohidden -/Library

        9  history 50

     

     

    Thanks again

    Brian

  • andyBall_uk Level 7 Level 7 (20,490 points)

    >>are any of these likely to cause permission issues?

     

    No, and do note the difference between ~ which is short for a user 'home' folder and -

     

    did you enter any commands in other user accounts ?

    if not, please describe what happens when you try the apps which are a problem, and include any console messages from the time you try. Do the apps behave for other users ?

  • rocktwang Level 1 Level 1 (0 points)

    I didnt enter any other commands in terminal in the admin user.

     

    However this user has these, but i think i typed some wrong.

     

    Last login: Mon Jul  1 06:46:00 on console

    Brians-iMac:~ Family$ history 50

        1  1n -s /Users/shared/saves -/Library/Application\ Support/minecraft/saves

        2  /Users/shared/saves -/Library/Application\ Support/minecraft/saves

        3  1n -s /Users/shared/saves -/Library/Application\ Support/minecraft/saves

        4   /Users/shared/saves -/Library/Application\ Support/minecraft/saves

        5  "ls -l"

        6  ln -s /Users/shared/saves ~/library/Application\ Support/minecraft/saves

        7  ln -s /Users/shared/saves ~/library/Application\ Support/minecraft/saves

        8  history 50

    Brians-iMac:~ Family$

     

    I have subsequently solved the minecraft problem by copying a folder from the admin account to the new account.

     

    The problems in the admin account are in mail, nothing happens when i clicked on mail icon, although the menus arrive at top of the desktop. I have been checking the folders and files in application support, mail, and they all seem to be set to read only, will it hurt to change them to read & write ?

     

    Skype says,

    Can't open the lock file at /Users/briplumb/library/Application Support/Skype/Skype.pid. The file exists but you have not enough priveleges to write to it.

    check permissions and lauch Sype again.

     

    Spotify says,

    Warning!

    Unable to initialize the storage of temporary files.

     

    I have change permissions for some folders, and there enclosed, in iphoto library and some of the minecraft files in application support. Perhaps they have affected the other permissions?

     

    Thanks again for your help

    Brian

  • rocktwang Level 1 Level 1 (0 points)

    This is the console message from mail

     

    01/07/2013 18:58:56.983 Mail: 0x7fb7b29280f0 got exception setting PRAGMA cache_size (error 14: unable to open database file), current retries 2

    01/07/2013 18:58:57.985 Mail: 0x104854db0 got exception setting PRAGMA cache_size (error 14: unable to open database file), current retries 1

    01/07/2013 18:58:59.986 Mail: 0x104855260 got exception setting PRAGMA cache_size (error 14: unable to open database file), current retries 0

    01/07/2013 18:58:59.987 Mail: [+[Library executeBlock:isWriter:useTransaction:isPrivileged:]] Error 14 setting PRAGMA cache_size

    01/07/2013 18:58:59.987 Mail: setting PRAGMA cache_size

     

    Thanks Brian

  • rocktwang Level 1 Level 1 (0 points)

    This is the console message from spotify

     

    01/07/2013 20:27:28.556 [0x0-0x126126].com.spotify.client: 19:27:28.555 I [breakpad.cpp:107                ] Registered Breakpad for product: spotify

    01/07/2013 20:27:28.556 [0x0-0x126126].com.spotify.client: 19:27:28.555 I [translate.cpp:139               ] Reloading language file

    01/07/2013 20:27:28.656 [0x0-0x126126].com.spotify.client: 19:27:28.655 F [storage.cpp:1532                ] Unable to open index: /Users/briplumb/Library/Caches/com.spotify.client/Storage/index.dat (13)

     

    and this from Skype

     

    01/07/2013 21:14:55.881 Firewall: Skype is listening from 0.0.0.0:8723 proto=6

    01/07/2013 21:14:55.884 Skype: -[ABAddressBook sharedAddressBook] Can't ABACQUIRE_FILE_LOCK /SourceCache/AddressBook/AddressBook-1091/Framework/AddressBook/ABAddressBook.m :4060

    01/07/2013 21:14:55.885 Skype: Application is not entitled to access AddressBook contacts

     

    and the message changed to someone is already signed in on this computer but i have been in all users and made sure its closed.

  • andyBall_uk Level 7 Level 7 (20,490 points)

    Hi Brian,

     

    Those commands wouldn't have done it - but changing permissions applying to enclosed may have.

     

    see OS X: After "Apply to enclosed items…

  • rocktwang Level 1 Level 1 (0 points)

    Thanks very much for your help Andy.

     

    It did not work immediatley after performing what it said in

     

    OS X: After "Apply to enclosed items…

     

    so i restarted and hey presto!!

     

    Thanks again for your help.