Setting $TMPDIR
I've removed /var/folder/ for some reasone, and, after that, I found my preview is not working, and copy and paste is not working, and temporary files are starting to reside in root directory.
After looking through the some threads, I found I've removed system's temporary folder, which is designated as $TMPDIR.
I've made the /var/folder and set the permission correctly, but, now, it seems like $TMPDIR is not set correctly. 'echo $TMPDIR' gives me nothing. That might be why some temporary files are being made in the root directory, but still some functions are not working correctly due to permission issue. Does anyone have idea how can I set this variable correctly?
Thanks
Karunya,
I added tmpdir="C:\Program Files\Premise\BMD Client 4.0.1\temp" to my EXEs INI file. I then restarted the EXE and the files I mentioned were still being written to C:\Documents and Settings\userid\Local Settings\Temp.
No example. This happened with LabVIEW 8.5 as well. That is, going to Tools>>Options>>Paths and setting the Temporary Directory to something other than the default. Then restarting LabVIEW. Saw the addition of tmpdir in the LabVIEW.ini file, but no apparent effect to LabVIEW itself.
Chris Roth
Similar Messages
-
Mutt/Offlineimap Sent mail is showing up in Gmail Inbox
Hi,
I am just starting my journey with mutt and quite like the interface thus far but I am having trouble with sent emails showing up in my Gmail inbox. It is a little annoying to always have my sent emails appear as unread in my inbox. In my search for a solution I have found that this behavior sometimes occurs if you have Gmail filters that are set to never send to spam, I checked and do not have any such filters. This could also happen if I had $record set, but I have specifically unset record. My muttrc and offlineimaprc are as follows (I used several tutorial sites to help create these) (I have hashed out some personal details):
muttrc
# Paths ----------------------------------------------
set folder = ~/.mail # mailbox location
set alias_file = ~/.mutt/alias # where to store aliases
set header_cache = ~/.mutt/cache/headers # where to store headers
set message_cachedir = ~/.mutt/cache/bodies # where to store bodies
set certificate_file = ~/.mutt/certificates # where to store certs
set mailcap_path = ~/.mutt/mailcap # entries for filetypes
set tmpdir = ~/.mutt/temp # where to keep temp files
set signature = ~/.mutt/sig # my signature file
# Basic Options --------------------------------------
set wait_key = no # shut up, mutt
set mbox_type = Maildir # mailbox type
set timeout = 3 # idle time before scanning
set mail_check = 0 # minimum time between scans
unset move # gmail does that
set delete # don't ask, just do
unset confirmappend # don't ask, just do!
set quit # don't ask, just do!!
unset mark_old # read/new is good enough for me
#set beep_new # bell on new mails
set pipe_decode # strip headers and eval mimes when piping
set thorough_search # strip headers and eval mimes before searching
# Status Bar -----------------------------------------
set status_chars = " *%A"
set status_format = "───[ Folder: %f ]───[%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]───%>─%?p?( %p postponed )?───"
# Header Options -------------------------------------
ignore * # ignore all headers
unignore from: to: cc: date: subject: # show only these
unhdr_order * # some distros order things by default
hdr_order from: to: cc: date: subject: # and in this order
# Account Settings -----------------------------------
# Default inbox.
set spoolfile = "+mygmail/INBOX"
# Alternate email addresses.
alternates ####### ########
# Other special folders.
set mbox = "+mygmail/archive"
set postponed = "+mygmail/drafts"
# Index View Options ---------------------------------
set date_format = "%m/%d"
set index_format = "[%Z] %D %-20.20F %s"
set sort = threads # like gmail
set sort_aux = reverse-last-date-received # like gmail
set uncollapse_jump # don't collapse on an unread message
set sort_re # thread based on regex
set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
# Index Key Bindings ---------------------------------
bind index gg first-entry
bind index G last-entry
bind index R group-reply
bind index <tab> sync-mailbox
bind index <space> collapse-thread
# Ctrl-R to mark all as read
macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
# Sync email
macro index O "<shell-escape>offlineimap<enter>" "run offlineimap to sync all mail"
macro index o "<shell-escape>offlineimap -qf INBOX<enter>" "run offlineimap to sync inbox"
# Saner copy/move dialogs
macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
# Pager View Options ---------------------------------
set pager_index_lines = 10 # number of index lines to show
set pager_context = 3 # number of context lines to show
set pager_stop # don't go to next message automatically
set menu_scroll # scroll in menus
#set tilde # show tildes like in vim
unset markers # no ugly plus signs
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
alternative_order text/plain text/enriched text/html
# URLview ... calls ~/.urlview
macro pager \Cu <pipe-entry>'urlview'<enter> 'Follow links with urlview'
# Compose View Options -------------------------------
set realname = "My Name" # who am i?
set envelope_from # which from?
set sig_dashes # dashes before sig
set edit_headers # show headers when composing
set fast_reply # skip to compose when replying
set askcc # ask for CC:
set fcc_attach # save attachments with the body
unset mime_forward # forward attachments as part of body
set forward_format = "Fwd: %s" # format of subject when forwarding
set forward_decode # decode when forwarding
set attribution = "On %d, %n wrote:" # format of quoting header
set reply_to # reply to Reply to: field
set reverse_name # reply as whomever it was to
set include # include message in replies
set forward_quote # include message in forwards
set editor = "emacs -nw"
set from = "#################@gmail.com"
set sendmail = "/usr/local/bin/msmtp -a mygmail ###############@gmail.com"
set sendmail_wait = 0
unset record
#color scheme
source muttsolar16
My offlineimaprc
# Sample minimal config file. Copy this to ~/.offlineimaprc and edit to
# get started fast.
[general]
ui = TTY.TTYUI
accounts = MyGmail
pythonfile=~/.mutt/offlineimap.py
fsync = False
[Account MyGmail]
localrepository = CGLocal
remoterepository = CGRemote
status_backend = sqlite
[Repository CGLocal]
type = Maildir
localfolders = ~/.mail/mygmail
nametrans = lambda folder: {'drafts': '[Gmail]/Drafts',
'sent': '[Gmail]/Sent Mail',
'flagged': '[Gmail]/Starred',
'trash': '[Gmail]/Trash',
'archive': '[Gmail]/All Mail',
}.get(folder, folder)
[Repository CGRemote]
maxconnections=1
type = Gmail
remoteuser = ############@gmail.com
remotepasseval = keyring.get_password("Login","############@gmail.com")
realdelete = no
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
nametrans = lambda folder: {'[Gmail]/Drafts': 'drafts',
'[Gmail]/Sent Mail': 'sent',
'[Gmail]/Starred': 'flagged',
'[Gmail]/Trash': 'trash',
'[Gmail]/All Mail': 'archive',
}.get(folder, folder)
folderfilter = lambda folder: folder not in ['[Gmail]/Trash',
'[Gmail]/Important',
'[Gmail]/Spam',
I use msmtp to send the emails (and they do send) but as far as I know that program should have nothing to do with my folder labeling.
What happens exactly: When in mutt, I press 'm' and compose an email and send with 'y'. Oddly enough, the email appears in my gmail inbox (the webmail) even before I sync mutt with offlineimap (I don't automatically sync). Once I sync, I see the email in both my sent mail and inbox.
Any thoughts would be appreciatedYou have unset the record variable.
-
Urgent help: ERROR: STARTING J2EE 1.3.1
Here is the message:
Dear Sir or Madam:
There is no way I get it run J2E1.3.1. I need it so desperately.
THE OS is Windows XP Professional.
Message is:
C:\j2sdkee1.3.1\bin> j2ee -verbose
Exception in thread "main" java.lang.NoClassDefFoundError: C:\j2sdkee1/3/1\lib\system\;;C:\j2sdk1/4/0_01\\lib\tools/jar;C:\j2sdkee1/3/1\\lib\jhall/jar
C:\j2sdkee1.3.1\bin>
May I say that the files lib\tools.jar and hall.jar do exist in their directories.
I think the / are the actual .
My autoexec.bat is as follows:
SET SHELL=C:\MYPROG~1\RATIONAL\RATION~1\NUTCROOT\mksnt\sh.exe
SET COMSPEC=C:\WINDOWS\COMMAND.COM
SET windir=C:\WINDOWS
SET winbootdir=C:\WINDOWS
SET TMP=C:\WINDOWS\TEMP
SET
CLASSPATH=C:\j2sdkee1.3.1\bin;C:\j2sdk1.4.0_01\bin;C:\j2sdkee1.3.1\lib\j2ee.jar;C:\j2sdk1.4.0_01\lib\tools.jar;C:\Cloudscape3.6\lib\cloudscape.jar;C:\Cloudscape3.6\lib\tools.jar;C:\Cloudscape3.6\demo\programs\tours;.;C:\j2sdkee1.3.1\;C:\j2sdkee1.3.1\Iib\cloudscape\cloudclient.jar;C:\j2sdkee1.3.1\lib\cloudscape\cloudscape.jar;C:\j2sdkee1.3.1\lib\cloudscape\RmiJdbc.jar
SET PROMPT=$p$g
SET TEMP=C:\WINDOWS\TEMP
SET HOME=C:\MYPROG~1\RATIONAL\RATION~1\NUTCROOT
SET
PATH=C:\J2SDKEE1.3.1\BIN;C:\J2SDK1.4.0_01\BIN;C:\PROGRA~1\COMMON~1\MICROS~1\MSINFO\;C:\MYPRO
G~1\RATIONAL\CLEARQ~1;C:\ORAWIN95\BIN
SET TMPDIR=C:\WINDOWS\TEMP
SET ROOTDIR=C:\MYPROG~1\RATIONAL\RATION~1\NUTCROOT
SET DISPLAY=:0.0
My environment in xp using gui from my computer properties is :
Environment Variables:
User variables for ansar:
Variable: J2EE_HOME
Value: C:\j2sdkee1.3.1\
Variable: JAVA_HOME
Value: C\j2sdk1.4.0_01
Variable: PATH
Value: C:\j2sdk1.4.0_01\bin\
System variables
Variable: CLASSPATH
Value: C:\j2sdkee1.3.1\bin;C:\j2sdk1.4.0_01\bin;C:\j2sdkee1.3.1\lib\j2ee.jar;C:\j2sdk1.4.0_01\lib\tools.jar;C:\Cloudscape3.6\lib\cloudscape.jar;C:\Cloudscape3.6\lib\tools.jar;C:\Cloudscape3.6\demo\programs\tours;.;C:\j2sdkee1.3.1;C:\j2sdkee1.3.1\Iib\cloudscape\client.jar;C:\j2sdkee1.3.1\lib\cloudscape\tools.jar;C:\j2sdkee1.3.1\lib\cloudscape\cloudscape.jar;C:\j2sdkee1.3.1\lib\cloudscape\RmiJdbc.jar;C:\j2sdkee1.3.1\lib\cloudscape\licence.jar
Variable: Path
Value: %SYSTEMROOT%\system32;C:\j2sdkee1.3.1\bin;C:\j2sdk1.4.0_01\bin;C:\PROGRA~1\COMMON~1\MICROS~1\MSINFO\;C:\MYPROG~1\RATIONAL\CLEARQ~1;C:\ORAWIN95\BIN;%SYSTEMROOT%;%SYSTEMROOT%\system32\WBEM
Where system root is C:
Also most of the files in J2EE1.3.1 BIN files hold the following J2EE_HOME AND JAVA_HOME configuration
For instance: This is j2ee.bat file
@echo off
SET JAVA_HOME=C:\j2sdk1.4.0_01\
SET J2EE_HOME=C:\j2sdkee1.3.1\
if not "%J2EE_HOME%" == "" goto CONT0
echo ERROR: Set J2EE_HOME before running this script.
goto END
:CONT0
if EXIST "%J2EE_HOME%\bin\setenv.bat" goto CONT1
echo ERROR: Set J2EE_HOME to the path of a valid j2sdkee.
goto END
:CONT1
call %J2EE_HOME%\bin\setenv.bat
if not "%JAVA_HOME%" == "" goto CONT2
echo ERROR: Set JAVA_HOME before running this script.
goto END
:CONT2
if EXIST "%JAVA_HOME%\bin\java.exe" goto CONT3
echo ERROR: Set JAVA_HOME to the path of a valid jdk.
goto END
:CONT3
rem @echo on
%JAVA_COMMAND% %LISTEN_OPTIONS% -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter -Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl -Djms.home=%JMS_HOME% -Dcom.sun.jms.service.jdbc.dbpath=%JMS_DB_PATH% -Djms.properties=%J2EE_HOME%\config\jms_service.properties -Djava.security.policy==%J2EE_HOME%\lib\security\server.policy -Djava.security.auth.login.config=%J2EE_HOME%\lib\security\serverlogin.config -Dcom.sun.enterprise.home=%J2EE_HOME% -classpath %CPATH% com.sun.enterprise.server.J2EEServer %*
:END
Help me please, because I want to use Sun�s Reference Implementation to do J2EE Development work. Without the server I cannot do anything.SET SHELL=C:\MYPROG~1\RATIONAL\RATION~1\NUTCROOT\mksnt\sh.exe
SET COMSPEC=C:\WINDOWS\COMMAND.COM
SET windir=C:\WINDOWS
SET winbootdir=C:\WINDOWS
SET TMP=C:\WINDOWS\TEMP
================================
SET PROMPT=$p$g
SET TEMP=C:\WINDOWS\TEMP
SET HOME=C:\MYPROG~1\RATIONAL\RATION~1\NUTCROOT
SET CLASSPATH=C:\j2sdkee1.3.1\bin;C:\j2sdk1.4.0_01\bin;C:\j2sdkee1.3.1\lib\j2ee.jar;C:\j2sdk1.4.0_01\lib\tools.jar;C:\Cloudscape3.6\lib\cloudscape.jar;C:\Cloudscape3.6\lib\tools.jar;C:\Cloudscape3.6\demo\programs\tours;.;C:\j2sdkee1.3.1\;C:\j2sdkee1.3.1\Iib\cloudscape\cloudclient.jar;C:\j2sdkee1.3.1\lib\cloudscape\cloudscape.jar;C:\j2sdkee1.3.1\lib\cloudscape\RmiJdbc.jar
SET PATH=C:\j2sdk1.4.0_01\bin;.;C:\j2sdkee1.3.1\bin
SET TMPDIR=C:\WINDOWS\TEMP
SET ROOTDIR=C:\MYPROG~1\RATIONAL\RATION~1\NUTCROOT
SET DISPLAY=:0.0
===================================
Dear friends
Even though I have this file details in autoexec.bat and under advanced section of my Properties (right click)in my Computer the exact info...the message appears to be the same..Is it th classpath or something else that I cannot figure it out...
Your help would be appreciated...addressed to all of you wanting to help -
Temporary files and buffersize limit question
Hello,
I have two questions :
1. Buffer limit
Is there a limit for the buffer to return to a client. I have
a conversational service routine. If I want to return 50 record ( i.e. view structures
) my service routine hangs. If I do 10 records than it is ok. Is there a limit
size to return. Is there a parameter in UBBconfig to fix this.
2. Temporary files on conversational client / services
My service routine creates temporary files in the /tmp directory. Unfortunately
the mode for /tmp has 't'bit on so users can not delete files from other users.
The problem is I have a lot of temporary files in /tmp. Does anyone know how to
fix this or where can you specify not to use temp files or where can you specify
the directory to create tempfile. de name of files are /tmp/TUXxxxxxx where xxxxxx
is a random serie of characters.
Thanks a lot
Johan den Boer
email : [email protected]
[email protected]Buffers that are larger than 3/4 of MSGMNB are sent through a file. The name is
generated with tmpnam(), so you should be able to specify a different directory by
setting TMPDIR in the environment.
The preferred solution is to not use file transfer, by setting your IPC parameters
high enough to pass all of your application messages.
If your service routine hangs, you should look at a possible application problem.
How are you packing the VIEWs into a buffer? Are you using embedded FML with
FLD_VIEW32 fields? That would be the best way.
Remember that VIEWs are binary structures that are unique to a particular machine
type. If you pack Views together into your own buffer format, and try to use them
on a different machine type, then they won't work properly.
Scott Orshan
Johan den Boer wrote:
Hello,
I have two questions :
1. Buffer limit
Is there a limit for the buffer to return to a client. I have
a conversational service routine. If I want to return 50 record ( i.e. view structures
) my service routine hangs. If I do 10 records than it is ok. Is there a limit
size to return. Is there a parameter in UBBconfig to fix this.
2. Temporary files on conversational client / services
My service routine creates temporary files in the /tmp directory. Unfortunately
the mode for /tmp has 't'bit on so users can not delete files from other users.
The problem is I have a lot of temporary files in /tmp. Does anyone know how to
fix this or where can you specify not to use temp files or where can you specify
the directory to create tempfile. de name of files are /tmp/TUXxxxxxx where xxxxxx
is a random serie of characters.
Thanks a lot
Johan den Boer
email : [email protected]
[email protected] -
Hi,
I am building a shell script (forgive me if this is the wrong place to post) which is supposed to create a temp directory in /tmp. The reason for this is to store bits of information such as application version, etc... that keeps my installation script current. I'm trying to create the following variable:
TMPDIR=/tmp/$$; export TMPDIR
And to give you all a better example, I have a line in my script (which was written and works in Linux btw - I am relatively new to mac) that checks the current version of the package to be installed through this script:
curl -O ${TMPDIR} "${URL}/current"
Current holds a binary that fires back the latest version number.
Anyways, any help that I could get with this would be greatly appreciated.
Thanks!It's not clear (to me, at least) what your question is.
Are you saying that you're creating your TMPDIR variable (e.g. via 'do shell script'), but your subsequent curl call doesn't see it.
If so, that's because each do shell script invocation is its own entity - therefore any environment variables created in a do shell script call are discarded when the shell command ends.
So you have two potential solutions.
One is to combine your two shell scripts into one do shell script command:
do shell script "TMPDIR=/tmp/$$; URL=\"http://www.some.com\"; curl -O ${TMPDIR} \"${URL}/current\""
(note the escaping for quotes, etc.
The second option is to setup the TMPDIR in one step and store the result in an AppleScript variable, then pass that back into the subsequent shell command:
set tmpdir to do shell script "TMPDIR=/tmp/$$; echo $TMPDIR"
-- additional AppleScript code
do shell script "curl -O " & tmpdir & "\"${URL}/current\""
In this way the first do shell script creates the tmpdir reference which is then passed in as an AppleScript variable into the second script.
Note that there are still several elements missing in this script. $$ relates to the PID of the process, so that will be different between the first and second do shell script commands.
If your goal is to have a unique, temporary directory then you may be better off using mktemp which will create a file (or directory) with a guaranteed unique name. -
Hi,
I have a problem when I try to install an application.
When the privilege access are needed, I enter my administrator password, but the error-60008 (errAuthorizationInternal) occurs.
I read a post from someone who obviously had the same problem, but the solution is too technical for me.
It seems that I have to *"create a directory for the purpose in /private/ tmp, and set TMPDIR to its path, before launching the helper application."*
Is there anyone here that can explain me what I have to do in details?
Thanks.
Nob.Open /Applications/Utilities/Disk Utility
Select your hard drive at the left (e.g. "Macintosh HD")
Click "Verify disk"
If there are any errors, start from the install disk for Tiger (hold down 'c' during restart), choose your language but do not continue with installation. Instead, go to the Utilities menu, choose Disk Utility, select your hard drive and click "repair disk". If any repairs are made, rerun the programme until you get a message saying "The volume <name of hard drive> appears to be OK". Restart.
Whether there were errors or not, open (or keep open) /Applications/Utilities/Disk Utility.
Select your hard drive.
Click "Repair permissions".
See if that helps.
- cfr -
Application Server Installation is stuck
Hi guys,
I am new to java application server and I am trying to install the 8.0 version in my linux account. When I run in the console the installation command:
./sjsas_pe-8_0_0_01-linux.bin I get the following messages:
Checking available disk space...
Checking Java(TM) 2 Runtime Environment...
Extracting Java(TM) 2 Runtime Environment files...
Deleting temporary files...
and I wait there for very long....
The same thing happens if I try to install the v.8.1 and the All-in-One bundles.
I would be glad if you could help me on that!
best wishes
DioklisI have exactly the same problem.
I am attempting to install Sun App Server Platform edition 8 on RH linux Fedora Core 3. The installation wizard starts and works quickly up to the point where he reports "deleting temporary files", then he hangs there. I have tried to set "-tmpdir wrk" and then checked that directory to see what was going on. The install had written a file in that directory but nothing then happens. It just hangs.
Now, I have tried to install Sun Studio Enterprise edition, electing to install the bundled app server. The install fails, reporting the app server is corrupted. I have tried installing Sun Studio Creator and it completes but reports a failutre in installing the app server, but the directory "SunAppServer8" does not even get created. Now, the Creator install does create a nice log file reporting the failures.
All of these products fail to install on my system due to failure to be able to install the app server.
What is going on.
Oh, yes ... I have JSE 1.5 installed as my default JVM.
Thanks for your help. -
Authentifaction error -AuthorizationExecuteWithPrivileges error -60008
Hi,
I have a problem when I try to install an application.
When the privilege access are needed, I enter my administrator password, but the error-60008 (errAuthorizationInternal) occurs.
I read a post from someone who obviously had the same problem, but the solution is too technical for me.
It seems that I have to "create a directory for the purpose in /private/ tmp, and set TMPDIR to its path, before launching the helper application."
Is there anyone here that can explain me what I have to do in details?
Thanks.
Nob.Here is the solution: http://forums.macrumors.com/showthread.php?t=774615
Message was edited by: JuL! -
Hi,
When I am using FileMerge and compare two different versions of a script file, it says "Files are not ASCII", if I 'proceed anyway' I am seeing lots of special characters.
How can I do a better file comparison(.scpt)?
regards
MowriHere's a very basic script that will accomplish what you're asking:
<pre style="width:630px;height:auto;overflow-x:auto;overflow-y:hidden;"
title="Copy this code and paste it into your Script Editor application.">set tmpDir to do shell script "mktemp -d /tmp/CompareScripts.XXXXXXXXX"
set leftFile to tmpDir & "/left"
set rightFile to tmpDir & "/right"
set script1 to quoted form of POSIX path of (choose file)
set script2 to quoted form of POSIX path of (choose file)
do shell script "osadecompile " & script1 & ">" & leftFile & ¬
";osadecompile " & script2 & ">" & rightFile & ¬
";/Developer/Applications/Utilities/FileMerge.app/Contents/MacOS/FileMerge -left " & ¬
leftFile & " -right " & rightFile & ";rm -rd " & tmpDir</pre>
This script is very basic and has no error checking incorporated. Here's what the script does when run:
1) Creates a uniquely named directory in the "/tmp" directory.
2) Asks you to locate script file #1 (left file for FileMerge comparison).
3) Asks you to locate script file #2 (right file for FileMerge comparison).
4) Launches FileMerge and loads the 2 files for comparison.
5) Deletes the directory it created in the beginning when you quit FileMerge.
The script will continue to run until you quit FileMerge. The script can be modified in many different ways depending on the exact task you'd like for it to achieve. You can also modify the script to be a droplet so you can just drop 2 scripts on it for comparison.
Hope this at least gets you started in the right direction. -
Unable to open the photos in reviewer, every time I click on the photo on , it says do not have permission to view the photo. Please open the item in the finder choose the item and click on <get info>. What am I suppose to change in the setting on <get info>
Back up all data.
This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
Step 1
If you have more than one user, and the one in question is not an administrator, then go to Step 2.
Triple-click anywhere in the following line on this page to select it:
{ sudo chflags -R nouchg,nouappnd ~ $TMPDIR..; sudo chown -R $UID:staff ~ $_; sudo chmod -R u+rwX ~ $_; chmod -R -N ~ $_; } 2>&-
Copy the selected text to the Clipboard by pressing the key combination command-C.
Launch the built-in Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
Paste into the Terminal window by pressing command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
The command may take a few minutes to run, or perhaps longer if you have literally millions of files in your home folder. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
Step 2 (optional)
Take this step only if you have trouble with Step 1, if it frightens you, or if it doesn't solve the problem.
Start up in Recovery mode. When the OS X Utilities screen appears, select
Utilities ▹ Terminal
from the menu bar. A Terminal window will open.
In the Terminal window, type this:
res
Press the tab key. The partial command you typed will automatically be completed to this:
resetpassword
Press return. A Reset Password dialog will open. You’re not going to reset a password.
In the dialog, select the startup volume ("Macintosh HD," unless you gave it a different name) if it's not already selected.
Select your username from the menu labeled Select the user account if it's not already selected.
Under Reset Home Directory Permissions and ACLs, click the Reset button.
Select
▹ Restart
from the menu bar. -
Set ip address same for all users
I'm having trouble with my internet connection. I would love to know how to diagnose the problem but I fear there is no easy wasy to do that.
I can connect to my router without a problem, when I bring myiMac out of sleep I can connect to the internet without problem then that connection is lost for a few minutes and then things are ok. How do I diagnose this?
One option that has been suggested to me is to set my IP address in my network preferences. If I do this, can I apply that change across the four user accounts on my machine or do I need to go into each account and change it there? Would i be worth trying different IP addresses for each user?
I am wondering if having multiple accounts on my iMac is the source of my problems.1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve the problem. But with the aid of the test results, the solution may take a few minutes, instead of hours or days.
2. If you don't already have a current backup, back up all data before doing anything else. The backup is necessary on general principle, not because of anything in the test procedure. Backup is always a must, and when you're having any kind of trouble with the computer, you may be at higher than usual risk of losing data, whether you follow these instructions or not.
There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
3. Below are instructions to run a UNIX shell script, a type of program. All it does is to collect information about the state of the computer. That information goes nowhere unless you choose to share it. However, you should be cautious about running any kind of program (not just a shell script) at the behest of a stranger. If you have doubts, search this site for other discussions in which this procedure has been followed without any report of ill effects. If you can't satisfy yourself that the instructions are safe, don't follow them. Ask for other options.
Here's a summary of what you need to do, if you choose to proceed:
☞ Copy a line of text in this window to the Clipboard.
☞ Paste into the window of another application.
☞ Wait for the test to run. It usually takes a few minutes.
☞ Paste the results, which will have been copied automatically, back into a reply on this page.
The sequence is: copy, paste, wait, paste again. You don't need to copy a second time. Details follow.
4. You may have started the computer in "safe" mode. Preferably, these steps should be taken in “normal” mode, under the conditions in which the problem is reproduced. If the system is now in safe mode and works well enough in normal mode to run the test, restart as usual. If you can only test in safe mode, do that.
5. If you have more than one user, and the one affected by the problem is not an administrator, then please run the test twice: once while logged in as the affected user, and once as an administrator. The results may be different. The user that is created automatically on a new computer when you start it for the first time is an administrator. If you can't log in as an administrator, test as the affected user. Most personal Macs have only one user, and in that case this section doesn’t apply. Don't log in as root.
6. The script is a single long line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, though you may not see all of it in the browser window, and you can then copy it. If you try to select the line by dragging across the part you can see, you won't get all of it.
Triple-click anywhere in the line of text below on this page to select it:
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/libexec;clear;cd;p=(Software Hardware Memory Diagnostics Power FireWire Thunderbolt USB Fonts 51 4 1000 25 5120 KiB/s 1024 85 \\b%% 20480 1 MB/s 25000 ports 'com.autodesk.AutoCad com.evenflow.dropbox com.google.GoogleDrive' DYLD_INSERT_LIBRARIES\ DYLD_LIBRARY_PATH -86 ` route -n get default|awk '/e:/{print $2}' ` 25 N\\/A down up 102400 25600 recvfrom sendto CFBundleIdentifier 25 25 25 1000 MB );N5=${#p[@]};p[N5]=` networksetup -listnetworkserviceorder|awk ' NR>1 { sub(/^\([0-9]+\) /,"");n=$0;getline;} $NF=="'${p[26]}')" { sub(/.$/,"",$NF);print n;exit;} ' `;f=('\n%s: %s\n' '\n%s\n\n%s\n' '\nRAM details\n%s\n' %s\ %s '%s\n\t(%s)\n' );S0() { echo ' { q=$NF+0;$NF="";u=$(NF-1);$(NF-1)="";gsub(/^ +| +$/,"");if(q>='${p[$1]}') printf("%s (UID %s) is using %s '${p[$2]}'",$0,u,q);} ';};s=(' /^ *$|CSConfigDot/d;s/^ */ /;s/[-0-9A-Fa-f]{22,}/UUID/g;s/(ochat)\.[^.]+(\..+)/\1\2/;/Shared/!s/\/Users\/[^/]+/~/g ' ' s/^ +//;5p;6p;8p;12p;' ' {sub(/^ +/,"")};NR==6;NR==13&&$2<'${p[10]} ' 1s/://;3,6d;/[my].+:/d;s/^ {4}//;H;${ g;s/\n$//;/s: [^EO]|x([^08]|02[^F]|8[^0])/p;} ' ' 5h;6{ H;g;/P/!p;} ' ' ($1~/^Cy/&&$3>'${p[11]}')||($1~/^Cond/&&$2!~/^N/) ' ' /:$/{ N;/:.+:/d;s/ *://;b0'$'\n'' };/^ *(V.+ [0N]|Man).+ /{ s/ 0x.... //;s/[()]//g;s/(.+: )(.+)/ (\2)/;H;};$b0'$'\n'' d;:0'$'\n'' x;s/\n\n//;/Apple |Intel|SMSC/d;s/\n.*//;/\)$/p;' ' s/^.*C/C/;H;${ g;/No th|pms/!p;} ' '/= [^GO]/p' '{$1=""};1' ' /Of/!{ s/^.+is |\.//g;p;} ' ' $0&&!/ / { n++;print;} END { if(n<200) print "com.apple.";} ' ' $3~/[0-9]:[0-9]{2}$/ { gsub(/:[0-9:a-f]{14}/,"");} { print|"tail -n'${p[12]}'";} ' ' NR==2&&$4<='${p[13]}' { print $4;} ' ' END { $2/=256;if($2>='${p[15]}') print int($2) } ' ' NR!=13{next};{sub(/[+-]$/,"",$NF)};'"`S0 21 22`" 'NR!=2{next}'"`S0 37 17`" ' NR!=5||$8!~/[RW]/{next};{ $(NF-1)=$1;$NF=int($NF/10000000);for(i=1;i<=3;i++){$i="";$(NF-1-i)="";};};'"`S0 19 20`" 's:^:/:p' '/\.kext\/(Contents\/)?Info\.plist$/p' 's/^.{52}(.+) <.+/\1/p' ' /Launch[AD].+\.plist$/ { n++;print;} END { if(n<200) print "/System/";} ' '/\.xpc\/(Contents\/)?Info\.plist$/p' ' NR>1&&!/0x|\.[0-9]+$|com\.apple\.launchctl\.(Aqua|Background|System)$/ { print $3;} ' ' /\.(framew|lproj)|\):/d;/plist:|:.+(Mach|scrip)/s/:[^:]+//p ' '/root/p' ' !/\/Contents\/.+\/Contents|Applic|Autom|Frameworks/&&/Lib.+\/Info.plist$/ { n++;print;} END { if(n<1000) print "/System/";} ' '/^\/usr\/lib\/.+dylib$/p' '/\/etc\/(auto_m|hosts[^.]|peri|sshd?_c)/s/^\.\/[^/]+//p' ' /\/(Contents\/.+\/Contents|Frameworks)\//d;p;' 's/\/(Contents\/)?Info.plist$//;p' ' { gsub("^| ","||kMDItem'${p[35]}'=");sub("^.."," ") };1 ' p '{print $3"\t"$1}' 's/\'$'\t''.+//p' 's/1/On/p' '/Prox.+: [^0]/p' '$2>'${p[9]}'{$2=$2-1;print}' ' BEGIN { i="'${p[26]}'";M1='${p[16]}';M2='${p[18]}';M3='${p[31]}';M4='${p[32]}';} !/^A/ { next;} /%/ { getline;if($5<M1) a="user "$2"%, system "$4"%";} /disk0/&&$4>M2 { b=$3" ops/s, "$4" blocks/s";} $2==i { if(c) { d=$3+$4+$5+$6;next;};if($4>M3||$6>M4) c=int($4/1024)" in, "int($6/1024)" out";} END { if(a) print "CPU: "a;if(b) print "I/O: "b;if(c) print "Net: "c" (KiB/s)";if(d) print "Net errors: "d" packets/s";} ' ' /r\[0\] /&&$NF!~/^1(0|72\.(1[6-9]|2[0-9]|3[0-1])|92\.168)\./ { print $NF;exit;} ' ' !/^T/ { printf "(static)";exit;} ' '/apsd|OpenD/!s/:.+//p' ' (/k:/&&$3!~/(255\.){3}0/ )||(/v6:/&&$2!~/A/ ) ' ' $1~"lR"&&$2<='${p[25]}';$1~"li"&&$3!~"wpa2";' ' BEGIN { FS=":";} { n=split($3,a,".");sub(/_2[01].+/,"",$3);print $2" "$3" "a[n]" "$1;b=b$1;} END { if(b) print("\n\t* Code injection");} ' ' NR!=4{next} {$NF/=10240} '"`S0 27 14`" ' END { if($3~/[0-9]/)print$3;} ' ' BEGIN { L='${p[36]}';} !/^[[:space:]]*(#.*)?$/ { l++;if(l<=L) f=f"\n "$0;} END { F=FILENAME;if(!F) exit;if(!f) f="\n [N/A]";"file -b "F|getline T;if(T!~/^(AS.+ (En.+ )?text$|POSIX sh.+ text ex)/) F=F" ("T")";printf("\nContents of %s\n%s\n",F,f);if(l>L) printf("\n ...and %s more line(s)\n",l-L);} ' ' BEGIN{FS="= "} /Path/{print $2} ' ' /^ +B/{ s/.+= |(-[0-9]+)?\.s.+//g;p;} ' ' END{print NR} ' ' /id: N|te: Y/{i++} END{print i} ' ' / /{$0="'"${p[28]}"'"};1;' '/ en/!s/\.//p' ' NR!=13{next};{sub(/[+-M]$/,"",$NF)};'"`S0 39 40`" ' $10~/\(L/&&$9!~"localhost" { sub(/.+:/,"",$9);print $1": "$9;} ' '/^ +r/s/.+"(.+)".+/\1/p' 's/(.+\.wdgt)\/(Contents\/)?Info\.plist$/\1/p' 's/^.+\/(.+)\.wdgt$/\1/p' );c1=(system_profiler pmset\ -g nvram fdesetup find syslog df vm_stat sar ps sudo\ crontab sudo\ iotop top pkgutil PlistBuddy whoami cksum kextstat launchctl sudo\ launchctl crontab 'sudo defaults read' stat lsbom mdfind ' for i in ${p[24]};do ${c1[18]} ${c2[27]} $i;done;' defaults\ read scutil sudo\ dtrace sudo\ profiles sed\ -En awk /S*/*/P*/*/*/C*/*/airport networksetup mdutil sudo\ lsof test );c2=(com.apple.loginwindow\ LoginHook '-c Print /L*/P*/loginw*' '-c Print L*/P*/*loginit*' '-c Print L*/Saf*/*/E*.plist' '~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \)' '.??* -path .Trash -prune -o -type d -name *.app -print -prune' '-c Print\ :'${p[35]}' 2>&1' '-c Print\ :Label 2>&1' '{/,}L*/{Con,Pref}* -type f ! -size 0 -name *.plist -exec plutil -s {} \;' "-f'%N: %l' Desktop L*/Keyc*" therm sysload boot-args status " -F '\$Time \$Message' -k Sender kernel -k Message Req 'Beac|caug|dead[^bl]|FAIL|GPU |hfs: Ru|inval|jnl:|last value [1-9]|n Cause: -|NVDA\(|pagin|proc: t|Roamed|rror|ssert|Thrott|tim(ed? ?|ing )o|WARN' -k Message Rne 'Goog|ksadm|SMC:' -o -k Sender fseventsd -k Message Req 'SL' " '-du -n DEV -n EDEV 1 10' 'acrx -o comm,ruid,%cpu' '-t1 10 1' '-f -pfc /var/db/*/*.{BS,Bas,Es,OSXU,Rem}*.bom' ' {/,}L*/Lo*/Diag* -type f -regex .\*[cgh] ! -name *ag \( -exec grep -lq "^Thread c" {} \; -exec printf \* \; -o -true \) -execdir stat -f:%Sc:%N -t%F {} \;|sort -t: -k2 |tail -n'${p[38]} '-L {/{S*/,},}L*/Lau* -type f' '-L /{S*/,}L*/StartupItems -type f -exec file {} +' ' -L /S*/L*/{C*/Sec*A,E}* {/,}L*/{A*d,Ca*/*/Ex,Compon,Ex,In,iTu,Keyb,Mail/B,P*P,Qu*T,Scripti,Sec,Servi,Spo,Widg}* -type f -name Info.plist ' '/usr/lib -type f -name *.dylib' `awk "${s[31]}"<<<${p[23]}` " /e*/{auto_master,{cron,fs}tab,hosts,{launchd,sysctl}.conf,ssh{,d}_c*} {,/usr/local}/etc/periodic/*/* .launchd.conf " list getenv /Library/Preferences/com.apple.alf\ globalstate --proxy '-n get default' -I --dns -getdnsservers -getinfo\ "${p[N5]}" -P -m\ / '' -n1 '-R -l1 -n1 -o prt -stats command,uid,prt' '--regexp --only-files --files com.apple.pkg.*|sort|uniq' -kl -l -s\ / '-R -l1 -n1 -o mem -stats command,uid,mem' -i4TCP:0-1023 com.apple.dashboard\ layer-gadgets '-d /L*/Mana*/$USER&&echo On' );N1=${#c2[@]};for j in {0..8};do c2[N1+j]=SP${p[j]}DataType;done;N2=${#c2[@]};for j in 0 1;do c2[N2+j]="-n ' syscall::'${p[33+j]}':return { @out[execname,uid]=sum(arg0) } tick-10sec { trunc(@out,1);exit(0);} '";done;l=(Restricted\ files Hidden\ apps 'Elapsed time (s)' POST Battery Safari\ extensions Bad\ plists 'High file counts' User Heat System\ load boot\ args FileVault Diagnostic\ reports Log 'Free space (MiB)' 'Swap (MiB)' Activity 'CPU per process' Login\ hook 'I/O per process' Mach\ ports kexts Daemons Agents launchd Startup\ items Admin\ access Root\ access Bundles dylibs Apps Font\ issues Inserted\ dylibs Firewall Proxies DNS TCP/IP Wi-Fi Profiles Root\ crontab User\ crontab 'Global login items' 'User login items' Spotlight Memory Listeners Widgets Parental\ Controls );N3=${#l[@]};for i in 0 1 2;do l[N3+i]=${p[5+i]};done;N4=${#l[@]};for j in 0 1;do l[N4+j]="Current ${p[29+j]}stream data";done;A0() { id -G|grep -qw 80;v[1]=$?;((v[1]==0))&&sudo true;v[2]=$?;v[3]=`date +%s`;clear;};for i in 0 1;do eval ' A'$((1+i))'() { v=` eval "${c1[$1]} ${c2[$2]}"|'${c1[30+i]}' "${s[$3]}" `;[[ "$v" ]];};A'$((3+i))'() { v=` while read i;do [[ "$i" ]]&&eval "${c1[$1]} ${c2[$2]}" \"$i\"|'${c1[30+i]}' "${s[$3]}";done<<<"${v[$4]}" `;[[ "$v" ]];};A'$((5+i))'() { v=` while read i;do '${c1[30+i]}' "${s[$1]}" "$i";done<<<"${v[$2]}" `;[[ "$v" ]];};';done;A7(){ v=$((`date +%s`-v[3]));};B2(){ v[$1]="$v";};for i in 0 1;do eval ' B'$i'() { v=;((v['$((i+1))']==0))||{ v=No;false;};};B'$((3+i))'() { v[$2]=`'${c1[30+i]}' "${s[$3]}"<<<"${v[$1]}"`;} ';done;B5(){ v[$1]="${v[$1]}"$'\n'"${v[$2]}";};B6() { v=` paste -d: <(printf "${v[$1]}") <(printf "${v[$2]}")|awk -F: ' {printf("'"${f[$3]}"'",$1,$2)} ' `;};B7(){ v=`grep -Fv "${v[$1]}"<<<"$v"`;};C0(){ [[ "$v" ]]&&echo "$v";};C1() { [[ "$v" ]]&&printf "${f[$1]}" "${l[$2]}" "$v";};C2() { v=`echo $v`;[[ "$v" != 0 ]]&&C1 0 $1;};C3() { v=`sed -E "$s"<<<"$v"`&&C1 1 $1;};for i in 1 2;do for j in 2 3;do eval D$i$j'(){ A'$i' $1 $2 $3; C'$j' $4;};';done;done;A0;{ A2 0 $((N1+1)) 2;C0;A1 0 $N1 1;C0;B0;C2 27;B0&&! B1&&C2 28;D12 15 37 25 8;A1 0 $((N1+2)) 3;C0;D13 0 $((N1+3)) 4 3;D23 0 $((N1+4)) 5 4;for i in 0 1 2;do D13 0 $((N1+5+i)) 6 $((N3+i));done;D13 1 10 7 9;D13 1 11 8 10;D22 2 12 9 11;D12 3 13 10 12;D23 4 19 44 13;D23 5 14 12 14;D22 6 36 13 15;D22 7 37 14 16;D23 8 15 38 17;D22 9 16 16 18;B1&&{ D22 11 17 17 20;for i in 0 1;do D22 28 $((N2+i)) 45 $((N4+i));done;};D22 12 44 54 45;D22 12 39 15 21;A1 13 40 18;B2 4;B3 4 0 19;A3 14 6 32 0;B4 0 5 11;A1 17 41 20;B7 5;C3 22;B4 4 6 21;A3 14 7 32 6;B4 0 7 11;B3 4 0 22;A3 14 6 32 0;B4 0 8 11;B5 7 8;B1&&{ A2 19 26 23;B7 7;C3 23;};A2 18 26 23;B7 7;C3 24;A2 4 20 21;B7 6;B2 9;A4 14 7 52 9;B2 10;B6 9 10 4;C3 25;D13 4 21 24 26;B4 4 12 26;B3 4 13 27;A1 4 22 29;B7 12;B2 14;A4 14 6 52 14;B2 15;B6 14 15 4;B3 0 0 30;C3 29;A1 4 23 27;B7 13;C3 30;D13 24 24 32 31;D13 25 37 32 33;A1 23 18 28;B2 16;A2 16 25 33;B7 16;B3 0 0 34;B2 21;A6 47 21&&C0;B1&&{ D13 21 0 32 19;D13 10 42 32 40;D22 29 35 46 39;};D23 14 1 48 42;D12 34 43 53 44;D22 0 $((N1+8)) 51 32;D13 4 8 41 6;D12 26 28 35 34;D13 27 29 36 35;A2 27 32 39&&{ B2 19;A2 33 33 40;B2 20;B6 19 20 3;};C2 36;D23 33 34 42 37;B1&&D23 35 45 55 46;D23 32 31 43 38;D12 36 47 32 48;D13 20 42 32 41;D23 14 2 48 43;D13 4 5 32 1;D22 4 4 50 0;D13 14 3 49 5;B3 4 22 57;A1 26 46 56;B7 22;B3 0 0 58;C3 47;D23 22 9 37 7;A7;C2 2;} 2>/dev/null|pbcopy;exit 2>&-
Copy the selected text to the Clipboard by pressing the key combination command-C.
7. Launch the built-in Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
Click anywhere in the Terminal window and paste by pressing command-V. The text you pasted should vanish immediately. If it doesn't, press the return key.
8. If you see an error message in the Terminal window such as "syntax error," enter
exec bash
and press return. Then paste the script again.
9. If you're logged in as an administrator, you'll be prompted for your login password. Nothing will be displayed when you type it. You will not see the usual dots in place of typed characters. Make sure caps lock is off. Type carefully and then press return. You may get a one-time warning to be careful. If you make three failed attempts to enter the password, the test will run anyway, but it will produce less information. In most cases, the difference is not important. If you don't know the password, or if you prefer not to enter it, press the key combination control-C or just press return three times at the password prompt. Again, the script will still run.
If you're not logged in as an administrator, you won't be prompted for a password. The test will still run. It just won't do anything that requires administrator privileges.
10. The test may take a few minutes to run, depending on how many files you have and the speed of the computer. A computer that's abnormally slow may take longer to run the test. While it's running, there will be nothing in the Terminal window and no indication of progress. Wait for the line
[Process completed]
to appear. If you don't see it within half an hour or so, the test probably won't complete in a reasonable time. In that case, close the Terminal window and report the results. No harm will be done.
11. When the test is complete, quit Terminal. The results will have been copied to the Clipboard automatically. They are not shown in the Terminal window. Please don't copy anything from there. All you have to do is start a reply to this comment and then paste by pressing command-V again.
At the top of the results, there will be a line that begins with "Model Identifier." If you don't see that, but instead see a mass of gibberish, you didn't wait for the "Process completed" message to appear in the Terminal window. Please wait for it and try again.
If any private information, such as your name or email address, appears in the results, anonymize it before posting. Usually that won't be necessary.
12. When you post the results, you might see the message, "You have included content in your post that is not permitted." It means that the forum software has misidentified something in the post as a violation of the rules. If that happens, please post the test results on Pastebin, then post a link here to the page you created.
Note: This is a public forum, and others may give you advice based on the results of the test. They speak only for themselves, and I don't necessarily agree with them.
Copyright © 2014 by Linc Davis. As the sole author of this work, I reserve all rights to it except as provided in the Use Agreement for the Apple Support Communities website ("ASC"). Readers of ASC may copy it for their own personal use. Neither the whole nor any part may be redistributed. -
Can anyone help me resolve a problem I've been having . When I open preference pane & set my personal settings ,i.e Dock settings ,display settings to the way I prefer it's fine while I'm using computer but when I shut down & the next day I start up the settings are back to where they were before I went near them .
This problem is really annoying as the idea with the preference pane is for my particular preference . Please can somebody help me resolve this very annoying problem , After all it is a MacBook Pro running the latest software . Thank you .Back up all data.
This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
I've tested these instructions only with the Safari web browser. If you use another browser, they may not work as described.
Step 1
If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box markedAllow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
Triple-click anywhere in the following line on this page to select it:
{ sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
Copy the selected text to the Clipboard by pressing the key combination command-C.
Launch the Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
Paste into the Terminal window (command-V). I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
The command may take a few minutes to run, or perhaps longer if you have literally millions of files in your home folder. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
Step 2 (optional)
Take this step only if you have trouble with Step 1 or if it doesn't solve the problem.
Boot into Recovery. When the OS X Utilities screen appears, select
Utilities ▹ Terminal
from the menu bar. A Terminal window will open.
In the Terminal window, type this:
res
Press the tab key. The partial command you typed will automatically be completed to this:
resetpassword
Press return. A Reset Password window will open. You’re not going to reset a password.
Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
Select your username from the menu labeled Select the user account if not already selected.
Under Reset Home Directory Permissions and ACLs, click the Reset button.
Select
▹ Restart
from the menu bar. -
Why do i keep loosing my settings and homepage setting in safari
when setting homepage and other settings in Safari why do I loose them every time I switch computer off, when I switch computer back on I am on Apple home page instead of my homepage and any settings disappear. As far as I can remember it started when switching up to Mountain Lion and has been doing it ever since.
many thanks for any helpBack up all data. Don't continue unless you're sure you can restore from a backup, even if you're unable to log in.
This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
Step 1
If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
{ sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
Launch the Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
Step 2 (optional)
Step 1 should give you usable permissions in your home folder. This step will restore special attributes set by OS X on some user folders to protect them from unintended deletion or renaming. You can skip this step if you don't consider that protection to be necessary, and if everything is working as expected after step 1.
Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
When the OS X Utilities screen appears, select
Utilities ▹ Terminal
from the menu bar. A Terminal window will open.
In the Terminal window, type this:
res
Press the tab key. The partial command you typed will automatically be completed to this:
resetpassword
Press return. A Reset Password window will open. You’re not going to reset a password.
Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
Select your username from the menu labeled Select the user account if not already selected.
Under Reset Home Directory Permissions and ACLs, click the Reset button.
Select
▹ Restart
from the menu bar. -
ORACLE_HOME_LISTNER is not SET dbstart error Oracle Enterprise Linux
ORACLE_HOME_LISTNER is not SET dbstart error Oracle Enterprise Linux
Hallo!I am a newbie in Oracle 10g having installed Oracle 10g in Oracle Enterprise Linux version 4 update 7.
I am trying to automate the startup of the Listener,Database,Enterprise Manager and isqlplus during boot.
I have tried running the dbstart script but an error resulted.After research,I found out that I am supposed to edit line 78 of the dbstart script from
ORACLE_HOME_LISTNER=/ade/vikrkuma_new/oracle
To
ORACLE_HOME_LISTNER=$ORACLE_HOME
Even after this,when I run the dbstart script,I receive the error below.
[root@joey-oel ~]# cd /u01/app/oracle/product/10.2.0/db/bin/
[root@joey-oel bin]# ./dbstart
ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener
Processing Database instance "orcl": log file /u01/app/oracle/product/10.2.0/db/startup.log
When I view the log file startup.log,the information is as below
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Aug 9 21:20:33 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> ERROR:
ORA-12546: TNS:permission denied
SQL> ORA-12546: TNS:permission denied
SQL>
./dbstart: Database instance "orcl" warm started
./dbstart: Starting up database "orcl"
Sat Aug 14 15:30:25 EAT 2010
How do I resolve this?
Thanks.The results of the env | sort command is as below
[oracle@joey-oel ~]$ env | sort
_=/bin/env
EDITOR=gedit
G_BROKEN_FILENAMES=1
HISTSIZE=1000
HOME=/home/oracle
HOSTNAME=joey-oel.com
INPUTRC=/etc/inputrc
KDEDIR=/usr
LANG=en_US.UTF-8
LD_LIBRARY_PATH=/usr/lib:/usr/X11R6/lib
LESSOPEN=|/usr/bin/lesspipe.sh %s
LOGNAME=oracle
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
MAIL=/var/spool/mail/oracle
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db
ORACLE_HOSTNAME=joey-oel.com
ORACLE_SID=orcl
PATH=/u01/app/oracle/product/10.2.0/db/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/home/oracle/bin
PWD=/home/oracle
QTDIR=/usr/lib/qt-3.3
SHELL=/bin/bash
SHLVL=1
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
TERM=vt100
TMPDIR=/tmp
TMP=/tmp
USER=oracle
I am trying to run the dbstart as the oracle user.When I try doing this as below
[oracle@joey-oel ~]$ $ORACLE_HOME/bin/dbstart $ORACLE_HOME
chmod: changing permissions of `/u01/app/oracle/product/10.2.0/db/startup.log': Operation not permitted
Processing Database instance "orcl": log file /u01/app/oracle/product/10.2.0/db/startup.log
Even when I try changing the permissions of startup.log as below,
chmod 777 startup.log
the error still appears. -
Running out of memory despite having set je.maxMemory to a moderate value
I have set je.maxMemory to 20MB (je.maxMemory=20000000) and allowed a max heap size of 512MB (-Xms256M -Xmx512M).
After two hours of running my web service, I'm running out of memory. After having profiled my service (using Yourkit Java Profiler 1.10.6), I can see the following:
Name Objects ShallowSize RetainedSize
byte[] 16711 124124880 124124880
com.sleepycat.je.tree.BIN 181 24616 116254200
com.sleepycat.je.tree.Node[] 187 98736 115743184
com.sleepycat.je.tree.LN 7092 226944 115253600
java.util.concurrent.ConcurrentHashMap$HashEntry 554 17728 78328944
java.util.concurrent.ConcurrentHashMap$HashEntry[] 1053 34728 77489632
java.util.concurrent.ConcurrentHashMap 117 5616 71812072
java.util.concurrent.ConcurrentHashMap$Segment[] 118 10304 71807912
java.util.concurrent.ConcurrentHashMap$Segment 1052 42080 71798808
com.sleepycat.je.tree.IN 6 672 45592352
java.lang.String 135888 4348416 14152664The memory profiler claims further, that com.sleepycat.je.tree.BIN is responsible for 71% of all heap memory.
In any case, com.sleepycat.je.tree.BIN claims ~ 116MB of heap memory, which is by any goodwill, exceeded the limit of 20MB.
How can this be?
How is JE ensuring that the limit is not exceeded? Is there a timer (thread) running which once a while checks the memory used and then cleans up ; or is memory usage checked creating a com.sleepycat.je.tree.BIN object?
My environment:
BDB JE 4.0.92 - used as cache loader within Jboss Cache (3.2.7.GA), running on a JBOSS Application Server, Java 1.6 (IBM) on Linux. Further details are listed in the system properties below (except some deleted security items).
System properties:
(java.lang.String, int, java.lang.StringBuffer, int)=contains
DestroyJavaVM helper thread=(java.lang.String, java.security.KeyStore$Entry, java.security.KeyStore$ProtectionParameter)
base.collection.name=CD2JAVA
bind.address=10.12.25.130
catalina.base=/work/ocrgws_test/server0
catalina.ext.dirs=/work/ocrgws_test/server0/lib
catalina.home=/work/ocrgws_test/server0
catalina.useNaming=false
com.arjuna.ats.arjuna.objectstore.objectStoreDir=/work/ocrgws_test/server0/data/tx-object-store
com.arjuna.ats.jta.lastResourceOptimisationInterface=org.jboss.tm.LastResource
com.arjuna.ats.tsmx.agentimpl=com.arjuna.ats.internal.jbossatx.agent.LocalJBossAgentImpl
com.arjuna.common.util.logger=log4j_releveler
com.arjuna.common.util.logging.DebugLevel=0x00000000
com.arjuna.common.util.logging.FacilityLevel=0xffffffff
com.arjuna.common.util.logging.VisibilityLevel=0xffffffff
com.ibm.cpu.endian=little
com.ibm.jcl.checkClassPath=
com.ibm.oti.configuration=scar
com.ibm.oti.jcl.build=20100326_1904
com.ibm.oti.shared.enabled=false
com.ibm.oti.vm.bootstrap.library.path=/opt/ibm/java-x86_64-60/jre/lib/amd64/compressedrefs:/opt/ibm/java-x86_64-60/jre/lib/amd64
com.ibm.oti.vm.library.version=24
com.ibm.util.extralibs.properties=
com.ibm.vm.bitmode=64
common.loader=${catalina.home}/lib,${catalina.home}/lib/*.jar
epo.jboss.deploymentscanner.extradirs=/work/ocrgws_test/app/
external.cert.ldap.* = ***************
file.encoding=UTF-8
file.separator=/
flipflop.activation.time=16:30
hibernate.bytecode.provider=javassist
ibm.signalhandling.rs=false
ibm.signalhandling.sigchain=true
ibm.signalhandling.sigint=true
ibm.system.encoding=UTF-8
jacorb.config.log.verbosity=0
java.assistive=ON
java.awt.fonts=
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
java.awt.printerjob=sun.print.PSPrinterJob
java.class.path=/work/ocrgws_test/config:/usr/local/jboss-eap-4.3-cp07/bin/run.jar:/opt/ibm/java-x86_64-60/lib/tools.jar
java.class.version=50.0
java.compiler=j9jit24
java.endorsed.dirs=/usr/local/jboss-eap-4.3-cp07/lib/endorsed
java.ext.dirs=/opt/ibm/java-x86_64-60/jre/lib/ext
java.fullversion=JRE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460sr8-20100401_55940 (JIT enabled, AOT enabled)
J9VM - 20100401_055940
JIT - r9_20100401_15339
GC - 20100308_AA_CMPRSS
java.home=/opt/ibm/java-x86_64-60/jre
java.io.tmpdir=/tmp
java.jcl.version=20100408_01
java.library.path=/opt/ibm/java-x86_64-60/jre/lib/amd64/compressedrefs:/opt/ibm/java-x86_64-60/jre/lib/amd64:/usr/lib64/mpi/gcc/openmpi/lib64:/usr/lib
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.net.preferIPv4Stack=true
java.protocol.handler.pkgs=org.jboss.net.protocol
java.rmi.server.codebase=http://10.12.25.130:8083/
java.rmi.server.hostname=10.12.25.130
java.rmi.server.randomIDs=true
java.runtime.name=Java(TM) SE Runtime Environment
java.runtime.version=pxa6460sr8-20100409_01 (SR8)
java.security.krb5.conf=/usr/local/jboss/etc/krb5.conf
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.6
java.util.prefs.PreferencesFactory=java.util.prefs.FileSystemPreferencesFactory
java.vendor.url=http://www.ibm.com/
java.vendor=IBM Corporation
java.version=1.6.0
java.vm.info=JRE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460sr8-20100401_55940 (JIT enabled, AOT enabled)
J9VM - 20100401_055940
JIT - r9_20100401_15339
GC - 20100308_AA_CMPRSS
java.vm.name=IBM J9 VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=IBM Corporation
java.vm.version=2.4
javax.management.builder.initial=org.jboss.mx.server.MBeanServerBuilderImpl
javax.net.ssl.trustStore=/usr/local/jboss/etc/ldap.truststore
javax.net.ssl.trustStorePassword=password
jboss.bind.address=10.12.25.130
jboss.home.dir=/usr/local/jboss-eap-4.3-cp07
jboss.home.url=file:/usr/local/jboss-eap-4.3-cp07/
jboss.identity=30df88bc0a52e350x6e2ff59cx136c17794d5x-8000757
jboss.lib.url=file:/usr/local/jboss-eap-4.3-cp07/lib/
jboss.messaging.controlchanneludpaddress=239.1.200.4
jboss.messaging.datachanneludpaddress=239.1.200.4
jboss.partition.name=ocrgws_test_Partition
jboss.partition.udpGroup=239.1.200.4
jboss.remoting.domain=JBOSS
jboss.remoting.instanceid=30df88bc0a52e350x6e2ff59cx136c17794d5x-8000757
jboss.remoting.jmxid=luu002t.internal.epo.org_1334685694459
jboss.remoting.version=22
jboss.security.disable.secdomain.option=true
jboss.server.config.url=file:/work/ocrgws_test/server0/conf/
jboss.server.data.dir=/work/ocrgws_test/server0/data
jboss.server.home.dir=/work/ocrgws_test/server0
jboss.server.home.url=file:/work/ocrgws_test/server0/
jboss.server.lib.url=file:/work/ocrgws_test/server0/lib/
jboss.server.log.dir=/work/ocrgws_test/server0/log
jboss.server.name=luu002t_ocrgws_test_server0
jboss.server.temp.dir=/work/ocrgws_test/server0/tmp
jboss.tomcat.udpGroup=239.1.200.4
jbossmx.loader.repository.class=org.jboss.mx.loading.UnifiedLoaderRepository3
je.maxMemory=20000000
jgroups.bind_addr=10.12.25.130
jmx.console.bindcredential=3bpwdmpc
jmx.console.binddn=cn=jbossauth-ro,ou=accounts,ou=auth,dc=epo,dc=org
jmx.console.rolesctxdn=ou=roles-test,ou=jboss,ou=applications,ou=internal,dc=epo,dc=org
jndi.datasource.name=java:MainframeDS
jnp.disableDiscovery=true
jxe.current.romimage.version=15
jxe.lowest.romimage.version=15
line.separator=
mainframelogin.password=720652a1e842fc7f
mainframelogin.username=test_t
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
org.apache.tomcat.util.http.ServerCookie.VERSION_SWITCH=true
org.epo.jboss.application.home=/work/ocrgws_test
org.hyperic.sigar.path=/work/ocrgws_test/server0/./deploy/hyperic-hq.war/native-lib
org.jboss.ORBSingletonDelegate=org.jacorb.orb.ORBSingleton
org.omg.CORBA.ORBClass=org.jacorb.orb.ORB
org.omg.CORBA.ORBSingletonClass=org.jboss.system.ORBSingleton
org.w3c.dom.DOMImplementationSourceList=org.apache.xerces.dom.DOMXSImplementationSourceImpl
os.arch=amd64
os.name=Linux
os.version=2.6.32.46-0.3-xen
package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.
package.definition=sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
path.separator=:
poll.interval.milliseconds=300000
program.name=run.sh
server.loader=
shared.loader=
spnego.config=/usr/local/jboss/etc/spnego.properties
sun.arch.data.model=64
sun.boot.class.path=/usr/local/jboss-eap-4.3-cp07/lib/endorsed/xercesImpl.jar:/usr/local/jboss-eap-4.3-cp07/lib/endorsed/xalan.jar:/usr/local/jboss-eap-4.3-cp07/lib/endorsed/serializer.jar:/opt/ibm/java-x86_64-60/jre/lib/amd64/compressedrefs/jclSC160/vm.jar:/opt/ibm/java-x86_64-60/jre/lib/annotation.jar:/opt/ibm/java-x86_64-60/jre/lib/beans.jar:/opt/ibm/java-x86_64-60/jre/lib/java.util.jar:/opt/ibm/java-x86_64-60/jre/lib/jndi.jar:/opt/ibm/java-x86_64-60/jre/lib/logging.jar:/opt/ibm/java-x86_64-60/jre/lib/security.jar:/opt/ibm/java-x86_64-60/jre/lib/sql.jar:/opt/ibm/java-x86_64-60/jre/lib/ibmorb.jar:/opt/ibm/java-x86_64-60/jre/lib/ibmorbapi.jar:/opt/ibm/java-x86_64-60/jre/lib/ibmcfw.jar:/opt/ibm/java-x86_64-60/jre/lib/rt.jar:/opt/ibm/java-x86_64-60/jre/lib/charsets.jar:/opt/ibm/java-x86_64-60/jre/lib/resources.jar:/opt/ibm/java-x86_64-60/jre/lib/ibmpkcs.jar:/opt/ibm/java-x86_64-60/jre/lib/ibmcertpathfw.jar:/opt/ibm/java-x86_64-60/jre/lib/ibmjgssfw.jar:/opt/ibm/java-x86_64-60/jre/lib/ibmjssefw.jar:/opt/ibm/java-x86_64-60/jre/lib/ibmsaslfw.jar:/opt/ibm/java-x86_64-60/jre/lib/ibmjcefw.jar:/opt/ibm/java-x86_64-60/jre/lib/ibmjgssprovider.jar:/opt/ibm/java-x86_64-60/jre/lib/ibmjsseprovider2.jar:/opt/ibm/java-x86_64-60/jre/lib/ibmcertpathprovider.jar:/opt/ibm/java-x86_64-60/jre/lib/ibmxmlcrypto.jar:/opt/ibm/java-x86_64-60/jre/lib/management-agent.jar:/opt/ibm/java-x86_64-60/jre/lib/xml.jar:/opt/ibm/java-x86_64-60/jre/lib/jlm.jar:/opt/ibm/java-x86_64-60/jre/lib/javascript.jar:/tmp/yjp201202191932.jar
sun.boot.library.path=/opt/ibm/java-x86_64-60/jre/lib/amd64/compressedrefs:/opt/ibm/java-x86_64-60/jre/lib/amd64
sun.io.unicode.encoding=UnicodeLittle
sun.java.command=org.jboss.Main -b 10.12.25.130 -Djboss.server.home.dir=/work/ocrgws_test/server0 -Djboss.server.home.url=file:/work/ocrgws_test/server0 -Djboss.server.name=luu002t_ocrgws_test_server0 -Djboss.partition.name=ocrgws_test_Partition -Depo.jboss.deploymentscanner.extradirs=/work/ocrgws_test/app/ -Dorg.epo.jboss.application.home=/work/ocrgws_test
sun.java.launcher.pid=17781
sun.java.launcher=SUN_STANDARD
sun.java2d.fontpath=
sun.jnu.encoding=UTF-8
sun.rmi.dgc.client.gcInterval=3685000
sun.rmi.dgc.server.gcInterval=3685000
system=java.io.ObjectStreamField
tomcat.util.buf.StringCache.byte.enabled=true
user.country=US
user.dir=/work/ocrgws_test
user.home=*****************
user.language=en
user.name=***********
user.timezone=Europe/Berlin
user.variant=The memory profiler claims further, that com.sleepycat.je.tree.BIN is responsible for 71% of all heap memory. In any case, com.sleepycat.je.tree.BIN claims ~ 116MB of heap memory, which is by any goodwill, exceeded the limit of 20MB. >
I'm not sure whether the profiler is reporting live objects only (referenced) or all objects (including those not yet reclaimed). If the latter, it isn't telling you how much memory is actually referenced by the JE cache.
Please look at the JE stats to see what the cache usage is, from JE's point of view.
If you believe there is a bug in JE cache management, you'll need to write a small standalone test to demonstrate it and submit it to us, since we don't know of any such bug. Also note that we'll have difficulty supporting JE 4.0 (without a support contract anyway). Please use JE 5.0, or at least 4.1.
Eviction occurs as objects are allocated, as well as in background threads. Eviction in background threads and concurrent eviction were greatly improved in JE 4.1.
--mark
Maybe you are looking for
-
Could this be a Mail virus or something like it?
Just received an e-mail as follows: From: Mail Delivery Subsystem <[email protected]> Subject: Returned Mail: User unknown Date: November 27, 2005 10:41:55 AM AKST To: (my e-mail address here) The message indicates that the mail was returned to me be
-
Mavericks re-indexes my external hard drive when I save a single file to it.
Ok here is my problem. I have an external hard drive that has over 500 gigs worth of files on it. This hard drive was already indexed when I had OSX Mountain Lion. When I upgraded to Mavericks and then went to find files on my external hard drive I c
-
EDM - Error in Generation of Settlemet Units
Hi, I have created a settlement unit and want to generate it. But I get the following error: Settlement unit Z_GRD14 cannot be generated Message no. EEDMSET055 Diagnosis Services already exist for the service providers allocated to settlement unit ZE
-
How to call pl sql stored procedure or function in OAF 10 plus versions
Hello All, I am using J-dev 10.1.3.3.0.3 version.I want to call stored procedure from package in one of my controller. I tried using "txn.createCallableStatement" but it is saying that createcallablemethod is not available.Does any one knows about th
-
Forgot password to a pages doc. how can I open it
I created a pages doc on my Mac Book and put a password on it to lock it. the password will not open it. Is there a way to retrieve and open the document on lap top or my iPad?