writing to /tmp


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users writing to /tmp
# 1  
Old 03-19-2003
writing to /tmp

Hi all,
I need your help.

I am using Linux - Mandrake 8.x version. Somehow, the system /tmp directory became unwritable.
What can be the problem is this case I am trying to write to /tmp and the permission right for this dir are:

drwxrwxrwt 20 root root 1024 Mar 16 17:26 tmp/

When I try to access mail, I get this error

%mail
%/tmp/Rxs90I4d: Permission denied

Then when I try to go to /tmp and create a file, then I get:
%mkdir a
%mkdir: cannot create directory `a': Permission denied

This error happens even when I was as the root user.
Please let me know if you encounter this problem and what is the good way to fix it?
Thanks in advance
Vu
# 2  
Old 03-20-2003
Ok first off change the permission back to there original settings, I can't remember what they should be but someone here should be able to help you.
Second, try to remember what you were doing just prior to this happening. Did you receive any emails, or where you scanned while on the net.
What about your logs, especially under /var/log/messages. Any odd entries?
# 3  
Old 03-20-2003
Those probably are the original permissions. We use SCO, and the tmp directory has those same permissions..
# 4  
Old 04-04-2003
I hope you have fixed this since the last post. But here goes my attempt to help.

First, look at what you are doing. You are using mail to open a temporary file for mail.

This appears to be a config problem with mail. Personally, I dont use mail. I use elm or if i dont have that I use mailx. I just like the features of elm.

You either have a 100% on /tmp or /var/tmp. OR you have a configuration problem with mail. There is sometimes a *.lock file in your /var/mail directory that may be needed as well.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sqlplus inside shell script writing to tmp file

Hi, facing an issue while calling sqlplus inside shell script. It for some reason goes to tmp file to write something and i get error as permission denied as i dont have access there. ANy idea why sqlplus writes in /tmp and how to change or stop this ? (2 Replies)
Discussion started by: rushikeshs
2 Replies

2. Shell Programming and Scripting

/tmp filling up

Does anyone know of a way to redirect the ksh default of processing data in /tmp to another file system or / something else? My ksh script is parsing large DB files and it keeps filling up /tmp on the root disk. I have a 1 Tb disk with most of its space. How do I re-direct the /tmp ksh... (6 Replies)
Discussion started by: cchelten
6 Replies

3. Solaris

cannot cd /tmp.

Hi All, There's a /tmp. folder on my solaris 9. I can't cd on it bash-2.05# uname -a SunOS cads105ctce 5.9 Generic_122300-30 sun4u sparc SUNW,Sun-Fire-V890 bash-2.05# cd /tmp. bash: cd: /tmp.: No such file or directory bash-2.05# ls -la /tmp. /tmp.: No such file or directory ... (5 Replies)
Discussion started by: itik
5 Replies

4. AIX

/tmp full

The /tmp is 100% full, I found there are the following big files/directory: 1301500 syslog.out.58 166692 vac 158552 install.dir.2928686 158552 install.dir.2236636 110980 install.dir.2887698 /tmp/vac have some files like : .toc ... (3 Replies)
Discussion started by: rainbow_bean
3 Replies

5. Solaris

/tmp as swap

So with solaris 10 are people not using the old /tmp as a regular UFS filesystem and making /tmp part of swap or tmpfs... what are peoples thoughts on this? (5 Replies)
Discussion started by: csaunders
5 Replies

6. UNIX for Dummies Questions & Answers

what is so special about /tmp/

I know that /tmp is used for memory or swap??? and that it should not be full ??? and that files under /tmp are automatically removed after a reboot??? Is this info true??? thx (16 Replies)
Discussion started by: melanie_pfefer
16 Replies

7. AIX

/tmp full

good morning The /tmp filesystem is full at 99 % I have do a "rm" but the size is the same. so i think that a process is always alive, but how can i do to know it ? (because I have deleted some file in /tmp) thank you (9 Replies)
Discussion started by: pascalbout
9 Replies

8. Solaris

How To Shrink /Tmp

Hi, Do you know if we can shrink the size of the Swap under Solaris 8 ? 8Gb is already allocated to /TMP but we would like to reduce to 1 GB. Thanks, Fabien. (2 Replies)
Discussion started by: unclefab
2 Replies

9. UNIX for Dummies Questions & Answers

monitoring /tmp and /var/tmp for suspicous activity

Hello, does anyone have a script that can check the contents of the /tmp directory and for example e-mail the directory content if anything other than session files are present? Maybe there are better ways to monitor suspicous /tmp and /var/tmp activity, if so I'm listening :) (1 Reply)
Discussion started by: jamesbond
1 Replies

10. UNIX for Dummies Questions & Answers

/tmp is missing ????

Hi, When I type mail command i get the following error : /tmp/Rx7678 : No such file or directory If I try to use the man, i also get an error related to /tmp. I looked at my other servers and found this /tmp file, looked inside it and found that it has some files related to... (1 Reply)
Discussion started by: BAM
1 Replies
Login or Register to Ask a Question