Introduction: In the realm of cybersecurity, penetration testing plays a crucial role in identifying vulnerabilities and assessing the overall security posture of systems. Netcat, a versatile networking utility, has emerged as an essential tool for penetration testers. With its ability to establish raw network connections, Netcat enables professionals to conduct various tests and simulations, making …
Tag archives: linux
What is a SUID?
As well as the standard read, write and execute permissions applied to files there are some special permissions. These include SUID, SGID, and sticky bit. SUID stands for Set owner User ID upon execution. Normally when a program runs, it inherits permissions from the logged-on user. When the SUID special permission is applied to a …
Managing File Permissions
In order to see what permissions have been set on a file the ls command can be used. So what does all that mean? All of the lines start with a string like -rw-rw-r– or drwxrwxr-x. Lets brake this down. The first character can be either – or d, – denotes a file and d …
Managing Groups in Linux
Groups play an important role in controlling the access to files and resources in Linux. However, group management is a little different in Linux from that of Windows. One difference is that when a user is created, a group with the same name as the user is also created. So if we set up a …
Managing Users in Linux
Creating users in Linux is fairly straightforward and achieved as most things in Linux are, via the command line. To create a user account locally, make sure you sudo and run a command like the one below: OK, so what do all the command line options do? To check the user has been created correctly …
How to mount an ISO file on Linux
The first step is to create a mount point for the iso file to be loaded in. Next use the mount command to attach the iso file you want to load. The -o loop command tells the command to mount a loop device to the iso specified, then mount it on the mounts point specified. …
How to flush DNS resolver cache
Note – this works on Ubuntu 18.04, 20.04 and Centos 8 Check that systemd-resolved is running by entering the command below. To check the number of items in the cache run: To clear the local DNS cache run the command below If you run the command systemd-resolve –statistics again you will now see the cache …
Linux: Setting up Users and Groups – Super Users
Super User Privileges We need super user privileges for a variety of tasks on Linux, for example system-wide changes, changes that affect other users, and changing the configuration of services. There are a few ways to get access to superuser privileges, the most commonly used when entering a single command is sudo. This will prompt …
Continue reading “Linux: Setting up Users and Groups – Super Users”