How to reset Kali Linux root password

How to reset Kali Linux root password

It’s possible to reset Kali Linux password in the event that you are no longer able to login to the root user account. This happens if you haven’t logged in for a while and have since forgot Kali Linux password. In case you have not already tried, the default Kali password for root user is toor (root backwards) on VMWare and live images. Try logging in with this password before resetting the Kali Linux password.

Read more

Linux IP forwarding

Linux IP forwarding – How to Disable/Enable using net.ipv4.ip_forward

It may be necessary to configure Linux IP forwarding on a Linux system in certain scenarios. If the Linux server is acting as a firewall, router, or NAT device, it will need to be capable of forwarding packets that are meant for other destinations (other than itself). Linux uses the net.ipv4.ip_forward kernel variable to toggle this setting on or off.

Read more

Recovering from Unintended Recursive chmod on System Directories: Steps and Precautions

Recovering from Unintended Recursive chmod on System Directories: Steps and Precautions

When tinkering around in the command line terminal of your Linux system, it is important to be aware that a small mishap can have dire consequences. Most Linux commands are not very forgiving, and there is often not an easy way to “reverse” a command after it has been run, especially on a large batch of files. The chmod command is one such command that users need to be wary of, as unintentionally changing the file permissions for system directories is not reversible, except through a slow, manual process.

Read more

Explaining the Sticky Bit: What the "t" in Linux Directory Permissions Means

Explaining the Sticky Bit: What the “t” in Linux Directory Permissions Means

Most seasoned Linux users are already familiar with basic file permissions like read, write, and execute. These permissions exist on every file and administrators often need to edit such permissions in order to tighten up security or grant file access to certain users. A less common permission that you may not be as intimately familiar with is the “sticky bit.”

Read more

Distinguishing Between the 'sudo' and 'admin' Groups in Linux: Roles and Usage

Distinguishing Between the ‘sudo’ and ‘admin’ Groups in Linux: Roles and Usage

In order to grant superuser privileges to ordinary users, Linux requires us to place the desired user accounts into a designated group for administrators. This group can have different names across various Linux distributions and system versions, such as sudo, admin, and wheel. Regardless of the name that your system uses, the group is granted superuser privileges by the settings within the /etc/sudoers configuration file. In this tutorial, we will explain the difference between the sudo, admin, and other similar user groups on a Linux system.

Read more

Understanding and Resolving File Ownership Issues on Linux: "Operation not permitted"

Understanding and Resolving File Ownership Issues on Linux: “Operation not permitted”

When attempting to change the ownership of a file on a Linux system, you may encounter the Operation not permitted error if the action fails. This generic error does not give us a lot of insight into what the problem could be, so we must do a little digging to figure out why the error is occurring. In this tutorial, we will go through some troubleshooting steps to determine why this error occurs while trying to change file ownership with the chown Linux command.

Read more

Changing File Permissions on NTFS Partitions in Linux

Changing File Permissions on NTFS Partitions in Linux

NTFS stands for New Technology File System and is developed by Microsoft for use on their Windows operating systems. NTFS is not normally used on Linux systems, but has been the default file system on Windows for many years. Linux users are probably used to seeing drives with the ext4 file system, which is ordinarily the default and certainly the most widespread in the Linux realm.

Read more

Understanding chmod: The Difference Between u+x and +x

Understanding chmod: The Difference Between u+x and +x

The chmod command is used to assign permissions on files and directories within a Linux system. Chmod can accept many varying syntaxes, such as symbolic mode and absolute mode, therefore it can be a little confusing when learning all the different ways that chmod can be used. When it comes to granting a user execute permissions, the u+x and +x options are often used because of their simple and straightforward syntax. But do you know the difference between these two options?

Read more

Assigning File Permissions to Specific Users with chmod and setfacl

Assigning File Permissions to Specific Users with chmod and setfacl

The Linux operating system allows users to assign granular permissions to all files and directories. Ordinarily, it is sufficient to hand out read, write, and/or execute permissions to individual user accounts or groups of users by utilizing the chmod command. But it is also possible to set granular permissions on a per user basis by configuring access control lists.

Read more

Granting Full User Rights to a Folder and Its Contents in Linux

Granting Full User Rights to a Folder and Its Contents in Linux

Sometimes it is necessary to grant full user rights on an assortment of files in your Linux system. You may have dozens, hundreds, or even thousands of files on which a user needs read, write, and execute permissions in order to fully access and utilize them. In such scenarios, it can be useful to grant full user rights on an entire directory, which gives blanket permissions on all of the directory’s file contents and subdirectories.

Read more

Changing Your Ubuntu Username and Home Directory Without Losing Application Settings

Changing Your Ubuntu Username and Home Directory Without Losing Application Settings

Changing the username on a Linux system can seem a bit tricky at first. After all, there are tons of application settings, system services, file permissions, and configuration files that rely on the username in order to function smoothly. Suddenly changing the name can have adverse and unexpected effects on your system, and will cause certain things to stop working if you do not manage to change the username using the proper method.

Read more