33# ###################################################################################################
44# ### author: SlickStack ############################################################################
55# ### link: https://slickstack.io ###################################################################
6- # ### mirror: https://mirrors. slickstack.io/ bash/ss-perms-ubuntu-kernel.txt ##### ####################
6+ # ### mirror: littlebizzy/ slickstack/blob/master/ bash/ss-perms-ubuntu-kernel.txt ####################
77# ### path: /var/www/ss-perms-ubuntu-kernel #########################################################
88# ### destination: n/a (not a boilerplate) ##########################################################
99# ### purpose: Resets all file and user permissions for the Ubuntu Linux kernel #####################
10- # ### module version: Ubuntu 22 .04 LTS ##############################################################
11- # ### sourced by: ss-perms, ss- install-ubuntu-kernel ################################################
12- # ### bash aliases: ss perms ubuntu kernel, ss perms kernel #########################################
10+ # ### module version: Ubuntu 24 .04 LTS ##############################################################
11+ # ### sourced by: ss-install-ubuntu-kernel, ss-perms ################################################
12+ # ### bash aliases: ss perms kernel, ss perms ubuntu kernel #########################################
1313# ###################################################################################################
1414
15- # # source ss-config ##
16- source /var/www/ss-config
17-
18- # # source ss-functions ##
19- source /var/www/ss-functions
20-
21- # # BELOW THIS RELIES ON SS-CONFIG AND SS-FUNCTIONS
22-
2315# ###################################################################################################
2416# ### TABLE OF CONTENTS (SS-Perms-Ubuntu-Kernel) ####################################################
2517# ###################################################################################################
2618
2719# # this is a brief summary of the different code snippets you will find in this script ##
2820# # each section should be commented so you understand what is being accomplished ##
2921
30- # # A. Touch Timestamp File
31- # # B. Message (Begin Script)
22+ # # A. Source SS-Config + SS-Functions
23+ # # B. Touch Timestamp File
24+ # # C. Message (Begin Script)
25+ # # D. Reset Permissions (Ubuntu Kernel)
26+
27+ # ###################################################################################################
28+ # ### A. SS-Perms-Ubuntu-Kernel: Source SS-Config + SS-Functions ####################################
29+ # ###################################################################################################
30+
31+ # # before anything else we must source the critical variables that power this script ##
32+ # # ss-config is setup during ss-install wizard but ss-functions is hardcoded ##
33+
34+ # # source ss-config ##
35+ source /var/www/ss-config
36+
37+ # # source ss-functions ##
38+ source /var/www/ss-functions
39+
40+ # # BELOW THIS RELIES ON SS-CONFIG AND SS-FUNCTIONS
3241
3342# ###################################################################################################
34- # ### A . SS-Perms-Ubuntu-Kernel: Touch Timestamp File ###############################################
43+ # ### B . SS-Perms-Ubuntu-Kernel: Touch Timestamp File ###############################################
3544# ###################################################################################################
3645
3746# # this is a dummy timestamp file that will remember the last time this script was run ##
@@ -40,7 +49,7 @@ source /var/www/ss-functions
4049ss_touch " ${TIMESTAMP_SS_PERMS_UBUNTU_KERNEL} "
4150
4251# ###################################################################################################
43- # ### B . SS-Perms-Ubuntu-Kernel: Message (Begin Script) #############################################
52+ # ### C . SS-Perms-Ubuntu-Kernel: Message (Begin Script) #############################################
4453# ###################################################################################################
4554
4655# # this is a simple message that announces to the shell the purpose of this bash script ##
@@ -49,7 +58,7 @@ ss_touch "${TIMESTAMP_SS_PERMS_UBUNTU_KERNEL}"
4958ss_echo " ${COLOR_INFO} Running ss-perms-ubuntu-kernel... ${COLOR_RESET} "
5059
5160# ###################################################################################################
52- # ### SS-Perms-Ubuntu-Kernel: Reset Permissions (Ubuntu Kernel) ### ##################################
61+ # ### D. SS-Perms-Ubuntu-Kernel: Reset Permissions (Ubuntu Kernel) ##################################
5362# ###################################################################################################
5463
5564chown root:root " ${PATH_SYSCTL_CONF} " # # must be root:root
@@ -77,6 +86,6 @@ chmod 0700 /var/www/crons/custom/*cron* ## 0700 means only root/sudo can execute
7786# ### SlickStack: External References Used To Improve This Script (Thanks, Interwebz) ###############
7887# ###################################################################################################
7988
80- # # Ref:
89+ # # Ref: ChatGPT
8190
8291# # SS_EOF
0 commit comments