Wednesday, October 28, 2009

Assigning a banner to ftp server:

A part of the contents is displayed from the file /etc/ftpd/ftpacess

sendbuf 65536 real,guest,anonymous
# flush-wait no anonymous
# passive ports 0.0.0.0/0 32768 65535
# timeout data 600
# timeout idle 300

banner /etc/ftpd/banner.msg

(Output Truncated)

From the above, we can know the default connection time whilst data is transmitting through ftp
and the idle time too.

To assign a banner whilst ftp connection is establishing, do the following:
1. Create a file /etc/ftpd/banner.msg
2. Add the contents to the file


For Eg:
# vi /etc/ftpd/banner.msg
Hi, You are not authorized!!!
:wq!


Output:
bash-3.00# ftp localhost
ftp: connect to address ::1: Network is unreachable
Trying 127.0.0.1...
Connected to localhost.
220-Hi, You are not authorized!!!
220-
220 localhost FTP server ready.
Name (localhost:root):



Hooray!!! It work's!!!

Sunday, October 11, 2009

PROCESS STATISTICS:

List of Process Statistics commands:


# cputrack = Per-processor hardware counters
# pargs = Process arguments
# pflags = Process flags
# pcred = Process credentials
# psig = Process signal disposition
# pldd = Processor's library dependencies
# pstack = Process stack dump
# pmap = Process memory map
# pfiles = Open files and names
# prstat = Process statistics
# ptree = Process tree
# ptime = Process microstate times
# pwdx = Process working directory