odd ftp problem


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers odd ftp problem
# 8  
Old 07-24-2007
From the ftpd man page:
Quote:
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 user’s e-mail address).
So for an account named "ftp" to work, you must set up anonymous ftp. You cannot treat "ftp" as another user. The man page mentions:

ftp:*:500:10:anonymous ftp:/home/ftp:/usr/bin/false

You must:
set the password field to *
ensure that the group is a guest group
change the shell is a good idea but if /usr/bin/false is not in /etc/shells you must add it
# 9  
Old 07-25-2007
thank you. I will try this first thing tomorrow.
# 10  
Old 07-25-2007
OK.
I have tried this again. If I use ftp command and the ftp user - it is signing on - but it isn't changing dir (chroot) to /home/ftp -- it is dropping the session in / (root) and once there you cannot cd /home/ftp - it says it is not found.
if I signon the system with user id ftp - it works and leaves me in /home/ftp and I can write to that directory.
# 11  
Old 07-25-2007
I have tried this again. the "user" ftp can sign on and gets to the /home/ftp directory, but cannot put to it.
here is the session:
Quote:
331 Guest login ok, send your complete e-mail address as passwor
Password:
230 Guest login ok, access restrictions apply.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
.cshrc
.exrc
.login
.profile
you_are_in_home_ftp.txt
226 Transfer complete.
ftp: 58 bytes received in 0.00Seconds 58000.00Kbytes/sec.
ftp> put unq-a9.txt
200 PORT command successful.
553 unq-A9.txt: Permission denied on server. (Upload)
ftp>
Here is the directory permissions:
Quote:
drwxrwxrwx 2 ftp users 8192 Jul 25 11:36 ftp
I'm stuck. Any ideas?

Lisa
# 12  
Old 07-25-2007
My guess would be the ftpaccess file. Were you running wuftpd on the old box? If so, maybe you could just copy ftpaccess over.
# 13  
Old 07-25-2007
there is no ftpaccess file in /etc/ftpd on either server.

how do I know if I was running wuftpd or not?
# 14  
Old 07-25-2007
Notice that you posted the following text:
Quote:
Connected to localhost.xxx.edu.
220 hqpxxx01.xxx.edu FTP server (Revision 1.1 Version wuftpd-2.6.1(PHNE_34698) F
ri Nov 10 10:21:03 GMT 2006) ready.
Do you see the string "wuftpd"? Yes it's possible to write another ftpd that claims to be wuftpd but behaves very differently, but I have never heard of that being done. If a server claims to be wuftpd, we assume that it is. Does your old server make that claim? Also, what os was on the previous box?

When you sign on the new server with ftp, does the command "dir" work? Does "dir" work on the old server?

If they are both wuftpd servers, are they being started with the same options? Typically they would be started via a line in /etc/inetd.conf so compare the entries in that file.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Ftp problem

Hi, I have a problem when i want to get a filename from an ftp server when a space is before his name. example: "spacetestFile" The ftp server return an error "no asset or no permission" though the file exist ? Why it behave in this way ? (8 Replies)
Discussion started by: protocomm
8 Replies

2. Shell Programming and Scripting

Odd looping issue with NET::FTP and Proftpd

Hello, I'm a UNIX SysAdmin at a large webhosting company and we have a vendor that provides a service which involves the ftp'ing of files from their servers to ours. They initiate FTP using a perl script with NET::FTP. When they try to transfer files (and delete files over ftp), there is... (3 Replies)
Discussion started by: tmmgeekette
3 Replies

3. Shell Programming and Scripting

odd problem in read lines from file

Hi, I wrote a small program to read lines from a file and count the lines. The program is as below: filename=$1 count=0 cat $filename | while read -r line do printf "%5d:%s\n" $count "$line" count=$((count + 1)) done echo " $count " After I run the program, the result is... (4 Replies)
Discussion started by: jianma
4 Replies

4. Shell Programming and Scripting

problem with ftp

hi there here is my problem i have a shell that copy files from unix to a shared linux samba (with rcp) i will change my linux machine with a windows one and saw rcp didnt work anymore ... so i tried ftp and saw it worked with these following commands ftp -niv <<fin open 192.9.200.105 user... (3 Replies)
Discussion started by: bzh35
3 Replies

5. Shell Programming and Scripting

problem with ftp

hi, I have two linux systems -server1, server2. From server1 to server2, I'm able transfer data using ftp, but server2 to server1 I'm unable to do the same.in this situation I'm getting an error message: port 543 error: connection refused. Even Talk command also working in server2 but not in... (2 Replies)
Discussion started by: csr
2 Replies

6. Shell Programming and Scripting

FTP Problem

Hello experts, I've got the following script that is supposed to FTP a file to another box. #!/usr/bin/ksh while read line do HOST=`echo "$line" | cut -d" " -f1` USER=`echo "$line" | cut -d" " -f2` PASSWD=`echo "$line" | cut -d" " -f3` PATH=`echo "$line" | cut -d" " -f4` done <... (5 Replies)
Discussion started by: King Nothing
5 Replies

7. Linux

Odd WLAN Device Problem

I'm trying to help convert my boss over to Linux. He has an HP/Compaq PC on which he installed Fedora Core 4 on. It's got a Linksys wireless card in it and we're using the NDIS wrapper to load the Windows driver for the chipset on that card. 'iwconfig' sees the card. We can configure the card. ... (1 Reply)
Discussion started by: deckard
1 Replies

8. Shell Programming and Scripting

Ftp problem

hi i have written a shell to automate the ftp process for the particular file.iam getting errors when try to ftp it.And i am cant get why the lcd is not being taken properly as it is taking during runtime.can anyone give me a solution here its my code DATE=`date '+%d_%m_%Y'`... (1 Reply)
Discussion started by: cskumar
1 Replies

9. Linux

odd telnet problem

Hey, I've got a RH9 box running telnet-server 0.17-25. Now i don't know what the problem is and i've been reading all night trying to find somthing like it. I am able to open a telnet session on the box using localhost and 10.10.10.6(machines address) but if i try to do it from another... (7 Replies)
Discussion started by: byblyk
7 Replies

10. UNIX for Advanced & Expert Users

FTP problem

Hi all, I am ftp'ing from HP-UX 11.0 to an AS400 server. If I do an 'nlist' command on the remote AS400, a listing of files is produced to the screen as you would expect. I then try to bring a listing to the local HP-UX server using 'nlist . localfile.txt'. I get the following response: ftp>... (2 Replies)
Discussion started by: Bab00shka
2 Replies
Login or Register to Ask a Question