From 0f4285475ffb870288f5ab5bed0176d51bd35576 Mon Sep 17 00:00:00 2001 From: Chris Nutter Date: Thu, 1 Oct 2020 17:46:57 -0700 Subject: [PATCH] added extra safety-nets for the future --- mock-root-scripts.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 mock-root-scripts.txt diff --git a/mock-root-scripts.txt b/mock-root-scripts.txt new file mode 100644 index 0000000..b1dd161 --- /dev/null +++ b/mock-root-scripts.txt @@ -0,0 +1,23 @@ +This file is a way of using/remembering my root scripts (just in case) +There is no use of IP/Username/Passwords here but it's a rough example of how to reuse them if needed. + +____________________________________________ CIFS Mounting ______________________________________________ + +--> /etc/fstab +//[server-ip]/[server-name] /mnt/[server]/[server-name] cifs credentials=/home/[username]/.files/secret/[credentials_file],_netev,iocharset=utf8,file_mode=0775,dir_mode=0775 0 0 + +--> /home/[username]/.files/secret/[credentials_file] +username=[username] +password=[password] + +## Make sure to set permissions + sudo chown root: [credentials_file] + sudo chmod 600 [credentials_file] + +____________________________________________ Domain Fixing on Boot ______________________________________________ + +--> sudo crontab -e + +@reboot sh /home/[username]/.scripts/init/domain-fix.sh + +## Sudo is important is it allows root permissions.