misc/chmod.*: add the script from Scripts repository with easy to remember URL for downloading without git.

This commit is contained in:
Mikaela Suomalainen 2012-08-19 11:28:48 +03:00
parent e890f85988
commit 637bc0d8de
2 changed files with 38 additions and 0 deletions

15
misc/chmod.sh Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
# This file is for me to get the necressary chmods so anyone can't see my files and Oidentd spoofing and apache UserDir work :)
echo "Chmodding home and everything in it..."
chmod 700 $HOME -R ## Makes only you able read and write and execute (it might not be good having execution permission with all folders and files, but it's required for moving to directories) files in your home directory and directories in it.
echo "Touching oidentd config..."
touch ~/.oidentd.conf ## Creates .oidentd.conf if you don't have it already.
echo "chmodding .oidentd.conf ..."
chmod 644 ~/.oidentd.conf ## Allows you to read and write and everyone to read .oidentd.conf
echo "chmodding home directory..."
touch ~/.ICEauthority ## Creates one important file which is required by graphical login.
chmod 711 ~ ## Allows you to write, read and execute everything in your home directory and makes them searchable.
echo "Creating apache2 UserDir..."
mkdir ~/public_html/
echo "Chmodding apache2 UserDir..."
chmod 755 ~/public_html/ -R ## Allows everyone to read and execute things in your public HTTP folder.

23
misc/chmod.sh.asc Normal file
View File

@ -0,0 +1,23 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Public key: http://mkaysi.github.com/PGP/0x82A46728.txt
Comment: gpg --fetch-keys http://mkaysi.github.com/PGP/0x82A46728.txt
Comment: Fingerprint = 24BC 1573 B8EE D666 D10A AA65 4DB5 3CFE 82A4 6728
Comment: Why do I (clear)sign emails? http://git.io/6FLzWg
Comment: Please remove PGP lines in replies. http://git.io/nvHrDg
Comment: Charset of this message should be UTF-8.
iQIcBAABCgAGBQJQMKOxAAoJEE21PP6CpGcogz4P/1GAq2niLBY+8u7vQQfRVgg/
2De3XgAnvI7eFzUZjlECvvlJPkHoiKfOwdycxxhj/FEkX7rpghRy11klHIybotVb
G5hOa5SchbqXLrRobSMaYUAsNb1pWQSXq8aiwOA4aUWcdeF2nTbTdsFs4mPBluTV
8ZV1g7nXa94ZTL1alkSCAI68F0f9YWnJL5EtCLQFPbZp+uULQjPCd7mBA8VvpCcI
URtFeG/xMM4LxgOt+6PylpquQ6iWebLf/tgVWKN5CrOo8JnnDCv34pGDEO6Pl1ty
Eqk+H7/irJEXTK1tyyRfTVmqjY5kfpdPoA+XqFw4VJA0h2EY4923H65m5VtxRyuj
5bmfSKA7gipm5Y3ll9Nc2oNjMif/CBngZeCtTKmYeXXw5MY4wKh+JiCyWUUwwnGk
NkP7QR4QjCgGvoYxe1E/AksWpvz/pZSnnPiMEhkuPQ5QZyZvQcNptXPSLuGPpQo+
1UnizUw8gw12PFzkk1TWc36jcFSKw0ZdxZkz3uO5cleCPHQJ0/9ekjbauL9z5b89
d9P9xS38Os7kMR+j9MQOMg85MFV2C7pxVNdjEbBR8Ek9D4iwci+yz1U9wywMHWi7
hrb3iP29qShx31olCIMafQqVRKgqL3pVkOZA3y40QZjXJd2qiLFAZ6k4P8bqgpGv
QxuA5+0sFQBkUJYL7Kgr
=Wqat
-----END PGP SIGNATURE-----