Want to grant a user specific permissions in Linux? Adding them to a group is the key! Think of groups as access control lists. Instead of assigning permissions to each user individually, you assign permissions to a group, and then add users to that group.
Here's the simple command:
`sudo usermod -a -G <groupname> <username>`
Let's break it down:
* `sudo`: Executes the command with administrator privileges.
* `usermod`: The user modification command.
* `-a`: Specifies 'append', ensuring the user is added to the group *without* removing them from existing groups.
* `-G`: Indicates you're specifying groups.
* `<groupname>`: The name of the group you want to add the user to (e.g., 'wheel', 'audio').
* `<username>`: The username of the user you want to add.
**Example:** To add the user 'john' to the 'audio' group, you'd use:
`sudo usermod -a -G audio john`
After running the command, the user needs to log out and log back in for the group membership to take effect. Now go forth and conquer your Linux permissions!