How to switch from root to ordinary user to execute scripts or commands in Linux and solve related problems

How to switch from root to ordinary user to execute scripts or commands in Linux and solve related problems

How to switch from root to ordinary user to execute script or command in linuxshell script. Tomorrow I will share with you an article about how to switch from root to ordinary user to execute script or command in linuxshell script. It has a good reference value. I hope it will be helpful to you. Helps. Let’s follow the editor and take a look. Forgetting the root password in Linux and entering single-user mode to switch run levels and switching users mainly introduces Linux. Forgetting the root password and entering single-user mode to switch run levels and switch users. Students in need can refer to the Linux ordinary user suroot. The solution to the problem that the switch prompts that there is no file or directory mainly introduces the solution for the suroot switch prompt of ordinary Linux users that there is no file or directory.

Jun 17, 2024 am 09:23 AM
Ideas for installing Centos7 on a physical computer and U disk boot installation method

Ideas for installing Centos7 on a physical computer and U disk boot installation method

Applications in enterprises usually run on: chemical server virtual machine (cloud host) container. Now novices who just learn Linux usually install vmwareworkstation in the windows system, and then install the vmware virtual machine to use and learn. But when I encounter the steps to install Linux system on a chemical notebook or server CD, I don’t know how to install Linux. Let’s explain the idea of ​​installing centos7 on a chemical notebook. There are several main ways to install centos on a chemical machine: 1. U disk boot installation 2. CD boot installation 3. Network boot installation Many notebooks nowadays are no longer equipped with hard drives, so the second method is excluded. You can consider cobb as a network installation method

Jun 17, 2024 am 09:14 AM
Teach you how to capture kernel crash information

Teach you how to capture kernel crash information

First install the required package: apt-get-yinstallaptitudekdump-toolscrashkexec-toolsmakedumpfilelinux-image-`uname-r`-dbgaptitudefull-upgrade# Avoid inconsistency between the running kernel version and the debugged version, resulting in the inability to debug the Kdump configuration file /etc/default/kdump -tools key part USE_KDUMP=1KDUMP_SYSCTL="kernel.panic_on_oops=1"KDUMP_KERNEL=/

Jun 16, 2024 pm 10:34 PM
Linux Linux系统 红帽 Linux命令 linux认证 红帽linux linux教程 linux视频
How do I install software and set environment variables with non-root user rights?

How do I install software and set environment variables with non-root user rights?

In the case of the article directory, use the root user linux. Use the root user linux compression command. Since the permissions are large enough, everything can be done easily by non-root users. What about the Linux system when the permissions are low, even yuminstall cannot be used, so how to install the software? Installation rpm package 1. Taking the installation of the wget tool as an example, first download a wget rpm package on the windows browser http://www.rpmfind.net/linux/centos/7.9.2009/os/x86_64/Packages/wget-1.14- Simulate offline installation after 18.el7_6.1.x86_64.rpm

Jun 16, 2024 pm 03:51 PM
Detailed explanation of HTTPS connection process and man-in-the-middle attack and hijacking

Detailed explanation of HTTPS connection process and man-in-the-middle attack and hijacking

1. HTTPS connection process and man-in-the-middle attack principle The https protocol is the http+ssl protocol. The connection process is shown in the figure below: 1. The https request client sends an https request to the server; 2. The public key and private key are generated and received by the server. After the request is made, the public key and private key are generated. The public key is equivalent to a lock, and the private key is equivalent to a key. Only the private key can open the content locked by the public key; 3. Return the public key server to return the public key (certificate) to the client. The public key contains a lot of information , such as the issuing authority of the certificate, expiration time, etc.; 4. Client verification of public key. After receiving the public key, the client will first verify whether it is valid, such as the issuing authority or expiration time, etc. If any problem is found, it will be thrown Abnormal, reminder

Jun 16, 2024 am 10:52 AM
Linux Linux系统 红帽 Linux命令 linux认证 红帽linux linux教程 linux视频
Detailed steps and introduction to installing Open VM Tools under Ubuntu system

Detailed steps and introduction to installing Open VM Tools under Ubuntu system

I previously posted an article about installing VMwaretools tools under Ubuntu systems. See related documents: vmware virtual machine system Ubuntu installation vmwaretools tool After careful netizen prompts, I found the following prompt. Go to the official website to check the introduction of Open-vm-tools. OpenVMTools (open-vm-tools) is an open source implementation of VMwareTools suitable for Linux guest operating systems. VMware provides Operating System Specific Packages (OSP) as the packaging and distribution mechanism for VMwareTools. Officials have approved relevant tools. You can then install the Ope

Jun 16, 2024 am 10:23 AM
Analysis of Redis persistence storage method

Analysis of Redis persistence storage method

1. The RBD (snapshot) principle writes the data in the memory to a temporary file on the disk at a certain point in time. After the persistence is completed, this temporary file is used to replace the last persisted file. Configuration file save9001#If the key value is modified once within 900 seconds, take a snapshot save30010#If the key value is modified 10 times within 300 seconds, take a snapshot save6010000#If the key value is modified 10,000 times within 60 seconds, take a snapshot stop-writes- on-bgsave-erroryes#When a background backup error occurs, are new write operations prohibited? If it is not prohibited, it will easily cause data inconsistency rdbcompressionyes#Whether the exported rdb file is compressed rdbc

Jun 16, 2024 am 09:42 AM
Linux Linux系统 红帽 Linux命令 linux认证 红帽linux linux教程 linux视频
The problem of network failure during Centos7 installation process

The problem of network failure during Centos7 installation process

Today I wanted to install Docker for fun, but I found that I must use a 64-bit operating system, and the original Centos6.7 cannot be used. Changing /etc/sysconfig/network-scripts/ifcfg-ens33 to a static IP according to the online instructions does not work either. I tried many times, spent a whole afternoon, and reinstalled many times. Later, when setting up the network during the installation process, it was just fine to change it to a static IP, as shown in the picture (provided that you have followed the above connection step by step). When you turn on the Ethernet, the IP address will be displayed below. Take a photo. Come down, you will use it later, then click the configure button, and then add the static address according to the above address. Then follow the steps in the link step by step and it will be ok.

Jun 15, 2024 pm 07:58 PM
Linux Linux系统 红帽 Linux命令 linux认证 红帽linux linux教程 linux视频
SSH service installation and startup tutorial: Redhat, Debian and other series of Linux distributions

SSH service installation and startup tutorial: Redhat, Debian and other series of Linux distributions

1. SSH service installation 1. Install ssh service. If you are using redhat, fedora, centos and other series of linux distributions, to install sshandroidlinux on linux, type the following command: sudoyuminstallsshdsudoyuminstallopenssh-server. If you are using debian, ubuntu, linuxmint and other series. To install ssh on Linux distribution, type the following command: sudoapt-getinstallsshdsudoapt-getinstallopenssh-server2

Jun 15, 2024 pm 03:58 PM
How to choose Alibaba Cloud Server ECS operating system? What are the differences between Windows and Linux systems?

How to choose Alibaba Cloud Server ECS operating system? What are the differences between Windows and Linux systems?

With the development of website server technology, more and more webmasters choose cloud servers first when building websites. Nowadays, Alibaba Cloud Server ECS stands out and has become the first choice of most webmasters' website servers. So for webmasters who have just come into contact with cloud servers, how to choose the Alibaba Cloud Server ECS operating system suitable for the website? What are the differences between the Alibaba Cloud Server ECS operating systems? What are the differences between Alibaba Cloud Linux servers and Windows servers. Prerequisite: If students need to purchase any Alibaba Cloud products in the future, coupons can be issued in advance. We can reduce costs for you later: click to issue Alibaba Cloud coupons Alibaba Cloud personal subscription + Alibaba Cloud enterprise subscription First of all, we need to be clear about the differences between each system, and how to use Alibaba Cloud on Alibaba Cloud

Jun 15, 2024 am 10:51 AM
Tutorial on installing Ubuntu virtual machine under Windows: Easy to use Oracle VM VirtualBox

Tutorial on installing Ubuntu virtual machine under Windows: Easy to use Oracle VM VirtualBox

Install Ubuntu virtual machine under Windows. Choose to enable OracleVMVirtualBox to install the Ubuntu virtual machine. 1. Download and install OracleVMVirtualBox: Visit the official website of OracleVMVirtualBox (), download the installation package for Windows, and install it according to the instructions of the installation wizard. 2. Download the Ubuntu ISO image: Visit the Ubuntu official website () vm virtual machine to install Linux, select the appropriate Ubuntu version ISO image file from the download page, and select the Desktop version as needed. 3. Create a new virtual machine: Open OracleVMVirt

Jun 15, 2024 am 09:26 AM
Analyze N ways to optimize Tomcat performance

Analyze N ways to optimize Tomcat performance

Tomcat is often the default development environment for JavaWeb practitioners, but the default configuration of Tomcat as a production environment, especially the configuration of memory and threads, is very low by default and can easily become a performance bottleneck. Fortunately, Tomcat still has a lot of room for improvement. Below Let’s introduce Tomcat optimization, which can be divided into memory, thread, and IO. Tomcat is often the default development environment for JavaWeb practitioners. However, Tomcat’s default configuration as a production environment, especially the configuration of memory and threads, is very low and easy by default. It has become a performance bottleneck. Fortunately, Tomcat still has a lot of room for improvement. The following introduces Tomcat optimization, which can be divided into memory, threads, and IO. 1:

Jun 14, 2024 pm 09:10 PM
Linux Linux系统 红帽 Linux命令 linux认证 红帽linux linux教程 linux视频
linux kernel sprintf The starting point of Linux's founding: I witnessed its rise from humble beginnings to global success

linux kernel sprintf The starting point of Linux's founding: I witnessed its rise from humble beginnings to global success

Produced | CSDN (ID: CSDNnews) My name is Lars Wirzenius, and I witnessed the initial founding of Linux. Today, Linux is a global success, but its beginnings were quite humble. What follows are my earliest memories of Linux, its creation, and the beginning of its road to tomorrow. In the summer of 1988, I started studying computer science at Edinburgh College in the UK, and met Linus Torvalds (the original author of the Linux kernel), another Spanish-speaking new high school student majoring in computer science that year. At the end of my first year at the academy, we were given access to a Unix server and I stumbled upon Usenet (197

Jun 14, 2024 pm 06:25 PM
Install RawTherapee 5.4 in Ubuntu

Install RawTherapee 5.4 in Ubuntu

New features in RawTherapee 5.4 include: • New default processing profiles are now the default look for raw photos, closely matching the camera look in terms of tonality, including lens distortion and vignetting correction. • New histogram matching tool that allows RawTherapee to automatically adjust images to match camera appearance with the click of a button. • New HDR tone mapping tool compresses light in high dynamic range scenes, letting you reveal detail in shadows and highlights in a realistic way. • New native contrast tool to improve clarity with a simple interface. • New color grading method L*a*b* color correction grid. •New RCD demosaicing algorithm for maximum performance even under artificial lighting and strong chromatic aberration

Jun 14, 2024 pm 02:23 PM
Linux Linux系统 红帽 Linux命令 linux认证 红帽linux linux教程 linux视频

Hot tools Tags

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

vc9-vc14 (32+64 bit) runtime library collection (link below)

vc9-vc14 (32+64 bit) runtime library collection (link below)

Download the collection of runtime libraries required for phpStudy installation

VC9 32-bit

VC9 32-bit

VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version

PHP programmer toolbox full version

Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit

VC11 32-bit

VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Hot Topics

Java Tutorial
1667
14
PHP Tutorial
1273
29
C# Tutorial
1255
24