Sponsored Content
Operating Systems AIX what is creating the files in /tmp Post 302258250 by bakunin on Friday 14th of November 2008 06:19:57 AM
Old 11-14-2008
Probably the (interactive) shells are doing this. If you enter a long (multiline) command like a for-loop, a while-loop, etc. shells create temporary files they sometimes "forget" to delete. Over time these files accumulate.

Other programs oftenly do the same. For instance the /tmp directory of one of my machines looks like this (part of it - rest snipped):

Code:
-rw-rw-r--   1 root     admin          1833 Oct 23 11:21 aaaHxubqa
-rw-rw-r--   1 root     admin          1833 Oct 23 11:21 aaaIDYiEa
-rw-rw-r--   1 root     admin          1833 Oct 23 11:21 aaaIG7jaa
-rw-rw-r--   1 root     admin          1833 Oct 23 11:21 aaaIL3nya
-rw-rw-r--   1 root     admin          1833 Oct 23 11:21 aaaILabEa
-rw-r-----   1 xlcuser staff            360 Oct 28 09:58 xlcLD3JUaMf
-rw-r-----   1 xlcuser staff            360 Oct 27 13:31 xlcLD3Laeaf
-rw-r-----   1 xlcuser staff            363 Nov 04 16:39 xlcLD4HYiaf
-rw-r-----   1 xlcuser staff            360 Oct 27 13:31 xlcLD4Haeif
-rw-r-----   1 xlcuser staff            360 Oct 28 09:58 xlcLD4IUaUf
-rw-r-----   1 xlcuser staff            363 Oct 27 13:30 xlcLD4oIhaf
-rw-r-----   1 xlcuser staff            363 Nov 04 16:53 xlcLD5D3myf
-rw-r-----   1 xlcuser staff            363 Oct 28 09:58 xlcLD5hUiUf

The first group is from shell processes, the second group is from xlc.

Delete them if they bother you. You could do it from cron with a "find .... -exec rm ..." or configure skulker to go after them.

I hope this helps.

bakunin
 

10 More Discussions You Might Find Interesting

1. 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

2. Shell Programming and Scripting

K shell /tmp/sh$$.* files problem

Hi, I am encountring this problem from some time now... ksh creates temp files /tmp/sh$$.* . Sometimes if some of my shell script crashes or I kill it... these temp files remain in the /tmp directory. At some later time when some script gets the same PID it tries to create files in the... (5 Replies)
Discussion started by: amitkr
5 Replies

3. AIX

set permission to files in /tmp

Trying to setup user to have the ability to delete any files (regardless of owner) in /tmp. I've tried almost everything... the permission on the folder is drwxrwxrwt 10 bin bin, and at one point I give all the possible permission (short of root) I can give to the user, and he still can't delete... (2 Replies)
Discussion started by: cchiang12
2 Replies

4. Solaris

How to save files in /tmp????

Hi all, I would like to know how to save files in /tmp... I was interested in knowing this because when ever i booted into solaris there would already be a few files present in /tmp.however any file that is freshly stored in would be lost on reboot... can anyone answer this pls!! (3 Replies)
Discussion started by: wrapster
3 Replies

5. Shell Programming and Scripting

how to pin files to /tmp

Hi all, Am currently working on editing a startup script that need me to copy a certain file from cdrom to /tmp (its a live cd am working on)and mount if from there to certain place.. Now i know that nothing can be stored in /tmp permanently ,however mechanism to load the file to /tmp on... (19 Replies)
Discussion started by: wrapster
19 Replies

6. Shell Programming and Scripting

I need to make a script to delete files not in use in /tmp

I need to make a script to delete files not in use in /tmp Thanks! (4 Replies)
Discussion started by: raulochi
4 Replies

7. UNIX for Dummies Questions & Answers

ls or find files under /tmp/*

what is proper syntax to ls all files under /tmp/*, and wc -c ? (4 Replies)
Discussion started by: tjmannonline
4 Replies

8. AIX

Unknown files in /tmp

I have a lot of files with the following names in /etc /tmp/<num>.mktcpip like /tmp/934030.mktcpip Anyone knows which process creates these files? (1 Reply)
Discussion started by: petervg
1 Replies

9. UNIX for Dummies Questions & Answers

Redirecting tmp files of SORT into different directory

Hey Guys, I am facing an annoying scenario, fewer times when I execute the sort command, it throws out on error saying that "No Space on available on /var/tmp/<temp file name>. May be it is set to /var/tmp directory. I was wondering, if I cant redirect the temporary file creation to any other... (3 Replies)
Discussion started by: abhisheksunkari
3 Replies

10. Red Hat

Can all files under /tmp be safely removed

I wanted to know whether all files under /tmp can be safely removed. I guess that /tmp may also have temporary files for applications currently being worked on, so at the most those applications may just shut down. I hope that my question is clear whether all files under /tmp can be safely... (5 Replies)
Discussion started by: RHCE
5 Replies
PTS_RENAME(1)						       AFS Command Reference						     PTS_RENAME(1)

NAME
pts_rename - Changes the name of a Protection Database entry SYNOPSIS
pts rename -oldname <old name> -newname <new name> [-cell <cell name>] [-noauth] [-localauth] [-force] [-help] pts ren -o <old name> -ne <new name> [-c <cell name>] [-no] [-l] [-f] [-h] DESCRIPTION
The pts rename command changes the name of the user, machine, or group entry specified by the -oldname argument to the name specified by the -newname argument. It is not possible to change a user or machine entry's name to look like a regular group entry's name (have a colon in it). Members of the system:administrators group can change a regular group name into a prefix-less name and vice versa. When changing a prefix- less group name into a regular group name or a regular group name to another regular group name, the owner field of the new name (the part before the colon) must correctly reflect the group's owner. Changing a regular group's owner with the pts chown command automatically changes the owner field (the part before the colon) of the group's name, but does not change the owner field of any groups owned by the group. Use this command to rename those groups to a form that accurately reflects their ownership. CAUTIONS
By convention, many aspects of an AFS user account have the same name as the user's Protection Database entry, including the Authentication Database entry, volume, and mount point. When using this command to change a user name, also change the names of all related entities to maintain consistency. For instructions, see the chapter on user accounts in the OpenAFS Administration Guide. OPTIONS
-oldname <old name> Specifies the current full name of the entry. -newname <new name> Specifies the new full name for the entry. For regular groups, the owner field (the part before the colon) of the new name must reflect the actual ownership of the group. -cell <cell name> Names the cell in which to run the command. For more details, see pts(1). -force Enables the command to continue executing as far as possible when errors or other problems occur, rather than halting execution at the first error. -help Prints the online help for this command. All other valid options are ignored. -localauth Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. Do not combine this flag with the -cell or -noauth options. For more details, see pts(1). -noauth Assigns the unprivileged identity anonymous to the issuer. For more details, see pts(1). EXAMPLES
The following example changes the name of the group staff, owned by the privileged user "admin", to "admin:staff": % pts rename -oldname staff -newname admin:staff The following example changes the name of the group "admin:finance" to the group "finance". The issuer must belong to the system:administrators group. % pts rename -oldname admin:finance -newname finance PRIVILEGE REQUIRED
To change a regular group name to a prefix-less name or vice versa, or to change a user or machine entry's name, the issuer must belong to the system:administrators group. To change a group name to a new name of the same type (regular or prefix-less), the issuer must own the group or belong to the system:administrators group. SEE ALSO
pts(1), pts_chown(1) COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved. This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell. OpenAFS 2014-04-08 PTS_RENAME(1)
All times are GMT -4. The time now is 03:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy