Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi everyone,
I am currently having some permissioning issues while trying to copy files.
To give you some background information, we have one backup server here, which runs a script to copy certain folders from 4 other servers.
2 of the servers are backing up fine, however 2 are giving me the following error:
cp: cannot open `/mnt/....' for reading: Permission denied
(/mnt/.... being the mounted directory I am trying to copy.
I know my command syntax is correct, as it ids working for the other two servers, but for arguments sake, this is the command I am using.
cp /mnt/directory /destination/directory
I have chmod777'd the directories I am trying to backup, just to see if this was causing the issue. I have also added my username to the smb.conf file.
The interesting thing is, from my windows machine I can access both servers that cannot be copied from, and have complete access to the files (rwx). I do this using the same username as I am trying to use from the CLI under Linux.
One thing I didn;t mention, is yes, I am logged in as root (tried both 'su' and 'sudo').
If someone could shed some light on this, it would be much appreciated. I am sure there are some settings we have missed somewhere along the line.
Also, for interests sake, of the four server two are Windows, two are Linux. One Windows, and one Linux machine are successfully copying, so I don;t think there are any issues there.
Thanks in advance for your help!

A number of reasons.
That issue should happen to other commands. Try ls /mnt or other command.
Try \cp first to avoid alias.
Hope it isn't one of those dot OS's. cp ./mnt
I read it wrong and answer it wrong too. So get off my case you peanut.

Thanks for the reply.
I am not entirely sure what you mean though.
the ls /mnt command works fine, and returns the results correctly.
As far as the \cp command, I am assuming you mean /cp, which is not recognized.
Thanks again for your response though!

Since you can copy one Linux partition and
one Windows partition, but not the other
Linux partition or Windows partition, check
that both Linux partitions are mounted with
the same options. Also check that the two
Windows partitions mount options match.HTH,
Ernie Registered Linux User 247790
ICQ 41060744

Thanks for the responses all!
We have fixed the issue by using the smbsclient command instead.
Thanks again!

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |