This is a discussion on schg, /etc/security, and /var/backup within the mailing.openbsd.tech forums, part of the OpenBSD category; --> Hi All, Does anyone have a workaround for /etc/security to make it safely and securely backup etc files which ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi All, Does anyone have a workaround for /etc/security to make it safely and securely backup etc files which have the immutability flag set? It is currently doing a `cp -p' which sets schg on the backup files making them unwritable. I understand that this largely is not an issue because files with the schg flag set shoudn't be changing anyhow but on occasion I do tinker with pf.conf and I am trying to find the 'right' way to handle /var/backup in this case. I have been tinkering with `tar - | tar -' to do the copy but I am not sure of my ability to make safe, secure, and reliable shell scripts. Anyone have input? Thanks, Matt Harrington |