LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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



Reply
 
Search this Thread
Old 06-17-2009, 02:26 AM   #1
duckdream
LQ Newbie
 
Registered: Mar 2009
Posts: 4
Blog Entries: 1

Rep: Reputation: 0
Smile rsync mysqldatabase "Permission denied"


Hello,all

when I use rsync to backup mysql data:
[root@localhost local]# ./rsync.sh
rsync: send_files failed to open "/announcer.MYD" (in mysql): Permission denied (13)
rsync: send_files failed to open "/announcer.MYI" (in mysql): Permission denied (13)
rsync: send_files failed to open "/announcer.frm" (in mysql): Permission denied (13)
rsync: send_files failed to open "/announcer_income_detail.MYD" (in mysql): Permission denied (13)
rsync: send_files failed to open "/announcer_income_detail.MYI" (in mysql): Permission denied (13)
rsync: send_files failed to open "/announcer_income_detail.frm" (in mysql): Permission denied (13)
rsync: send_files failed to open "/book_audio.MYD" (in mysql): Permission denied (13)
rsync: send_files failed to open "/book_audio.MYI" (in mysql): Permission denied (13)
rsync error: some files could not be transferred (code 23) at main.c(1298) [generator=2.6.8]

[root@localhost local]# ls -ld /var/lib/mysql/book_audio.MYD
-rw-rw--- 1 mysql mysql 2601408 Jun 17 10:3/var/lib/mysql/book_audio.MYD

When I give others read permission:chmod o+r book_audio.MYD
[root@localhost local]# ls -ld /var/lib/mysql/book_audio.MYD
-rw-rw-r-- 1 mysql mysql 2601408 Jun 17 10:3/var/lib/mysql/book_audio.MYD

Everything is ok! but I don't hope others are readable and I use root to rsync. I don't understand and any other solution?

Thanks very much!
 
Old 06-17-2009, 03:46 AM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
rsync.sh is a shell script. Look inside the script and see if it's su'ing to a different user to rsync the data across.

-twantrd
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to execute child process "ooffice" (Permission denied) Mol_Bolom Linux - Software 2 03-11-2009 05:23 PM
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 05:50 AM
"Permission denied" and "recursive directory loop" when searching for string in files mack1e Linux - Newbie 5 06-12-2008 08:38 AM
Submount, "permission denied" when writing to floppy as normal user DaneM Linux - Software 5 02-22-2006 03:05 PM
"permission denied" when I try to send raw data to the sound device. Travis86 Linux - Hardware 2 10-29-2003 10:08 AM


All times are GMT -5. The time now is 12:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration