SUMMARY: Swap and mail command issue

From: vikram kashyap <vik2kash_at_hotmail.com>
Date: Wed Feb 27 2002 - 07:46:30 EST
Dear All
       thanks to those who responded.
original problem
  1. # mailx -v root
     root.. connecting to local host via relay
root.. Deferred : connection refused by local host

# cat /etc/hosts
      197.19.19.2  drnd  loghost .
       ...


sol:-  # domainname
        drnd.vsnl.net
       # hostname drnd
         # nslookup ...  ( check working or not)
          edit /etc/hosts with following
        # vi /etc/hosts
        197.19.19.2 drnd loghost  drnd.vsnl.net.in


2. swap space shown by   df -k is continuously decreasing. to check swap use 
when i run
#swap -l it only shows header line and nothing else i.e.
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
  and nothing else
3. #swap -s gives
  swap: option requires an argument --s
usage:ps [ -aAdeflcj] [ -0 format] [+  termlist ][-u userlist] [-U userlist] 
[-G grouplist][-p proclist] [-g pgrplist][-s sidlist]
'format' is one or more of:
user ruser group rgroup uid ruid gid rgid pid ppid pgid sid pri opri pcpu 
pmem VSZ rss OSZ nice class time etime stime f s c tty  addr wchan fname 
comm  args
Sol: 2 & 3 - just have a look at the o/p of these above commands and u'll 
know what the problem is  actually when u run swap commands it shows o/p of 
ps commands .. that was the trick . actually the system was hacked with  
somebody removed /usr/sbin/swap and
  # cp /usr/sbin/ps /usr/sbin/swap
    we copied fresh /usr/sbin/swap  other server and
added  swap with #mkfile and #swap -a

now i am left with one question , how to recreate all the links ( 33) of 
/usr/sbin/swap
  hope to get answer soon from most of you
   ..
   bye



>From: "vikram aditya kashyap" <vik2kash@rediffmail.com>
>Reply-To: "vikram aditya kashyap" <vik2kash@rediffmail.com>
>To: vik2kash@hotmail.com
>Subject: Fwd: Re: Swap and mail command issue
>Date: 27 Feb 2002 05:01:01 -0000
>
>
>
>Note: Forwarded message attached
>
>-- Orignal Message --
>
>From: "Karl Vogel" <vogelke@dnaco.net>
>To: vik2kash@rediffmail.com
>Subject: Re: Swap and mail command issue
>
><< message3.txt >>


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed Feb 27 06:47:27 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:35 EST