- Ubuntu Server Cookbook
- Uday R. Sawant
- 195字
- 2021-07-14 11:22:01
Creating a group
Group is a way to organize and administer user accounts in Linux. Groups are used to collectively assign rights and permissions to multiple user accounts.
Getting ready
You will need super user or root privileges to add a group to the Ubuntu server.
How to do it...
Follow these steps to create a group:
- Enter the following command to add a new group:
$ sudo addgroup guest
- Enter your password to complete
addgroup
with root privileges.
How it works…
Here, we are simply adding a new group guest
to the server. As addgroup
needs root privileges, we need to use sudo
along with the command. After creating a new group, addgroup
displays the GID of the new group.
There's more…
Similar to adduser
, you can use addgroup
in different modes:
- Add a normal group when used without any options
- Add a system group with the
--system
option - Add an existing user to an existing group when called with two non-option arguments
Check out the manual page for the addgroup
(man addgroup
) to get more details.
See also
- Check out
groupadd
, a low level utility to add new group to the server
推薦閱讀
- Unreal Engine Physics Essentials
- 程序員數學:用Python學透線性代數和微積分
- 數據結構(Python語言描述)(第2版)
- 用Flutter極速構建原生應用
- Java高并發核心編程(卷1):NIO、Netty、Redis、ZooKeeper
- Spring MVC+MyBatis開發從入門到項目實踐(超值版)
- ActionScript 3.0從入門到精通(視頻實戰版)
- 大學計算機基礎實訓教程
- After Effects CC案例設計與經典插件(視頻教學版)
- IBM RUP參考與認證指南
- Java設計模式深入研究
- JavaScript前端開發基礎教程
- Python Django Web從入門到項目實戰(視頻版)
- 計算機常用算法與程序設計教程(第2版)
- Learning NHibernate 4