mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Clean up bash profile
This commit is contained in:
@@ -656,12 +656,14 @@ detect_os() {
|
||||
|
||||
}
|
||||
|
||||
disable_onion_user() {
|
||||
# Disable the default account cause security.
|
||||
usermod -L onion
|
||||
|
||||
disable_auto_start() {
|
||||
|
||||
# Remove the automated setup script from crontab, if it exists
|
||||
crontab -u onion -r
|
||||
crontab -u $USER -r
|
||||
|
||||
# Truncate last line of the bash profile
|
||||
sed -i '$ d' /home/$USER/.bash_profile
|
||||
|
||||
}
|
||||
|
||||
disable_misc_network_features() {
|
||||
|
||||
@@ -342,7 +342,7 @@ if [[ "$setup_type" == 'iso' ]]; then
|
||||
set_management_interface
|
||||
|
||||
#add_admin_user
|
||||
#disable_onion_user
|
||||
disable_auto_start
|
||||
fi
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user