Sign inSign up free

716. Change a Group's GID Without Losing Its Files

medium 20 XP ~7 minHands-on lab

The company's new directory service reserves group IDs below 2000. The local group infra still has GID 1500, and its files are spread over the system: the team folder, a cache in /var/tmp and a few files in amir's home.

Task

  • Change the GID of infra to 4300. Keep its name and its members.
  • Every file and directory anywhere on the system that belonged to the group must still belong to infra afterwards.
  • Don't change who owns those files or their permissions.

About this machine

Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.

Part of Prepare for the LFCS. Next step: Rename an Account Everywhere

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.