Operating System - HP-UX
1836372 Members
2198 Online
110100 Solutions
New Discussion

Re: Error while opening the files

 
Rajkumar_3
Regular Advisor

Error while opening the files

Hai All

I am facing a problem while opening the files which i have created in my normal user login..

Error:
-------
"/var/tmp/Ex03871" Permission denied

What might be the problem and how to rectify it...

Regards
Raj
Oracle DBA
8 REPLIES 8
harry d brown jr
Honored Contributor

Re: Error while opening the files

Good question, what is that file? Is it supposed to be an executable?

live free or die
harry
Live Free or Die
Patrick Wallek
Honored Contributor

Re: Error while opening the files

First off, what are the permissions on the file? What user created the file and what user is trying to access it?

The problem is a permissions problems, but without knowing the above information, we can't help you.
Sanjay_6
Honored Contributor

Re: Error while opening the files

Hi Raj,

You need the write and execute permission in /var/tmp. Check the permissions on /var/tmp. Set it to 777 if it is not a security risk for you.

Hope this helps.

Regds
T G Manikandan
Honored Contributor

Re: Error while opening the files

Hello,

Change the permissions on the /var/tmp directory
from the terminal like this:
chmod a+rw /var/tmp
You need root permission to use chmod in the /var/tmp
directory.
Also check the permissions of the /var/tmp directory
drwxrwxrwxt------>with sticky bit.

Thanks
Deepak Extross
Honored Contributor

Re: Error while opening the files

/var/tmp is a scratch directory, where many processes create temporary files (which they should delete once they have no more need for).
Occasionally, a process exits without cleaning up - maybe a crash or core dump - and the temp file is left behind.
Now if another process (or indeed the same process started by a different user) tries to create a temp file with the same name, you'll see this error.

Check the timestamp on this file. If its an old file, you can probably delete it without event.
Else, check if the owner of the file is logged in, or any of his processes are running - they may be using this file.
ramesh_6
Frequent Advisor

Re: Error while opening the files

Hi Raj,

I think you are opening the file from vi editor. You know how vi works? vi first opens a copy of the file /var/tmp/E****** and then display the file to you.

Say, vi crashes while eidting a file a copy fo the file will be stored in /var/tmp/E***** and it will send a mail to the user saying a copy fo the file is available in /var/tmp.

As a solution what i will sugggest to this problem is
1)sync the permissions of /var/tmp with your other HP-UX systems.
2) Remove all the files starting with "E" (to be in the safer side)

It should clear your problem. Moreover you can try opening the file with less editor or with more mode.

Hope this helps

Ramesh
Animesh Chakraborty
Honored Contributor

Re: Error while opening the files

Hi,
Problem Text

Problem: If a file is being edited on a c-node and that node goes down,
no copy is saved in /usr/preserve. No email messages are sent
indicating a problem, and the file is not recoverable using "vi -r".

Cause Text

When a system crashes, vi does not have time to save the
temporary files out to /usr/preserve so they can be recovered. However,
if a standalone or cluster server was the system that crashed, then on
bootup, it executes /usr/lib/expreserve to preserve Ex***** files that
were in the /tmp directory when the system crashed.

When a cnode crashes and boots up, it does not execute expreserve on
/tmp because others may have a current vi session in progress in which
temporary files are being kept in /tmp. Expreserve would preserve a
copy of the files being edited, and destroy the temporary files for the
current vi sessions.
******************
The clean_ex startup script is the process to recover editor files.
This editor file recovery process sends an email to the user whose file is
recovered. If the process can't send the email, the process can hang.
During startup, at the point in time that the expreserve command is run from
the clean_ex startup script, if TCP/IP and sendmail aren't up and running, the
expreserve command may hang.
The workaround is to move the clean_ex script to a later time in the
startup sequence. This can be done by changing the name
/sbin/rc2.d/S200clean_ex to a name with a higher start number, such as
/sbin/rc2.d/S400clean_ex. The script should run before the tmp
directories are cleaned out, however.

Run /usr/lbin/expreserve -a is run interactively (as root)

Regards
Animesh

Did you take a backup?
Rajkumar_3
Regular Advisor

Re: Error while opening the files

Hai,

My problem was solved after recieving the help from you all..Thank you very much...

Have a nice day..

Raj
Oracle DBA