RELATED: Best Linux Laptops for Developers and EnthusiastsĬhris Hoffman is the former Editor-in-Chief of How-To Geek. You'll need to use sudo with this command as well (or, on Linux distributions that don't use sudo, you'll need to run the If you want to create a new group on your system, use the groupaddĬommand following command, replacing new_group with the name of the group you want to create.
Related: What's the Difference Between Sudo and Su in Linux? If you're using a new Linux laptop, you might have some type of GUI interface to configure these settings (depending on the distribution that you're running, at least) but realistically it's almost always easier to just drop down to the terminal and type out a few commands, so that's what we're showing you today. For example, on Ubuntu, only users in the sudo group can use the sudo command to gain elevated permissions. User accounts can be assigned to one or more groups on Linux. You can configure file permissions and other privileges by group.
We'll walk through all the scenarios for you. Changing the group a user is associated to is a fairly easy task, but not everybody knows the commands, especially to add a user to a secondary group.