1826499 Members
1816 Online
109692 Solutions
New Discussion

Re: FTP error

 
SOLVED
Go to solution
maureenlisa
Occasional Contributor

FTP error

I get the following error when trying to ftp this file over. Can someone tell me what I am doing wrong.

C:\>ftp 172.16.5.117
Connected to 172.16.5.117.
220 atlman02 FTP server (Revision 1.1 Version wuftpd-2.6.1 Tue Jul 15 07:42:07 G
MT 2003) ready.
User (172.16.5.117:(none)): root
331 Password required for root.
Password:
230 User root logged in.
ftp> binary
200 Type set to I.
ftp> cd /tmp
250 CWD command successful.
ftp> pwd
257 "/tmp" is current directory.
ftp> get PSIFILE-060516-atlman02.txt
Error opening local file PSIFILE-060516-atlman.txt.
> PSIFILE-060516-atlman02.txt:Permission denied
ftp> quit
221-You have transferred 0 bytes in 0 files.
221-Total traffic for this session was 325 bytes in 0 transfers.
221-Thank you for using the FTP service on atlman02.
221 Goodbye.


I checked my permission for the file and they appear correct.

-rw-rw-rw- 1 root sys 116870 May 16 11:31 PSIFILE-060516-atlman0
2.txt
7 REPLIES 7
John Poff
Honored Contributor

Re: FTP error

Hi,

Notice that your error message complains about the "local" file, which is the file on your local computer. I think it is a permissions problem for the file locally and not on the remote machine.

JP
Sanjay_6
Honored Contributor

Re: FTP error

Hi,

If there is a load balancer in between your PC and the Server, try getting the file in passive mode.

After FTP login, type "passive" either before or after setting the transfer type as binary and then get the file.

Hope this helps.

regds
Mridul Shrivastava
Honored Contributor

Re: FTP error

I suspect that the problem you are seeing may be with the /etc/passwd and /etc/group entry for the root user. Could you post the output of the following command:

# grep root /etc/passwd /etc/group

Time has a wonderful way of weeding out the trivial
maulis
Occasional Contributor
Solution

Re: FTP error

# grep root /etc/passwd /etc/group
/etc/passwd:root:U5Kp2RmiFi3kg:0:3::/:/sbin/sh
/etc/group:root::0:root
/etc/group:other::1:root,hpdb
/etc/group:bin::2:root,bin
/etc/group:sys::3:root,uucp
/etc/group:adm::4:root,adm
/etc/group:daemon::5:root,daemon
/etc/group:mail::6:root
/etc/group:lp::7:root,lp
/etc/group:users::20:root
/etc/group:ftpgroup::106:oracle,root
Peter Godron
Honored Contributor

Re: FTP error

I would:
1. go to the directory where you want to pull the file into.
2. touch PSIFILE-060516-atlman02.txt
I suspect this will currentl fail with a permission problem. Change the permissions on the dir until step 2 is ok, then clear your dummy PSIFILE-060516-atlman02.txt file on your local box.

3. repeat your ftp steps as per problem description.

4. let us know what happens !

Re: FTP error

Hi,

Let me know the permission of PSIFILE-060516-atlman02.txt file.

Check your file permission. Error opening local file means may be even read permission not their.

If possible give full permission and check it out.

Sure this will do.

- Vivek
Andrey Tumanov
Frequent Advisor

Re: FTP error

Check permissions on the directory you want to write... you may not have write permissions.