sudo – POFTUT

What Is Sudo Command in Linux?

sudo or superuser do is a utility used on Linux, BSD, and Unix systems that provides the running command with root or Administrator privileges. Not every user needs to have root privileges but in some cases needs to run commands with root privileges. We can use sudo to run some specific or all provided commands … Read more

How to Become SuperUser or Root with su Command In Linux?

Linux provides root account as superuser or Administrator. As root account has all privileges to manage a system this may be a threat for misuse or error of administrators. We generally use normal user accounts in daily operation and change to the superuser with su  command. Root root exist all Linux systems and can not be deleted because … Read more

“-bash: sudo: command not found” Error and Solution For Linux, Debian, CentOS

sudo  command is used to execute command as another user. This is generally used to run command as root. In some cases we can get an error like -bash:sudo:command not found which means sudo is not installed. In this tutorial we will look different ways and distributions to solve this problem. Install Sudo For Debian, Ubuntu, Mint, … Read more

What Does “sudo apt-get update” do?

What Does "sudo apt-get update" do?

We have examined the apt-get  and its commands in a detailed manner previously. apt-get  is used to manage installed packages in a Linux distribution like Ubuntu, Debian, Mint, Kali, etc. Here we will look simply sudo apt-get update  and related commands to update a deb based Linux distribution. For detailed tutorials look following. How To … Read more

How to Create New User In CentOS?

CentOS is enterprise level Linux distribution which is clone of the RedHat. User management like create, add, remove etc is important part of the daily Administration tasks. In this tutorial we will look how to add new user to the CentOS system. List Current Users Before creating new user we will list existing users. We … Read more

Linux Chroot Command Tutorial with Examples

Linux provides different mechanisms for practical and security reasons. chroot is one of them. Processes in linux can access to the file system or root by default. Linux kernel also provides chroot mechanism to restrict access to the whole filesystem in Linux. Syntax The chroot syntax is like below. chroot OPTION NEWROOT COMMAND OPTION is chroot option NEWROOT is … Read more

What is chmod 777?

What is chmod 777?

chmod 777 is very popular ownership command. 777 simply means give all rights to the all users. chmod 777 generally used to make operations more smoothly because it will remove all ownership related problems. We generally use chmod 777 some error message like below. You don’t have permission to access /bin/ on this server. All Files and Directories Recursively … Read more

Linux Sudo Command Tutorial with Examples To Get Root Privileges

Linux sudo command is used to give root privileges to the normal users . /etc/sudoers file is used for configuration of sudo . Sudoers file provides the users who can run sudo command. Sudoers also used to limit the commands the user can run. Run Command With Sudo Sudo command will accept given command and look to the sudoers file. … Read more

How To Prevent Deleting Files Accidentally?

Every system admin horror is deleting files accidentally especially important and not backup ed configuration files. Here is how can we recover deleted files from Linux systems which is next situation if we skipped this step. Ask Before Deleting Files rm is defacto tool to remove files from Linux system. We can set up a mechanism … Read more