Computing.Net > Forums > Linux > Permission Errors

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Permission Errors

Reply to Message Icon

Name: WesternWork
Date: March 4, 2008 at 18:43:55 Pacific
OS: RedHat
CPU/Ram: ??
Product: ??
Comment:

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!




Sponsored Link
Ads by Google

Response Number 1
Name: jefro
Date: March 4, 2008 at 19:31:59 Pacific
Reply:

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.


0

Response Number 2
Name: WesternWork
Date: March 4, 2008 at 20:05:52 Pacific
Reply:

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!


0

Response Number 3
Name: ernie
Date: March 5, 2008 at 14:55:45 Pacific
Reply:

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


0

Response Number 4
Name: WesternWork
Date: March 5, 2008 at 19:54:07 Pacific
Reply:

Thanks for the responses all!

We have fixed the issue by using the smbsclient command instead.

Thanks again!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Permission Errors

Permission and New Files www.computing.net/answers/linux/permission-and-new-files/28094.html

Permission Error www.computing.net/answers/linux/permission-error/30300.html

Samba/win98 www.computing.net/answers/linux/sambawin98/2497.html