10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I was asked if I can create an FTP only user on a UNIX system I've inherited at work. (Solaris).
I've worked on UNIX systems for a long time, but never really as an admin.
I searched the web, and on this forum, for information on exactly how to do this.
(The new user will also need to be... (4 Replies)
Discussion started by: HeyMoe
I am using Solaris 10, actually i want to restrict user to access upper level directory while using ftp, means when user access a folder using ftp he has no access to go to base directory.
If i am not wrong ftp configuration file use in solaris 10 is /etc/ftpd/ftpaccess kindly confirm,
I... (1 Reply)
Discussion started by: zeeshan047
I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir.
rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed.
Can some body help me to... (2 Replies)
Discussion started by: krsnadasa
4. Shell Programming and Scripting
I am new to shell scripting,and i was planning to write a script that will FTP files to destination folder.
I was planning that All configuration should be done through a properties files. and finally the output should be
Files are transferred
I have developed a properties file named... (4 Replies)
Discussion started by: rahul125
5. Shell Programming and Scripting
I'm using the following script to automated ftp files to 1 ftp servers
/usr/bin/ftp -vi >> $bkplog 2>&1 <<ftp
and the .netrc file contain
login abc... (4 Replies)
Discussion started by: varu0612
6. UNIX for Advanced & Expert Users
We have some clients who will place huge files in to one of the remote server.
And the shell script written in our local server to retrieve client files (using FTP) placed on one of the remote server of ours by clients.
My question Is there any FTP command/script to check from my local... (1 Reply)
Discussion started by: nmsrao
I need basic help to configure/check an FTP account on Solaris 9 (5.9) (by shell)
with man ftp I'm not really able to configure that. On google or doc.sun.com I cant find a basic understanding of configuration an ftp server. Where are the files / setupfile.
does somebody helps me with... (5 Replies)
Discussion started by: actino
8. Shell Programming and Scripting
A couple of times per week, i receive emails notifications when files are available for processing.
Currently i read these eamails with a java program and store the attachement on my C: drive and would now like to generate a PC script to send this file name up to UNIX-Solaris and... (3 Replies)
Discussion started by: bobk544
I use fedora linux. I want to configure my FTP server. Actually, I don't know anything about this server except that I know I have installed it. Please guide me with this.
Thx (1 Reply)
Discussion started by: HSN
10. UNIX for Dummies Questions & Answers
Hi everybody !
How can I configure the ftp in solaris systems ? Wich files ?
To resume : I want to create a user wich can get from a ftp session running from a PC, some files without going up in the directories. If I attached the ksh or sh shell to the user, he can go wherever he wants. If I... (7 Replies)
Discussion started by: MarcoW
netrc(4) File Formats netrc(4)
netrc - file for ftp remote login data
The .netrc file contains data for logging in to a remote host over the network for file transfers by ftp(1). This file resides in the
user's home directory on the machine initiating the file transfer. Its permissions should be set to disallow read access by group and oth-
ers. See chmod(1).
Tokens can be separated by SPACE, TAB, or NEWLINE characters. The following tokens are supported:
account string Supply an additional account password. If this token is present, the auto-login process supplies the specified string if
the remote server requires an additional account password. If the remote server does not require an additional account
password, the auto-login process initiates an ACCT command.
default Same as machine name, except that default matches any name. There can be only one default token, and it must be after
all machine tokens. The default token is normally used as follows:
default login anonymous password user@site
Such an entry gives the user automatic anonymous ftp login to machines not specified in .netrc.
login name Identify a user on the remote machine. If this token is present, the auto-login process initiates a login using the
machine name Identify a remote machine name. The auto-login process searches the .netrc file for a machine token that matches the
remote machine specified on the ftp command line or as an open command argument. Once a match is made, the subsequent
.netrc tokens are processed, stopping when the EOF is reached or another machine token is encountered.
macdef name Define a macro. This token functions the same as ftp macdef. A macro is defined with the specified name; its contents
begin with the next .netrc line and continue until a null line (consecutive NEWLINE characters) is encountered. If a
macro named init is defined, it is automatically executed as the last step in the auto-login process.
password string Supply a password. If this token is present, the auto-login process supplies the specified string if the remote server
requires a password as part of the login process. If this token is present in the .netrc file, ftp aborts the auto-login
process if the .netrc is readable by anyone besides the user.
skipsyst Skip the SYST command that is sent by default to all remote servers upon connection. The system command is what enables
the automatic use of binary mode rather than the protocol default ascii mode.
As some older servers cannot handle the ftp command, this directive is provided to allow inter-operability with these
Example 1 A Sample .netrc File
A .netrc file containing the following line:
machine ray login demo password mypassword
allows an autologin to the machine ray using the login name demo with password mypassword.
chmod(1), ftp(1), in.ftpd(1M)
SunOS 5.11 25 Aug 2006 netrc(4)