You can also use the usermod command to add a user to a group: sudo usermod –a –G group_name user_name Use the useradd command to add a user: sudo useradd –G new_group user_name Replace new_group with the name you want for your new group. To create a new group, enter the following: sudo groupadd new_group Members of the group inherit the read, write, and execute privileges for that group. Secondary groups are created to manage individual files and software applications. Secondary GroupsĪ user can belong to any number of secondary groups (including none). A primary group with the same name as the user is created, and any files created by the user are included in that group. A user can only belong to one primary group at a time. Any files the user creates are automatically added to that group. The primary group is set to the logged-in user. Instead of managing permissions for each user account, you can simply add a user to a group to grant the appropriate permissions. Groups let you create categories of users with pre-set permissions. Some users might need the ability to execute applications, while others are restricted from accessing specific files and folders. In Linux, different users have different roles or responsibilities. Access to a terminal window/command line (Ctrl-Alt-T, Ctrl-Alt-F2). A user account with sudo or root privileges.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |