store file permissions and apply them elsewhere

d.a.glynos glynos at storm.cs.unipi.gr
Sun Jan 6 13:57:55 EET 2008


On Sat, 5 Jan 2008, asdf asdf wrote:
> den 8elw na kanw kati tetoio. 8elw na swsw ta permissions mono opws eipa
> kai meta na ta kanw apply se allo omoio susthma.
> den 8elw na adigrapsw ta arxeia.

An trexeis debian-based systhma, yparxei to dpkg-statoverride.
Swzei sto /var/lib/dpkg/statoverride tis dikes sou protimhseis gia ta
permissions arxeiwn kai tis epivalei AUTOMATA opote kaneis upgrade ta
antistoixa paketa programmatwn.

P.x. $ cat /var/lib/dpkg/dpkg-statoverride
     root Debian-exim 0640 /etc/exim4/passwd.client

H grammoula auth mas leei oti o sysadmin 8elei swnei kai kala o owner
tou /etc/exim4/passwd.client na einai o root, to group pou 8a anhkei to
arxeio na einai to Debian-exim kai ta permissions tou 8a perigrafontai apo
to octal 0640 (dhladh rw-r-----).

Opws vlepeis to /var/lib/dpkg/statoverride einai text arxeio me plhroforia
pou metaferetai eukola apo systhma se systhma (an exeis diaforetiko setup
ana host mporeis na kaneis kai diffs).

dimitris




More information about the Linux-greek-users mailing list