1834078 Members
2744 Online
110063 Solutions
New Discussion

permission question

 
Andy_9
Occasional Contributor

permission question

Hello,

I am trying to ftp some files from one system to another and I am getting a permission denied message. The file has 755 permission and I am the owner of the file. Any help will be greatly appreciated.
6 REPLIES 6
Vincenzo Restuccia
Honored Contributor

Re: permission question

The file is of root:sys and you is anonymous:anonymous?
A. Clay Stephenson
Acclaimed Contributor

Re: permission question

Hi Andy,

You need to check the permissions of the destination directory on the remote end.
You will need write permission in it and at least search permission for the directory path down to it.
Obviously, you must look at this from the perspective of the user you are ftp'ed in as.

Regards, Clay


If it ain't broke, I can fix that.
Andy_9
Occasional Contributor

Re: permission question

This doesn't seem to work. I have changed the owner to myself - Andy. The group is still sys. The file permission is 644. Thanks for any help.
Abel Berger
Regular Advisor

Re: permission question

Hi Andy,

Make the following test :
- Keeps in your mind the old permissios of the destination directory.
- Change the permissions of the destination directory to 777 ( chmod 777 . - in the destination directory.
After this , try tranfers files. OK.
Later, return for the original permissions.

I hope help you.

Regards,

Abel Berger
James R. Ferguson
Acclaimed Contributor

Re: permission question

Hi Andy:

'ftp' returns error numbers and text. What number (should be a 3-digit one) are you getting if you do the transfer interactively?

...JRF...
f. halili
Trusted Contributor

Re: permission question

Please try the ff: it worked for me.


# chmod -R 755 testdir
# ftp server
ftp> pwd
257 "/home/fhalili/testdir" is current directory.
ftp> lcd /tmp
Local directory now /tmp
ftp> get top1.txt
200 PORT command successful.
150 Opening BINARY mode data connection for top1.txt (1902 bytes).
226 Transfer complete.
1902 bytes received in 0.00 seconds (3829.74 Kbytes/s)
ftp> bye
221 Goodbye.


- fnhalili

derekh