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.


    • Related Articles

    • How to mass delete users?

      Mass deletion of users There could be a need to delete several users and their data quickly when students graduate and pass out of the school or after assessments are conducted and the temporary accounts created for the assessments need to be ...
    • Can I have custom user logins instead of the default student and teacher login accounts?

      This is particularly useful at the beginning of the school year or when the My sCool Server is being deployed for the first time or when mass accounts need to be created for conducting examinations. We can help you do that if you provide us the ...
    • What is the recommended scheme for student account creation?

      The My sCool Server facilitates continuity in learning. Thus, it is strongly recommended that student accounts should be created first time when they access the computer lab and deleted only once they have passed out of school. This ensures that they ...
    • Does the factory restore feature restore all user data?

      No, as the name “factory restore” suggests, it is designed to restore only the system state to a state when the server left the factory. However, user data is not deleted or modified by this process, so if the data is still on the disk then it would ...
    • Does the recovery media creation feature backup all user data?

      No, the automated server recovery mechanism is not designed for that purpose. However, it can be performed manually by following the tips given in the Backup and Recovery section in the user manual.  We also provide assistance services at a small ...