Sponsored Content
Top Forums UNIX for Advanced & Expert Users how to know how many user's connected to ftp and http server Post 70406 by hariprasad on Thursday 28th of April 2005 01:14:28 PM
Old 04-28-2005
thanks for the reply , I tried the solution ,but even though there are no users connected to the ftp server it gives a value 2 and on the http server it gives a value 1.
and also i wrote the program using the given solution , i used the system("ps -ef|grep -c ftp > somefile") inside my program ,when i saw the output in the filet it had a value 3 , when no users were connected and if i used the same command on the prompt i get the value 2 how is this possible, please help me

And in the case of HTTP server there is no change like the above if no users are connected it gives the value 1
 

10 More Discussions You Might Find Interesting

1. Cybersecurity

List of HTTP/FTP-clients on a server

The other day, a friend of mine had his Linux webserver compromised because he was running a vulnerable PHP-script. The "hacker" had used a malformed URL to include a wget-command to fetch some stuff off the net and install it in /dev/shm where it ran undetected. Fortunately, the webserver ran as a... (2 Replies)
Discussion started by: indo1144
2 Replies

2. Shell Programming and Scripting

Dowloading a File from FTP Server to a local Server where User Id's are different

Hi, The Setup is like this. I'm connecting to Unix machine from my local machine. After connecting to Unix M/c, i need to connect FTP server. Am successful in connecting to FTP server, but am not able to download the file from the ftp server to my local machine. I have different user id's and... (1 Reply)
Discussion started by: ranjith_taurean
1 Replies

3. HP-UX

FTP user information on destination server

Could any one please tell me how to check the ftp users information on the destination server ( Hp-UX ) ? Source server used to do FTP to my server ( that is destination server ) . Now , he is getting error that login is incorrect and unable to login into destination server . Please tell me how to... (3 Replies)
Discussion started by: randhir
3 Replies

4. Red Hat

SAN Connected RedHat Server

I received 4 pre-loaded ready-to-go intel servers running RedHat Enterprise Linux 3 kernel version 2.6.9-22.18 build date june 29, 2006. They are equiped with QLOGIC 2400 dual-port HBA cards. I need to know what utilities or command-sets are available to check these cards out? How do I get their... (4 Replies)
Discussion started by: sallender
4 Replies

5. Linux

How do I run HTTP server on port 80 using a non root user?

Hi experts, I want to run HTTP server on port 80, I learn from somewhere that it MUST not be run as root for security reason, how to do that? Thank you in advance! (14 Replies)
Discussion started by: kevintse
14 Replies

6. Solaris

Command see all devices connected to Sun server

Hi All, How to view all devices connected to Sun E2900. I wan to view all components attached to it. Please help Regards, NSkumar (3 Replies)
Discussion started by: nskumar
3 Replies

7. Solaris

How to execute a ".profile" depending on the server from where the user is connected.

Hello, I have two Solaris servers on a cluster. I have created the same user "X"on the two nodes (same UID and same GID). The file ".profile" of this user "X" is located in a filesystem that is seen by the two nodes. Each server should have a ".profile" of this user different of the other... (6 Replies)
Discussion started by: adilyos
6 Replies

8. Red Hat

Redhat server is not connected via putty

i have a redhat linux 5.3 machine. i can ping that machine remotely from my laptop. but when i connect that server via putty after providing username and password there is wait for some minutes and then i get error message "server unexpectedly closed network connection" Please guide... (2 Replies)
Discussion started by: rehantayyab82
2 Replies

9. UNIX for Dummies Questions & Answers

Ftp showing connected only

hi, good morning. Anyone can help me out. A trying to ftp from server A to server B. from server A to B its working fine but from server B to A, its only showing connected only: finap7 #ftp 10.10.10.210 Connected to 10.10.10.210. I refresh the inetd but nothing is happening. Please... (1 Reply)
Discussion started by: kamaldev
1 Replies

10. Shell Programming and Scripting

How to get user to choose files to be copied to FTP server?

Hey all. I'm writing a script to automatically login to a router, change directories to where crashfiles are located, then listing all files in that directory. This is where I'm at so far and wish to have some user interaction to choose the files. What I am trying to do is list the files and get... (1 Reply)
Discussion started by: Gouda
1 Replies
FTPD(8) 						      System Manager's Manual							   FTPD(8)

NAME
ftpd, in.ftpd, setup.anonftp - DARPA Internet File Transfer Protocol server SYNOPSIS
ftp stream tcp nowait root /usr/sbin/in.ftpd in.ftpd tcpd ftp /usr/sbin/in.ftpd DESCRIPTION
Ftpd is the DARPA Internet File Transfer Prototocol server process. The server uses the TCP protocol and listens at the port specified in the ``ftp'' service specification; see services(5). The ftp server currently supports the following ftp requests; case is not distinguished. Request Description ABOR abort previous command ACCT specify account (ignored) ALLO allocate storage (vacuously) APPE append to a file CDUP change to parent of current working directory CWD change working directory DELE delete a file HELP give help information LIST give list files in a directory (``ls -lA'') MKD make a directory MODE specify data transfer mode NLST give name list of files in directory (``ls'') NOOP do nothing PASS specify password PASV prepare for server-to-server transfer PORT specify data connection port PWD print the current working directory QUIT terminate session RETR retrieve a file RMD remove a directory RNFR specify rename-from file name RNTO specify rename-to file name STOR store a file STOU store a file with a unique name STRU specify data transfer structure TYPE specify data transfer type USER specify user name XCUP change to parent of current working directory XCWD change working directory XMKD make a directory XPWD print the current working directory XRMD remove a directory The remaining ftp requests specified in Internet RFC 959 are recognized, but not implemented. The ftp server will abort an active file transfer only when the ABOR command is preceded by a Telnet "Interrupt Process" (IP) signal and a Telnet "Synch" signal in the command Telnet stream, as described in Internet RFC 959. Ftpd interprets file names according to the ``globbing'' conventions used by csh(1). This allows users to utilize the metacharacters ``*?[]{}~''. Ftpd authenticates users according to three rules. 1) The user name must be in the password data base, /etc/passwd, and not have a null password. In this case a password must be pro- vided by the client before any file operations may be performed. 2) The user name must not appear in the file /etc/ftpusers. 3) If the user name is ``anonymous'' or ``ftp'', an anonymous ftp account must be present in the password file (user ``ftp''). In this case the user is allowed to log in by specifying any password (by convention this is given as the client host's name). In the last case, ftpd takes special measures to restrict the client's access privileges. The server performs a chroot(2) command to the home directory of the ``ftp'' user. In order that system security is not breached, it is recommended that the ``ftp'' subtree be con- structed with care; the following rules are recommended. ~ftp) Make the home directory owned by ``ftp'' and unwritable by anyone. ~ftp/bin) Make this directory owned by the super-user and unwritable by anyone. The program ls(1) must be present to support the list com- mands. This program should have mode 111. ~ftp/etc) Make this directory owned by the super-user and unwritable by anyone. The files passwd(5) and group(5) must be present for the ls command to work properly. These files should be mode 444. ~ftp/pub) Make this directory mode 755 and owned by the super-user. Create directories in it owned by users if those users want to manage an anonymous ftp directory. ~ftp/pub/incoming) Optionally create this directory for anonymous uploads. Make it mode 777. The FTP daemon will create files with mode 266, so remote users can write a file, but only local users can do something with it. The script setup.anonftp can be used to create or check an anonymous FTP tree. SEE ALSO
ftp(1). BUGS
The anonymous account is inherently dangerous and should avoided when possible. FTPD(8)
All times are GMT -4. The time now is 09:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy