LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-10-2011, 09:59 AM   #1
Babelduo
LQ Newbie
 
Registered: Mar 2009
Posts: 12

Rep: Reputation: 0
right user for copying files into /var/www/virtual? i dont want to use root!


hi,

i would like to copy all files from my server001 (/var/www/vhosts/*/httpdocs/) to my server002 (/var/www/virtual/*/htdocs/)

i would do it via rsync... but i dont want to do it as root! what would be the right user with which I should login myself via rsync?

www-data? its the group of each domain-folder...

Quote:
server002:/var/www/virtual# ls -lh
insgesamt 4,0K
drwxrwx--- 10 vu2001 www-data 4,0K 9. Mär 09:58 domain.com
server002:/var/www/virtual#
but the files inside htdocs are only accessable for the user!

Code:
server002:/var/www/virtual/domain.com/htdocs# ls -lh | grep index.php
-rwxr-xr-x  1 vu2001 vu2001  397 24. Feb 23:30 index.php
server002:/var/www/virtual/domain.com/htdocs#
server002 will be the backup-server if the server001 is down!

thx,
kim
 
Old 03-10-2011, 11:05 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
vu2001? rsync doesn't require you to use root.
 
Old 03-10-2011, 11:31 AM   #3
Babelduo
LQ Newbie
 
Registered: Mar 2009
Posts: 12

Original Poster
Rep: Reputation: 0
hi! thanks but thats not what i'm searching for. i want ONE user who has access to the htdocs-data of all domains - but not root . because there are many users... vu2001, vu2002, vu2003...

i dont want to configure ssh-keys for each user for automatic login via ssh/rsync. you know?

kim
 
  


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
How do I give a user permission to save files to /var/www/html? rotnay6000 Linux - Newbie 10 07-14-2009 09:45 PM
copy files from XP to /var/www cornish Linux - Server 5 08-01-2007 09:53 AM
FTP user writing to /var/www animelook Linux - General 1 08-04-2006 08:38 PM
OpenBSD /var/www files gone Harpune *BSD 0 11-04-2005 02:06 AM
should var/www/html be accessible to root only? linuxfond Linux - Newbie 1 09-06-2003 03:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:38 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
Open Source Consulting | Domain Registration