func (u *SessionUtil) createLocalUser(log log.T) error {

	commandArgs := append(ShellPluginCommandArgs, fmt.Sprintf("useradd -m %s", appconfig.DefaultRunAsUserName))
	cmd := exec.Command(ShellPluginCommandName, commandArgs...)
	if err := cmd.Run(); err != nil {
		log.Errorf("Failed to create %s: %v", appconfig.DefaultRunAsUserName, err)
		return err
	}
	log.Infof("Successfully created %s", appconfig.DefaultRunAsUserName)
	return nil
}
// createLocalUser creates an OS local user.
createLocalUser creates an OS local user.
// createLocalUser creates an OS local user .
func (u *SessionUtil) createLocalUser(log log.T) error {
	commandArgs := append(ShellPluginCommandArgs, fmt.Sprintf("useradd -m %s", appconfig.DefaultRunAsUserName))
	cmd := exec.Command(ShellPluginCommandName, commandArgs...)
	if err := cmd.Run(); err != nil {
		log.Errorf("Failed to create %s: %v", appconfig.DefaultRunAsUserName, err)
		return err
	}
	log.Infof("Successfully created %s", appconfig.DefaultRunAsUserName)
	return nil
}
func ( u * SessionUtil ) createLocalUser ( log log . T ) error { commandArgs := append ( ShellPluginCommandArgs , fmt . Sprintf ( " " , appconfig . DefaultRunAsUserName ) ) cmd := exec . Command ( ShellPluginCommandName , commandArgs ... ) if err := cmd . Run ( ) ; err != nil { log . Errorf ( " " , appconfig . DefaultRunAsUserName , err ) return err } log . Infof ( " " , appconfig . DefaultRunAsUserName ) return nil }
createLocalUser creates an OS local user.
createLocalUser creates an OS local user .