Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

On a dedicated server I've setup backup to run every week, the problem I'm facing is that the backup folder and all it's sub-folders are rwx------ and root as the owner, I'm planning to have some sync program download via ftp every week those backups and I want to have another ftp (must be not root) account that can access exlusively the backup dir.

Is it possible to have the permissions set up differently ? to let another user access and download those backups ?

share|improve this question
2  
Edit the backup script and add a chown someone backup or chmod ? –  HBruijn Nov 27 '13 at 21:15
    
seems to be the only way ... thanks alot ! –  Kriss2 Nov 28 '13 at 10:18

1 Answer 1

Create a dedicated user (or use an existing one), let say operator. Give that user read permission on your backup directory :

chgrp operator backup.dir ; chmod 750 backup.dir

Edit your script to give read permission to operator to the backup files :

chgrp operator backup.files ; chmod 640 backup.files

then connect to the FTP server with that user.

Note that FTP is not a secure way to transfer files...

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.