Skip to main content

Thread: Making a folder read-only except for root (while maintaining file permissions)


i have snapshot script i've written uses rsync (an amazing piece of software!) create daily snapshots of /var/user-backups/current/ /var/user-backups/snapshots/`date +%f`/ (with -a option, , --link-dest on previous snapshot, etc, save space).

problem is, people going using server backup files aren't going listen me if tell them shouldn't make changes in snapshots/ directory (which foul snapshots)

there way can make snapshots directory read-only users exception of root, while still preserving file permissions?

i've tried making directory in /root/ , mounting somewhere else -o bind,ro, it's still writable on new mountpoint.



Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [all variants] Making a folder read-only except for root (while maintaining file permissions)


Ubuntu

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support