Skip to content

Commit 05849e4

Browse files
authored
Light editing items: (#2085)
* Remove secondary level 1 heading * Remove author from contributors meta * Replace OS with operating system * place URLs in brackets (<>) for rule no bare URLs * add appropriate line feeds between text and code blocks * Replace **CLI counterpart** with a heading level and descriptive sub-headings to fix: - no emphasis on line items other than headings - no duplicate headings * Sentence style capitalization on headings throughout
1 parent 3bab450 commit 05849e4

File tree

1 file changed

+39
-35
lines changed

1 file changed

+39
-35
lines changed
Lines changed: 39 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,61 @@
11
---
22
title: How to Create New Users and Group Accounts
33
author: Sasheeny Hubbard
4-
contributors: Sasheeny Hubbard
4+
contributors: Steven Spencer
55
tested with: 9.4
66
tags:
77
- desktop
88
- gnome
99
- cockpit
1010
---
1111

12-
# How to Create New Users and Group Accounts
13-
1412
## Introduction
1513

1614
This guide will teach you how to manage user and group accounts on Rocky Linux 9.4 using Cockpit, a web-based graphical interface administrative tool for Linux servers.
1715

1816
## Prerequisites
19-
- Access to Rocky Linux 9 OS with GUI
17+
18+
- Access to Rocky Linux 9 operating system with GUI
2019
- Administrative Privileges
2120
- Cockpit package installed and enabled
2221

2322
## Cockpit
2423

25-
Cockpit is a web-based graphical interface administrative tool for Linux servers. While it has many use cases, we will be using Cockpit for managing user and group accounts. The benefits of using Cockpit include ease of use, remote management, integration, real-time feedback and multi-server dashboards.
24+
Cockpit is a web-based graphical interface administrative tool for Linux servers. While it has many use cases, we will be using Cockpit for managing user and group accounts. The benefits of using Cockpit include ease of use, remote management, integration, real-time feedback and multi-server dashboards.
2625

27-
### Log In to Cockpit
26+
### Log in to Cockpit
2827

29-
- Open your web browser and enter https://localhost:9090 in the address bar
28+
- Open your web browser and enter <https://localhost:9090> in the address bar
3029
>**Note**: You can also enter the same address on the command line
3130
32-
```text
31+
```text
3332
https://localhost:9090
34-
```
33+
```
34+
3535
- Enter your username and password and click the **Log In** button
3636
3737
![img](images/user_group_acctmgt_images/1.png)
3838
39-
40-
4139
- Click the **Limited access** button and enter your password to enable administrative access
4240
4341
![img](images/user_group_acctmgt_images/2.png)
4442
45-
## User and Group Management
43+
## User and group management
4644
47-
### Managing User Accounts
45+
### Managing user accounts
4846
4947
- From the left menu, click **Accounts** tab and then click on the **Create new account** button
5048
5149
![img](images/user_group_acctmgt_images/5.png)
5250
53-
5451
- Enter the user's name in the **Full name** text box
5552
>*Note that the username will be automatically populated based on the full name. However, you can also edit the User name and User ID fields if needed.*
5653
- Enter a password for the new user
5754
- Click the **Create** button
5855
59-
6056
![img](images/user_group_acctmgt_images/8.png)
6157
62-
63-
**CLI counterpart**
58+
#### CLI method: managing user accounts
6459
6560
```text
6661
sudo useradd username -md /home/username -u 1002 -s /bin/bash
@@ -74,13 +69,13 @@ Observe the addition of the new user to the list of users displayed under the **
7469

7570
![img](images/user_group_acctmgt_images/9.png)
7671

77-
**CLI counterpart**
72+
#### CLI method: viewing `passwd` file
7873

7974
```text
8075
cat /etc/passwd
8176
```
8277

83-
#### Modify User Account
78+
#### Modify user account
8479

8580
- Click the vertical ellipsis icon for the new user and then click **Edit user**
8681

@@ -100,11 +95,12 @@ To add a user to a group do the following:
10095
- Click the vertical ellipsis icon next to the new user and click **Edit user**
10196

10297
- Click the **Groups** text box and begin typing the name of the group.
103-
Alternatively, you can scroll down the dropdown menu and click the name of the group you wish to add
98+
Alternatively, you can scroll down the dropdown menu and click the name of the group you want to add
10499

105100
![img](images/user_group_acctmgt_images/14.png)
106101

107-
**CLI counterpart**
102+
##### CLI method: adding a user to a group
103+
108104
```text
109105
sudo usermod -aG groupname username
110106
```
@@ -115,59 +111,66 @@ To remove a user from a group:
115111

116112
![img](images/user_group_acctmgt_images/18.png)
117113

118-
**CLI counterpart**
114+
##### CLI method: remove a user from a group
115+
119116
```text
120117
sudo gpasswd -d username groupname
121118
```
122119

123-
#### Delete User Account
120+
#### Delete user account
124121

125122
To delete a user account:
126123

127124
- Click the vertical ellipsis icon for the new user and click **Delete account**
128125

129126
![img](images/user_group_acctmgt_images/16.png)
130127

131-
Or
128+
Or
129+
132130
- Click the username highlighted in blue and select **Delete** box
133131

134132
![img](images/user_group_acctmgt_images/17.png)
135133

136134
![img](images/user_group_acctmgt_images/22.png)
137135

138-
**CLI counterpart**
136+
##### CLI method: delete a user account
137+
139138
```text
140139
sudo userdel -d username groupname
141140
```
142141

143-
### Creating and Deleting and Managing Group Accounts
142+
### Creating, deleting, and managing group accounts
144143

145-
- From the the left menu column, click **Accounts** tab then, click the **Create new group** button
144+
- From the left menu column, click **Accounts** tab then, click the **Create new group** button
146145

147146
![img](images/user_group_acctmgt_images/7.png)
148147

149148
- Enter the group name in the text box
150-
>*Note: You can accept the default group ID or change it to the numerical value you desire (e.g. 5001)*
149+
150+
>*Note: You can accept the default group ID or change it to the numerical value you desire (for example 5001)*
151+
151152
- Click the **Select** button
152153

153154
![img](images/user_group_acctmgt_images/11.png)
154155

155-
**CLI counterpart**
156+
#### CLI method: add a group name
157+
156158
```text
157159
sudo groupadd groupname
158160
```
159161

160162
To verify the group has been created:
161163

162-
- Enter the group name in the search box on the **Groups** table
164+
- Enter the group name in the search box on the **Groups** table
163165

164-
Or
166+
Or
165167

166-
- Click the dropdown menu next to **Groups**
168+
- Click the dropdown menu next to **Groups**
167169

168170
![img](images/user_group_acctmgt_images/12.png)
169171

170-
**CLI counterpart**
172+
#### CLI method: verify group name
173+
171174
```text
172175
cat /etc/group | grep groupname
173176
```
@@ -178,7 +181,8 @@ To delete a group:
178181

179182
![img](images/user_group_acctmgt_images/21.png)
180183

181-
**CLI counterpart**
184+
#### CLI method: delete group
185+
182186
```text
183187
sudo groupdel groupname
184188
```
@@ -197,4 +201,4 @@ getent group | grep groupname
197201

198202
## REFERENCES
199203

200-
To Install Cockpit: https://ciq.com/blog/how-to-administer-rocky-linux-with-cockpit/
204+
To Install Cockpit: <https://ciq.com/blog/how-to-administer-rocky-linux-with-cockpit/>

0 commit comments

Comments
 (0)