#!/bin/bash #################################################################################################### #### author: SlickStack ############################################################################ #### link: https://slickstack.io ################################################################### #### mirror: http://mirrors.slickstack.io/bash/ss-perms-ubuntu-kernel.txt ########################## #### path: /var/www/ss-perms-ubuntu-kernel ######################################################### #### destination: n/a (not a boilerplate) ########################################################## #### purpose: Resets all file and user permissions for the Ubuntu Linux kernel ######## #### module version: Ubuntu 20.04 LTS ############################################################## #### sourced by: ss-perms, ss-install-ubuntu-kernel ################################################ #### bash aliases: ss perms ubuntu kernel, ss perms kernel ######################################### #################################################################################################### ## include SlickStack configuration ## source /var/www/ss-config ## include SlickStack functions ## source /var/www/ss-functions #################################################################################################### #### SS-Perms-Ubuntu-Kernel: Message (Begin Script) ################################################ #################################################################################################### ## this is a simple message that announces to the shell the purpose of this bash script ## ## it will only be noticed by sudo users who manually call ss core bash scripts ## ## echo message ## echo -e "${PURPLE}Running ss-perms-ubuntu-kernel: Resets all file and user permissions for the Ubuntu Linux kernel...${NOCOLOR}" sleep "$SLEEP_MESSAGE_BEGIN" #################################################################################################### #### SS-Perms-Ubuntu-Kernel: Reset Permissions (Ubuntu Kernel) ##################################### #################################################################################################### chown root:root /etc/sysctl.conf ## must be root:root chmod 0644 /etc/sysctl.conf ## 0644 Ubuntu default #################################################################################################### #### SS-Perms-Ubuntu-Kernel: Touch Timestamp File (End Script) ##################################### #################################################################################################### ## this is a dummy timestamp file that will remember the last time this script was run ## ## it can be useful for developer reference and is sometimes used by SlickStack ## ## script timestamp ## touch /var/www/meta/.timestamp-ss-perms-ubuntu-kernel #################################################################################################### #### SlickStack: External References Used To Improve This Script (Thanks, Interwebz) ############### #################################################################################################### ## Ref: ## SS_EOF