Well, yeah, they're text and you can -- but it's not for the faint of heart or uninitiated, methinks. There are the little tricks, like poking an asterisk in the password field of
/etc/shadow, well, editing it and just replace the password with * and you don't lose the user home directory -- ain't no way to log in to it.
Another thing I've done (more than once) was a new server and all those accounts and passwords and whatnot were just copied from the old server to the new server (password files don't change in format).
scp from old to new,
scp home from old to new (with appropriate arguments) and
viola! everything is right where it needs to be.
I still do that. On my systems I restrict (as much as possible) installing any software in the root tree, I back up
/etc to a a partition I call
spares for no particular reason, then do a full install (Slackware) in the root tree. Copy the stuff from
/etc that I need (including the password files and a few others).
The partitions look like this:
Code:
mount
/dev/sda1 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda10 on /var/lib/pgsql type ext4 (rw)
/dev/sda3 on /home type ext4 (rw)
/dev/sda5 on /usr/local type ext4 (rw)
/dev/sda6 on /opt type ext4 (rw)
/dev/sda7 on /var/lib/mysql type ext4 (rw)
/dev/sda8 on /var/lib/virtual type ext4 (rw)
/dev/sda9 on /spares type ext4 (rw)
/dev/sdb1 on /back01 type ext4 (rw)
/dev/sdb2 on /back02 type ext4 (rw)
gvfsd-fuse on /home/trona/.gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=trona)
So, when you do the install, you add the partitions but you only format the root partition, all the rest of them are just sitting there waiting until the old password files replace the new password files. Takes about 20 minutes, 30 if I go outside and smoke, to do a full install of Slackware, up and running. Maybe another 15 minutes to get stuff in
etc where it needs to be and all done. In my case,
sdb1 and
sdb2 are level 0 back ups of the non-system files.
I make a lot of use of
/opt,
/usr/local, separate partitions (or drives) for data bases and all my servers are configured identically -- not sizes but mount points whether or not used (
virtual, for example is only used on my desktop but is a mount point on all the others "just in case someday or not."
It works for me, may not for others, but I long ago learned to keep every system identical except for size and always do a full install rather than update. There's a lot of way to skin a cat.
Hope this helps some.