10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
When using FTP to transfer a file from IBM iSeries family of servers client to a non IBM Iseries family server, files might have characters appear in the wrong format
Eg | in Iseries and while transferring fro Iseries system to Linux , but instead of | it is showing as ?.
Please advise (3 Replies)
Discussion started by: sudhainit
3 Replies
2. Shell Programming and Scripting
Hi,
I need a shell script to transfer a file from one server(unix box) to another server(windows box).
I have the details of the source and destination Ip's.
source path : /home/UNIX/server
filename:abc.txt
Destination folder: D:/UNIX/test
I am using AIX server.
Type of shell :... (1 Reply)
Discussion started by: NareshN
1 Replies
3. Shell Programming and Scripting
Hi,
I have written a small script to transfer a file from one unix server to other using scp command which is working fine. As I know with scp, if any file with the same name is already present on destination server, it would get overwritten without any notification to user. Could anyone help me... (14 Replies)
Discussion started by: dsa
14 Replies
4. Programming
HI
Can anyone provide me with codes for file transfer server to client or vice versa?
Also please explain how to compile those programs in ubuntu terminal as i am totally new to socket programming.
Thanks (0 Replies)
Discussion started by: mayhemtrigger
0 Replies
5. Programming
Hello, I am trying to send a file (1 MB) through sockets and for some reason I am getting segmentation fault message and receiving in the server an incomplete file. The current file is about 3 pages long and need to send it from the client to the server. I've tried malloc with free(), I am now... (8 Replies)
Discussion started by: sfcddm1
8 Replies
6. Programming
Hai Friends
I am writing a c program to transfer files from one system to another using TCP/IP socket programming..
My Recieve Program
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
extern int errno;
extern char *sys_erlist;
void... (2 Replies)
Discussion started by: collins
2 Replies
7. Shell Programming and Scripting
Hi All,
it might not be an sound question,
i have two server like A and B..
i want to transfer file from B to A
..here i have some questions..
1) do we need to create private and public key to connect..and
transferring files...from B to A..?
2) i tried with scp options like... (2 Replies)
Discussion started by: Shahul
2 Replies
8. UNIX for Dummies Questions & Answers
Dear all,
Can anybody let me know how to automate a file transfer process to a remote m/c thru SFTP , automate means it will not prmpt for password.
how i am going to achive this....and what all methods are available or tools are available ???? (2 Replies)
Discussion started by: manas_ranjan
2 Replies
9. Shell Programming and Scripting
hi all
how do i copy a file from one server to another
thanks
bkan77 (4 Replies)
Discussion started by: bkan77
4 Replies
10. Programming
I am in a Systems programming class this semester, and our current project is to write a program utilizing sockets and fork. For the project, I decided to make my own instant messaging program. I have the code completed, but I have a problem that keeps old clients from communicating with new... (3 Replies)
Discussion started by: gstlouis
3 Replies
ftpd(8c) ftpd(8c)
Name
ftpd - DARPA Internet File Transfer Protocol server
Syntax
/usr/etc/ftpd [ -d ] [ -l ] [ -ttimeout ]
Description
The server is the DARPA Internet File Transfer Protocol server process. The server uses the TCP protocol and is invoked by when it
receives a connection on the port specified in the service specification. For further information, see
The server currently supports the following requests. Case is not distinguished.
Request Description
ABOR Abort previous command
ACCT Specify account
ALLO Allocate storage
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 of files in a directory (ls -lg)
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 requests specified in Internet RFC 959 are recognized, but not implemented.
The server interprets file names according to the globbing conventions used by This allows users to utilize the metacharacters *?[]{}~.
The server authenticates users according to three rules:
1. The user name must be in the password database, and not have a null password. In this case a password must be provided by the client
before any file operations may be performed.
2. The user name must not appear in the file
3. If the user name is anonymous or an anonymous 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, takes special measures to restrict the client's access privileges. The server performs a command to the home directory
of the user. To prevent system security from being breached, it is recommended that the subtree be constructed with care. Thus the follow-
ing rules are recommended:
~ftp) Make the home directory owned by and unwritable by anyone.
~ftp/bin) Make this directory owned by the superuser and unwritable by anyone. The program must be present to support the list commands.
This program should have mode 111.
~ftp/etc) Make this directory owned by the superuser and unwritable by anyone. The files and must be present for the command to work prop-
erly. These files should be mode 444.
~ftp/pub) Make this directory mode 777 and owned by Place the files, which are to be accessible by the anonymous account, in this direc-
tory.
Options
-d Enables certain debugging messages that are printed by ftpd.
-l Logs each ftp session to the
-t Sends the inactivity timeout period to timeout; otherwise, the server will timeout an inactive session after 15 minutes.
Restrictions
Support does not exist for aborting commands.
The use of an anonymous account is inherently dangerous and should be avoided when possible.
The server must run as the superuser to create sockets with privileged port numbers. The server maintains an effective user id of the
logged in user, reverting to the superuser only when binding addresses to sockets. The possible security holes have been extensively scru-
tinized, but are possibly incomplete.
Files
Contains the list of unauthorized users
See Also
ftp(1c), services(5), inetd(8c), syslog(8)
ftpd(8c)