Skip to content

Commit 3d6388e

Browse files
Apply Prettier format
1 parent 6ce83d1 commit 3d6388e

File tree

3 files changed

+37
-36
lines changed

3 files changed

+37
-36
lines changed

docs/beginners/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
---
2-
title: 'Beginner series'
2+
title: "Beginner series"
33
---
44

5-
65
# Beginner Series!
76

8-
Numerous new users come to Linux every day, and using AlmaLinux for the first time should be a straightforward experience. This series takes the time to explain base-level concepts in a simple language, providing a reassuring guide for new users so they won't feel immediately overwhelmed. Here is how to manage common issues using AlmaLinux:
7+
Numerous new users come to Linux every day, and using AlmaLinux for the first time should be a straightforward experience. This series takes the time to explain base-level concepts in a simple language, providing a reassuring guide for new users so they won't feel immediately overwhelmed. Here is how to manage common issues using AlmaLinux:
98

10-
- [File and Folder Permissions](/beginners/file-and-folder-permissions/)
9+
- [File and Folder Permissions](/beginners/file-and-folder-permissions/)
1110
- [User and Group Management](/beginners/users-and-groups/)
1211

1312
## Related articles

docs/beginners/file-and-folder-permissions.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ And because Linux is a multi-user operating system, file and folder permissions
1212

1313
There are two different methods for changing folder and file permissions on Linux:
1414

15-
- absolute - which requires users to know the numeric number associated with each permission.
16-
- symbolic - which only requires the use of letters associated with users (user, group, and other)  and permissions (such as read, write, and execute). 
15+
- absolute - which requires users to know the numeric number associated with each permission.
16+
- symbolic - which only requires the use of letters associated with users (user, group, and other)  and permissions (such as read, write, and execute). 
1717

1818
## Key Takeaways
1919

2020
To understand file and folder permission, there are three different types of owners:
2121

22-
- User - the user who is the primary owner of a file or folder.
23-
- Group - any user who's part of a group with access to a file or folder.
24-
- Other - anyone with access to the system.
22+
- User - the user who is the primary owner of a file or folder.
23+
- Group - any user who's part of a group with access to a file or folder.
24+
- Other - anyone with access to the system.
2525

2626
There are also three different types of permissions:
2727

28-
- Read - a user can view and/or copy the contents of a file.
29-
- Write - a user can modify the contents of a file.
30-
- Execute - a user can run the file (if it's an executable app or script).
28+
- Read - a user can view and/or copy the contents of a file.
29+
- Write - a user can modify the contents of a file.
30+
- Execute - a user can run the file (if it's an executable app or script).
3131

3232
The above permissions hold true for both files and folders.
3333

@@ -37,20 +37,20 @@ If you issue the command ls -l within a directory, you'll see all of your files/
3737

3838
Here's the breakdown of that listing:
3939

40-
* - - the file type
41-
* rw-rw-r-- - the permissions
42-
* 1 - number of hard links
43-
* jack - owner
44-
* jack - group
45-
* 0 - file size
46-
* July 16 13:04 - modification timestamp
47-
* testfile - the filename
40+
- - - the file type
41+
- rw-rw-r-- - the permissions
42+
- 1 - number of hard links
43+
- jack - owner
44+
- jack - group
45+
- 0 - file size
46+
- July 16 13:04 - modification timestamp
47+
- testfile - the filename
4848

4949
What we want to focus on is the permissions. In our example that's `rw-rw-r--`. How this breaks down is simple. The permissions section is broken into three sections: owner, group, and other, each of which can have read (r), write (w), and/or execute (x) permissions. So our example breaks down like this:
5050

51-
- owner has read and write permissions.
52-
- group has read and write permissions.
53-
- other has read permissions.
51+
- owner has read and write permissions.
52+
- group has read and write permissions.
53+
- other has read permissions.
5454

5555
If you see a `-` character, it means there are no permissions set for that. If the file had full permissions for all users, it would look like this:
5656

@@ -60,10 +60,10 @@ So, `rwx` for owner, `rwx` for group, and `rwx` for other.
6060

6161
The question now is, how do we change that? With the chmod command, which has two different modes: absolute and symbolic. The easiest method is symbolic. Why? With absolute mode, you have to remember the following:
6262

63-
- read permission = 4
64-
- write permission = 2
65-
- execute permission = 1
66-
- no permission = 0
63+
- read permission = 4
64+
- write permission = 2
65+
- execute permission = 1
66+
- no permission = 0
6767

6868
To change the permission in absolute mode, you add the permissions you want for each group. For example, if you want owner to have `rwx` permission, the total is 7. If you wanted group to have read and write permission, the total is 6, if you wanted to give other only read permission, the total is 4. String them together and you get 764. To make that change, the command would be:
6969

docs/beginners/users-and-groups.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
---
22
title: "User and group management via the command line and GUI"
33
---
4+
45
<hr>
56

6-
| 💡 | Experience Level | ⭐☆☆☆☆ |
7-
|--- | --------- | --------|
7+
| 💡 | Experience Level | ⭐☆☆☆☆ |
8+
| --- | ---------------- | ------ |
9+
810
###### last updated: 2024-09-10
911

1012
## Introduction
@@ -18,8 +20,8 @@ Fortunately, the open-source operating system has everything you need built righ
1820

1921
Users and groups can be managed in two ways:
2022

21-
- The command line interface (CLI)
22-
- The desktop graphical user interface (GUI)
23+
- The command line interface (CLI)
24+
- The desktop graphical user interface (GUI)
2325

2426
Which option you use will depend on the access you have to the machine in question and whether or not you prefer the terminal or a GUI.
2527

@@ -47,10 +49,10 @@ The -e option is used to automatically expire a user's password. This way, the f
4749

4850
There are other tasks you can undertake to manage users from the command line, such as:
4951

50-
- Lock a user account - `sudo passwd -l USERNAME`
51-
- Unlock a user account - `sudo passwd -u USERNAME`
52-
- Delete a user account - `sudo userdel USERNAME`
53-
- Delete a user and their home directory - `sudo userdel -r USERNAME`
52+
- Lock a user account - `sudo passwd -l USERNAME`
53+
- Unlock a user account - `sudo passwd -u USERNAME`
54+
- Delete a user account - `sudo userdel USERNAME`
55+
- Delete a user and their home directory - `sudo userdel -r USERNAME`
5456

5557
### Managing users from the GUI
5658

@@ -101,4 +103,4 @@ Where `GROUPNAME` is the group to be removed and `USERNAME` is the username.
101103

102104
Remember, any time you create a new user, you should immediately expire their password, so the user can set one themselves.
103105

104-
And that's the basics of user and group management in Linux. There's a lot more to learn, so we would recommend viewing the man pages for each command listed here (such as `man adduser`, `man groupadd`, and `man usermod`).
106+
And that's the basics of user and group management in Linux. There's a lot more to learn, so we would recommend viewing the man pages for each command listed here (such as `man adduser`, `man groupadd`, and `man usermod`).

0 commit comments

Comments
 (0)