|This page is part of the 'build MineOS CRUX-from-the-ground-up series'. The information here is provided for comprehensiveness in documenting the steps in creating MineOS CRUX from CRUX Linux 2.7. These steps are already automated in the mainline release ISO.|
If you would like additional users on your system, you can create them using the useradd command.
Creating a new group
Creating a new user
useradd -g lamegroup -s /bin/bash lameuser
Understanding the command
<syntaxhighlight lang="bash"> useradd -g groupname -M -s loginshell username </syntaxhighlight>
- useradd - program that creates a new user
- -g groupname - auto-adds user to existing groupname
- -s loginshell - login shell for user
- username - the username to create
If you wish to keep the mc user relatively private (since it is a sudo user), but wish to allow access to Minecraft files and directories, you can create additional users under the group games.
useradd -g games -s /bin/bash mcusertwo
chmod -R g+w /home/mc chmod -R g+w /var/www/hiawathachmod -R g+w /usr/games/minecraft
Any combination (or all) of the above chmod commands can be executed depending on what 'write' access you wish to grant to these additional users.
A new user (such as the above mcusertwo) can also be given shutdown and reboot privileges.