Unix Technical Forum

File created in /tmp for each login

This is a discussion on File created in /tmp for each login within the AIX Operating System forums, part of the Unix Operating Systems category; --> AIX 5.2 Whenever somebody logs in to our AIX system, it creates an apparently randomly named file if 6 ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 04:18 AM
CAB
 
Posts: n/a
Default File created in /tmp for each login

AIX 5.2

Whenever somebody logs in to our AIX system, it creates an apparently
randomly named file if 6 characters with the following format:

LOGIN <UID> <TERMINAL> <REMOTE_HOST> <DATE> <TIME>

i.e.:
File named /tmp/NpQhya contains the following text:
LOGIN cab pts/0 192.163.1.1 06/25/04 12:17:15

It does it for at least telnet, ssh, and ftp. Any idea what is creating
these files and why?

Thanks,
CAB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 04:18 AM
Bill
 
Posts: n/a
Default Re: File created in /tmp for each login

CAB <CAB@newsguy.com> wrote in message news:<pan.2004.09.21.18.08.07.189006@newsguy.com>. ..
> AIX 5.2
>
> Whenever somebody logs in to our AIX system, it creates an apparently
> randomly named file if 6 characters with the following format:
>
> LOGIN <UID> <TERMINAL> <REMOTE_HOST> <DATE> <TIME>
>
> i.e.:
> File named /tmp/NpQhya contains the following text:
> LOGIN cab pts/0 192.163.1.1 06/25/04 12:17:15
>
> It does it for at least telnet, ssh, and ftp. Any idea what is creating
> these files and why?
>
> Thanks,
> CAB



/etc/profile perhaps ?

BV
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 04:19 AM
CAB
 
Posts: n/a
Default Re: File created in /tmp for each login

On Wed, 22 Sep 2004 14:29:31 -0700, Bill wrote:

> CAB <CAB@newsguy.com> wrote in message news:<pan.2004.09.21.18.08.07.189006@newsguy.com>. ..
>> AIX 5.2
>>
>> Whenever somebody logs in to our AIX system, it creates an apparently
>> randomly named file if 6 characters with the following format:
>>
>> LOGIN <UID> <TERMINAL> <REMOTE_HOST> <DATE> <TIME>
>>
>> i.e.:
>> File named /tmp/NpQhya contains the following text:
>> LOGIN cab pts/0 192.163.1.1 06/25/04 12:17:15
>>
>> It does it for at least telnet, ssh, and ftp. Any idea what is creating
>> these files and why?
>>
>> Thanks,
>> CAB

>
>
> /etc/profile perhaps ?
>
> BV


Not that I can see, it looks vanilla to me. I've also tried a
grep "/tmp/\$" *
from /etc in the hopes I might stumble across something, no such luck
though.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 04:20 AM
Steve N.
 
Posts: n/a
Default Re: File created in /tmp for each login

CAB <CAB@newsguy.com> wrote in message news:<pan.2004.09.21.18.08.07.189006@newsguy.com>. ..
> Whenever somebody logs in to our AIX system, it creates an apparently
> randomly named file if 6 characters with the following format:
> LOGIN <UID> <TERMINAL> <REMOTE_HOST> <DATE> <TIME>
> It does it for at least telnet, ssh, and ftp. Any idea what is creating
> these files and why?


You can try checking the /etc/security/user file and examine the
"auth1" setting to see if it is calling anything special. The
/etc/security/login.cfg might also show you some clues to this.

These are also good candidates.

/etc/profile
/home/$USER/.profile

Do you know if auditing of users is turned on? Maybe that is actually
creating the files.

Regards,

Steve
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 04:20 AM
CAB
 
Posts: n/a
Default Re: File created in /tmp for each login

On Mon, 27 Sep 2004 08:57:46 -0700, Steve N. wrote:

> CAB <CAB@newsguy.com> wrote in message news:<pan.2004.09.21.18.08.07.189006@newsguy.com>. ..
>> Whenever somebody logs in to our AIX system, it creates an apparently
>> randomly named file if 6 characters with the following format:
>> LOGIN <UID> <TERMINAL> <REMOTE_HOST> <DATE> <TIME>
>> It does it for at least telnet, ssh, and ftp. Any idea what is creating
>> these files and why?

>
> You can try checking the /etc/security/user file and examine the
> "auth1" setting to see if it is calling anything special. The
> /etc/security/login.cfg might also show you some clues to this.
>
> These are also good candidates.
>
> /etc/profile
> /home/$USER/.profile
>
> Do you know if auditing of users is turned on? Maybe that is actually
> creating the files.
>
> Regards,
>
> Steve


auth1 just points to SYSTEM, so that shouldn't be it, and login.cfg looks
normal. /etc/profile looks fine, and ~/.profile only expands on the $PATH
setting. sar is off.

I'm completely baffled on this one.

Thanks for the suggestions,
CAB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:12 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com