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.

We would like to have a network backup system with a user that can read any file on our servers but not write any file. Is there any way to do this under Linux (and specifically Fedora)? We would rather not have a remote root that can erase any file...

share|improve this question
1  
You should choose software you trust not to write to file systems when they shouldn't. Also, not allowing it to write to the file system may make file recovery difficult. I have worked on too many systems where backups were not recoverable, and therefore not trusted. –  BillThor Nov 14 '12 at 7:00
add comment

2 Answers

up vote 6 down vote accepted

If you export your filesystem via NFS and the ro and no_root_squash option, it can't be modified on the remote system.

share|improve this answer
    
Nice approach. Thanks. –  vy32 Nov 15 '12 at 21:20
add comment

Short answer: no

Long answer: in theory, you could set an ACL over your whole filesystem that would allow user X to read everything. But that's pretty tedious. From what I can tell, must backup software runs as root for precisely this reason.

share|improve this answer
add comment

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.