Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am getting the below error when try to run a perl script which copy mysql db using resync.
Could anyone please help
Creating log directories
Initializing data
WARNING: Use of this system is restricted and monitored!
This system is for the use of authorized users only. Individuals using
this computer system without authority, or in excess of their
authority, are subject to having all of their activities on this system
monitored and recorded by system personnel. In the course of
monitoring individuals improperly using this system, or in the course
of system maintenance, the activities of authorized users may also
be monitored. Anyone using this system expressly consents to such
monitoring and is advised that if such monitoring reveals possible
evidence of criminal activity, system personnel may provide the
evidence of such monitoring to law enforcement officials.
receiving incremental file list
rsync: opendir "/db/pluto/test" failed: Permission denied (13)
sent 12 bytes received 130 bytes 284.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 2 3) at main.c(1505) [generator=3.0.6]
Aborting : Database copy from primary to secondary failed.
I am getting the below error when try to run a perl script which copy mysql db using resync. Could anyone please help
Creating log directories
Initializing data
WARNING: Use of this system is restricted and monitored!
This system is for the use of authorized users only. Individuals using
this computer system without authority, or in excess of their
authority, are subject to having all of their activities on this system
monitored and recorded by system personnel. In the course of
monitoring individuals improperly using this system, or in the course
of system maintenance, the activities of authorized users may also
be monitored. Anyone using this system expressly consents to such
monitoring and is advised that if such monitoring reveals possible
evidence of criminal activity, system personnel may provide the
evidence of such monitoring to law enforcement officials.
receiving incremental file list
rsync: opendir "/db/pluto/test" failed: Permission denied (13)
sent 12 bytes received 130 bytes 284.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 2 3) at main.c(1505) [generator=3.0.6]
Aborting : Database copy from primary to secondary failed.
What would you like us to help you with???? The error is VERY clear...it's telling you that whatever user ID you're using, does not have permissions to open that directory. So, either use sudo in your script, change the permissions of the directory, or use a different ID. I'd first suggest reading some of your previous threads, going back years...the answers haven't changed: http://www.linuxquestions.org/questi...ad-4175452115/ http://www.linuxquestions.org/questi...rs-4175452119/
Also, you need to read the Question Guidelines link in my posting signature...you aren't giving us ANY details at all; version/distro of Linux, contents of that perl program, or even what permissions on that directory. Without details, there is nothing we can help with.
From the information you posted it would seem the user running the rsync command does not have permission to writ to the "db/pluto/test" directory. Are the source and destination on the same machine? is it on a network? Who is the owner:group and what are the permissions?
I have two servers dc2db01 and dc2db02 used as (primary and secondary for MYSQL DB) there is user pluto on both the servers and db test is located on "/db/pluto/test" i am trying to copy test from dc2db01 to "/db/pluto/test" on dc2db02. When i am creating a DB for customers generally we run a perl script, it is first ran on dc2db01 and then on dc2bd02.IN case of dc2db02 it trys to copy db from primary server dc2db01 and fails with a permission denied error.
Hi Guys,
I have two servers dc2db01 and dc2db02 used as (primary and secondary for MYSQL DB) there is user pluto on both the servers and db test is located on "/db/pluto/test" i am trying to copy test from dc2db01 to "/db/pluto/test" on dc2db02. When i am creating a DB for customers generally we run a perl script, it is first ran on dc2db01 and then on dc2bd02.IN case of dc2db02 it trys to copy db from primary server dc2db01 and fails with a permission denied error.
pluto user has below permission
drwx - -
Again, you STILL aren't providing enough details. Again, the error is very clear...whoever you're running the script as does not have permissions to read that directory specified. You aren't providing the script, or telling us anything about how these things are set up, or even telling us what version/distro of Linux you're using.
Since it's working on one server and not another, then it's very clear there is a DIFFERENCE between the two. Identify it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.