-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from Engineering-Research-and-Development/cert…
…_doc_upate_part_7 Cert doc upate part 7
- Loading branch information
Showing
8 changed files
with
155 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Managing OS Roles and Permissions | ||
|
||
### Requirements | ||
- A Linux system (e.g., Debian, Ubuntu, CentOS) | ||
- Sudo or root access | ||
|
||
### Steps | ||
|
||
#### Managing Users and Groups | ||
- **Add User**: `sudo adduser [username]` | ||
- **Add Group**: `sudo addgroup [groupname]` | ||
- **Add User to Group**: `sudo adduser [username] [groupname]` | ||
- **List Users**: `cat /etc/passwd` | ||
- **List Groups**: `cat /etc/group` | ||
|
||
#### Managing File Permissions | ||
- **Change File Ownership**: `sudo chown [user]:[group] [file]` | ||
- **Change Permissions**: `chmod [permissions] [file]` | ||
- Permissions are represented as a number for owner, group, and others (e.g., 755). | ||
- **View File Permissions**: `ls -l [file]` | ||
|
||
#### Sudoers File for Role Assignment | ||
- **Edit Sudoers File**: `sudo visudo` | ||
- This file controls who can run what commands as root. | ||
- **Add User to Sudoers**: Add a line like `[username] ALL=(ALL) ALL` | ||
|
||
#### Managing Services and Daemons | ||
- **Start/Stop Service**: `sudo systemctl start [service]` | ||
- **Enable/Disable Service on Boot**: `sudo systemctl enable [service]` | ||
|
||
--- | ||
|
||
### Best Practices | ||
- **Principle of Least Privilege**: Always assign the minimum necessary permissions. | ||
- **Regular Audits**: Periodically review user roles and permissions. | ||
- **Backup**: Always have a backup before making significant changes, especially in Linux `/etc` directory | ||
- **Mandatory Access Control**: As an OS administrator, it is essential to implement strict access control measures. Ensure that each user is assigned to the correct group with appropriate file permissions. Regularly verify that a user (User X) cannot access files belonging to another user (User Y), especially in shared or networked environments. This can be achieved through careful configuration of user accounts, groups, and permissions, along with the use of tools like Access Control Lists (ACLs) in Linux. | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# NTP Server Setup Guide | ||
|
||
### Requirements | ||
- A Linux system (e.g., Debian, Ubuntu, CentOS) | ||
- Sudo or root access | ||
- Internet connection | ||
|
||
### Steps | ||
1. **Install NTP** | ||
- Update package list: `sudo apt update` (Debian/Ubuntu) or equivalent. | ||
- Install NTP package: `sudo apt install ntp` (Debian/Ubuntu) or equivalent. | ||
|
||
2. **Configure NTP Server** | ||
- Edit the NTP configuration file: `sudo nano /etc/ntp.conf`. | ||
- Add NTP server lines, e.g., `server 0.pool.ntp.org`. | ||
|
||
3. **Start and Enable NTP Service** | ||
- Start NTP service: `sudo systemctl start ntp`. | ||
- Enable NTP service on boot: `sudo systemctl enable ntp`. | ||
|
||
4. **Verify NTP Service** | ||
- Check service status: `sudo systemctl status ntp`. | ||
- Check synchronization: `ntpq -p`. | ||
|
||
5. **Synchronize OS Clock** | ||
- Manually update system clock: `sudo ntpdate pool.ntp.org`. | ||
|
||
### Additional Notes | ||
- Ensure firewall settings allow UDP traffic on port 123. | ||
- Regularly monitor service status and synchronization. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
# OS Log Access Configuration Guide | ||
|
||
|
||
### Prerequisites | ||
- Root or sudo privileges on the Linux system. | ||
- Basic understanding of Linux file system and permissions. | ||
|
||
### Steps | ||
|
||
1. **Open Terminal** | ||
- Access the terminal on the Linux machine. | ||
|
||
2. **Add User to Required Groups** | ||
- Add the user to the `adm` group to allow reading system logs: | ||
``` | ||
sudo usermod -a -G adm [username] | ||
``` | ||
3. **Set Permissions for Log Files** | ||
- Change permissions of the log files (if necessary) to ensure readability: | ||
``` | ||
sudo chmod o+r /var/log/syslog | ||
``` | ||
4. **Verify Access** | ||
- Switch to the user account and verify access to the logs: | ||
``` | ||
su - [username] | ||
cat /var/log/syslog | ||
``` | ||
5. **Review and Confirm** | ||
- Ensure the user can read the necessary logs without issues. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters