Skip to main content

Posts

Showing posts with the label FTP

How to restrict FTP user to a specific directory in solaris 10

Procedure to configure FTP guest user access  1: Create a user which you want to use for the ftp , Name of the user can be anything except "ftp" ( In our Example it is "ftpuser") Useradd -g 10 -d /export/home/ftpuser -m -s /bin/bash ftpuser passwd ftpuser Enter the new password twice . 2: Run the "ftpconfig -d" command , on the home directory of newly created user.  # ftpconfig –d /export/home/ftpuser this updates the existing directory with the info needed to make the account restricted. After this you can see some extra directories in /export/home/ftpuser e.g bin, dev,lib e.t.c  3: Add the user to the /etc/ftpd/ftpaccess file. There is an existing commented entry  # guestuser username that can be uncommented and edited  guestuser ftpuser 4: Confirm that the user is a member of a class in /etc/ftpd/ftpaccess this entry should a already exist in ftpaccess class guestusers guest * 5: Modify permissions for guest user if necessary d...

Common factors to the Establishment of an FTP Server

Presuppositions to the examples (1) Required functions No other service except for ftp runs on the server. Only specific registered users are allowed to access the server (no anonymous user accounts are allowed). Authenticating the user in not only a user ID and a password but also a source IP address The server provides ftp service for each user equally. (2) Platform Hardware with Linux operating system tolerable for 24 hour continuous operation Fundamental settings as an Internet server have already been done. (3) Network configuration (see Figure 9.1) Permanent connection to the Internet ( via ISP) is prepared. The server is placed in the DMZ (De-Militarized Zone) branch from a firewall. The firewall allows only ftp connections for the server. Data stored in the server are transferred from data source system(s) in intranet through the firewall. Figure 9-1. Presuppositions to examples 2 Proces...

File Transfer Methods & Protocols

There are many protocols that could transfer data between hosts over TCP/IP networks. Each protocol has its characteristics, Some examples are as follow 1 File Transfer Protocols (1 ) TFTP The Trivial File Transfer Protocol (TFTP) is a simple file transfer protocol defined by RFC1350 . The mechanism of TFTP is completely different from the FTP. TFTP service uses single TCP port 69 instead o f 21 and 20 of the FTP. As the TFTP has no mechanism for authentication, it is inadequate to use it for Internet server because anybody could read/write data from/to the server. The TFTP is mainly used to boot disk-less equipment like X-11 terminals. (2) FTPS The FTPS is a extended version of the FTP. The extension to the standard FTP is define by the RFC2228 which introduce optional security function to the control and data connection and some new command and reply to the FTP are added. The encryption algorithms are not the part of the FTPS definition and installation dependent, and Se...

FTP Clients

1 Built in FTP Clients Linux and Windows have their built in FTP client software. Those have traditional text-based user interface that could be controlled by some scripting software, like shell , but not suit for operational unattended purposes because their user interface is full duplex and scripting languages are not good at handling those asynchronous communications. #!/bin/sh ftp -n ftp.wmo.int << EOF >> logfile 2>&1 user username passrowd binary get remote-file1 bye EOF Example: Simple Shell Script for FTP 2 GUI Clients You can find much free FTP client software on the Internet. Most of them are Graphical User Interface (GUI) based client and easy to use, but not suit for unattended operation because they need human interaction to transfer files. Some shareware or commercial software has batch or automatic operation capability with error retry or/and error recovery. Net Vampire and Core FTP Pro are examples.

FTP Server Software

There are kinds of software products for FTP server. The server administrator should choose the appropriate one in consideration of security and reliability where the authors respond quickly to security issues or bugs, performance to handle necessary concurrent connections, easiness in management and maintenance at server side, compliance with RFC959, and convenience from the user view. The following software products are predominant examples in diffusion and useful features. Be sure to install the most recent version of the software and to apply most recent patches to it, whichever product you choose. 1 wu-ftpd ( http://www.wu-ftpd.org/ ) The "wu-ftpd" had merits of having functions for archiving and compressing entire elements under a directory and running on many supported platforms. The last version of the "wu-ftpd" is 2.6.2 released in Nov 2001. Since the "wu-ftpd" used to be most commonly used server software, information on security flaw an...

Management of the FTP Server

In this section, server management issues such as security, availability, and service constructions are described. Execution Environment (Run Mode on the Unix like OS) One major concern on establishing FTP service is the run mode of the server, i.e., stand alone or run by xinetd . (1) Stand Alone Mode (Run as daemon) On the stand-alone mode, server runs as a daemon that directly accepts connections from Clients by itself and serves for it. A daemon is a process that waits for some event and act for some service on the Linux. A daemon runs as a root process on the Linux. It is not recommended to run a service as daemon because daemon consumes memory resource even it only waits for some event and do nothing. Also it has security risk because daemon runs as root, the privileged process that tend to be the target of attacks, if once the process is compromised by using some technique like buffer overflow attack, the server may defect to the enemy and might be completely controlled...

Designing FTP Service

In this section, FTP related things to design the service are considered . FTP Solutions On the view of risk management with in the recent Internet world, it is indispensable to adopt countermeasures against new risks continuously to keep the server secure after the operation. Fundamentals of security issues should be referred to the " WMO Guidance on Information Technology Security at WWW Centres" (being developed).  Generally , clustering and duplication of the serv ing system and multi-access circuits preparing for physical troubles are effective to improve availability, although it should be noted that their implementation range and details influence installation and recurrent costs. Considering human resource and cost for security and appropriate availability, self-management of the server is not always the sole solution. It m ight be worth to study the use of outsourcing services from ASP (Application Service Provider) / ISP (Internet Service Provider) s...

How FTP works?

The File Transfer Protocol (FTP) is defined by the RFC959 based on the FTP Model illustrated in the Figure 2-3. The FTP uses two TCP/IP connections, i.e., control connection and data connection between the User and the Server. The control connection manages and controls the Server to transfer files between the Server and the User through the data connection. It is important for understanding the FTP that the RFC959 defines the protocol between User-FTP Process and Server-FTP Process, not between User and User-FTP Process nor User and Server-FTP Process, in the Model. You cannot see the conversation between the User-FTP Process and the Server-FTP Process, i.e., FTP protocol, directly, as you operate FTP through the User Interface. Figure 2-3. The FTP Model (Session Layer)

File Transfer Protocol (FTP)

Basics on the File Transfer Protocol (FTP) In this section, mechanism of the File Transfer Protocol (FTP) is illustrated briefly. If you are familiar with the FTP protocol, you can skip this section. What is the FTP    The FTP is basic and common service to exchange files between computers, namely hosts, over TCP/IP networks e.g., private networks or Internet. The FTP supports file transmission and character code conversion when exchanging text or binary files. The use of FTP is effective in exchanging or distributing of large volume of data over private networks and/or the Internet. A structural outline of FTP service is illustrated in Figure 2-1. Figure 2-1. Structural outline of FTP service   Basically, FTP is defined in the RFC959 as a communication protocol between Server and User for exchanging files. The FTP Server stores files to be exchanged or exchanged. Users, who want to exchange files, will login to the server and PUT/GET files to/from t...