LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-14-2007, 10:32 AM   #1
darkus
LQ Newbie
 
Registered: Jun 2007
Posts: 4

Rep: Reputation: 0
Q: backups via SSH with roadblock because of APACHE permissions


Hi all, new to the community here and would appreciate any help on this.

Using some online tutorials I successfully setup a cron'd backup script.

The script will be started from Server-A, SSH into Server-B and using Rsync will transfer all my files from a specified directory over to Server-A.

Now the problem is that Server-B is running some files where apache is adding files to the server via user uploaded files. These uploaded files are listed as being owned by Apache in their permissions.

So as a result, my backup script/user cannot take these files and gets a permission denied error. I've read about various solutions that will automaticaly change the files owner from apache to root or admin or someone else, but I dont like this solution.

Is there a way I can simply give my backup user permission to read/copy apache owned files regardless of where they may be ?

Thanks!!
 
Old 06-14-2007, 03:57 PM   #2
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
You could make your user part of the group apache is in. Or create a group and put them in there. I imagine though you all ready have something similar setup.

http://www.comptechdoc.org/os/linux/..._ugfilesp.html

Just a quick search pulled that up.

Hope it helps some and Welcome to Linux Questions!

Last edited by lord-fu; 06-14-2007 at 03:58 PM.
 
  


Reply



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
[SSH] Issue logging in [SSH & Permissions] MD3 Linux - Networking 11 12-10-2006 09:25 AM
LXer: Create Incremental Snapshot-style Backups With rSync And SSH LXer Syndicated Linux News 0 08-13-2006 08:21 PM
AWStats on Suse 9.2: install roadblock frisco-driver SUSE / openSUSE 0 10-16-2005 10:46 PM
unattended, *secure* ssh backups offline Linux - Security 1 10-10-2004 09:32 PM
The Great Linux Roadblock Lostman Linux - General 4 11-04-2003 04:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:53 PM.

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
Open Source Consulting | Domain Registration