Mass user renaming on the My sCool Server

How to mass rename users?

Mass renaming of users

There could be a need to rename several users if you may not have initially created the usernames as per the recommended scheme.
These processes will rename the user accounts as well as their home directories.
Exercise extreme caution while using such automation / mass change scripts.

Install the mass user renaming feature

MSS 2.0 users should directly proceed to the Mass rename users step given below as this feature is pre-installed.
  1. Login as mssadmin into the MSS server via Remmina
  2. Ensure that the MSS is connected to the Internet and execute the below commands in a Terminal
  1. sudo su -
  2. mssupdate https://repo.myscoolserver.com/fixes/ 20220211-massuserrename
  3. recovery.sh create

Mass rename users

  1. Login as mssadmin into the MSS server via Remmina
  2. Create a text file with space separated pairs of old and new usernames. The usernames should each be on a new line.
    E.g. Sample file contents:
    oldnameone newnameone
    oldnametwo newnametwo
  1. sudo massuserrename
  1. The above command shall guide with the usage instructions and how to use the file containing the usernames. Thereafter, follow the usage instructions.