metal: Convert wrsroot -> sysadmin

This also changes the group wrs_protected to sys_protected
to de-brand the user and group names.

Depends-On: I887464a20fc17d66529caea03be2b445156f9426
Change-Id: Icfd2faec0ba8236762c8045f5c244eaf13008ee4
Story: 2004716
Task: 28749
Signed-off-by: Saul Wold <sgw@linux.intel.com>
This commit is contained in:
Saul Wold 2019-05-09 13:18:54 -07:00
parent 2df0311b29
commit 67025c3bb2
6 changed files with 8 additions and 8 deletions

View File

@ -69,8 +69,8 @@ for dir in /sys/class/net/*; do
fi
done
# Mark the wrsroot password as expired immediately
chage -d 0 wrsroot
# Mark the sysadmin password as expired immediately
chage -d 0 sysadmin
# Lock the root password
passwd -l root

View File

@ -471,10 +471,10 @@ SERVICE_TYPE_BARBICAN = 'barbican'
TIS_STD_BUILD = 'Standard'
TIS_AIO_BUILD = 'All-in-one'
# wrsroot password aging.
# sysadmin password aging.
# Setting aging to max defined value qualifies
# as "never" on certain Linux distros including WRL
WRSROOT_PASSWORD_NO_AGING = 99999
SYSADMIN_PASSWORD_NO_AGING = 99999
# Partition table size in bytes.
PARTITION_TABLE_SIZE = 2097152

View File

@ -147,7 +147,7 @@ void daemon_exit ( void );
#define SERVER_PROFILE_DIR ((const char *)"/etc/bmc/server_profiles.d")
#define PASSWORD_FILE ((const char *)"/etc/passwd")
#define SHADOW_FILE ((const char *)"/etc/shadow")
#define USERNAME_ROOT ("wrsroot")
#define USERNAME_ROOT ("sysadmin")
#define PMON_CONF_FILE_DIR ((const char *)"/etc/pmon.d")

View File

@ -213,7 +213,7 @@ using namespace std;
// #define IPMITOOL_SENSOR_OUTPUT_FILE ((const char *)("/tmp/ipmitool_sensor_data"))
#define IPMITOOL_SENSOR_OUTPUT_FILE ((const char *)("/var/run/ipmitool_sensor_data"))
#define IPMITOOL_PATH_AND_FILENAME ((const char *)("/usr/bin/ipmitool"))
#define IPMITOOL_PATH_AND_FILENAME_V ((const char *)("/home/wrsroot/test/ipmitool"))
#define IPMITOOL_PATH_AND_FILENAME_V ((const char *)("/home/sysadmin/test/ipmitool"))
#define IPMITOOL_MAX_FIELD_LEN (64)

View File

@ -6115,7 +6115,7 @@ int nodeLinkClass::add_handler ( struct nodeLinkClass::node * node_ptr )
{
adminActionChange ( node_ptr, MTC_ADMIN_ACTION__NONE );
/* Send sysinv the wrsroot password hash
/* Send sysinv the sysadmin password hash
* and aging data as an install command */
if ( SIMPLEX && THIS_HOST &&
( node_ptr->adminState == MTC_ADMIN_STATE__LOCKED ))

View File

@ -20,7 +20,7 @@
#
# process operation status [before pid]:[after pid]
#
# controller-0:~# /home/wrsroot/pmon-test.sh restart
# controller-0:~# /home/sysadmin/pmon-test.sh restart
#
# acpid restart PASSED [651]:[19095]
# fsmond restart PASSED [8719]:[26343]