added extra safety-nets for the future

gray-sff
Chris Nutter 2020-10-01 17:46:57 -07:00
parent b0097fbf05
commit 0f4285475f
1 changed files with 23 additions and 0 deletions

23
mock-root-scripts.txt Normal file
View File

@ -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.