[PLUG] chmod Question

Robert Munro ramunro at speakeasy.net
Sat Nov 19 02:13:36 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 18 Nov 2011 14:24:59 -0800 Keith Lofstrom wrote:
> On Fri, Nov 18, 2011 at 11:38:17AM -0800, Rich Shepard wrote:
>>> I inadvertently changed permissions on all directories and
>>> files in my ~/ to 755 (including the dot files, of course).
>>> Only the directories should have those perms; regular files
>>> should be 644.
<snip>
> I assume you have no backups, you naughty boy.  We should spank
> you, and if we need to wear the black high-heeled boots, it will
> cost you extra.  :-?
<snip>
> Another clinic activity, sounds like.  You really should do nightly
> backups...

Whipping is more fun, I hear.

And weekly backups to a different place. If you don't stop your
backups right away upon realizing that something has been corrupted,
that will just propagate to your daily backups, rendering them useless
to recover.

That's why you should also do weekly backups to another target location.

Of course the more elegant solution is to collect the backup
iterations by renaming a couple of older copies before copying the
latest version. The Linux distribution cron jobs that backup log files
do this properly.

But even then, I'd still do weekly backups. You might not know for days.

Not to rub it in, but it's also good practice to backup anything
you're about to change before you do it, in this instance your $HOME
directory.

I hope you can recover without too much pain.
Robert
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk7HENAACgkQ+qYMIUkNJCyfAgCdFC8l473qiaJGDml2BgpEjhi3
gYIAniR6zh1g0/gPGDnngJhe7Yy5V49I
=sOxR
-----END PGP SIGNATURE-----



More information about the PLUG mailing list