gislab-npo / gislab

GIS.lab - total reduction of deployment and maintenance costs for complete free and open source geospatial infrastructure
http://gislab-npo.github.io/gislab/
GNU General Public License v3.0
40 stars 14 forks source link

GIS.lab Unit system rollback #338

Open imincik opened 9 years ago

imincik commented 9 years ago

GIS.lab Unit system rollback using LVM snapshots. $ lvconvert --merge

LVM installation

See:

mpastor commented 9 years ago

The following characters are valid for VG and LV names: a-z A-Z 0-9 + _ . -

mpastor commented 9 years ago

It's not possible to create/move snapshot to another VG.

imincik commented 9 years ago

Storage of user accounts and PostgreSQL cluster was moved to '/storage' in 51a39f9c57488e99b90a1364823da0bd02274413.

mpastor commented 9 years ago

Security issue: if user 'user1' is created after snapshot is taken and system is reverted from such snapshot, newly created user 'user2' can access users1's home directory, because he got the same UID as user1.

Solution is to check the owner of home dirs during booting (e.g. rc.local) and change owner to 'root' if directory owner is UNKNOWN.

imincik commented 9 years ago

I am thinking about moving LDAP database to /storage/applications/ldap to prevent loosing users on revert.

imincik commented 9 years ago

LDAP and Apt moved to /storage

imincik commented 9 years ago

I have moved not merged file (gislab-snapshot) from @mpastor's lvm branch to updated 'lvm-snapshot' branch.