Title: Rearrange itinerary Give you a list of routes tickets, where tickets[i] = [fromi, toi] represents the airport locations where the plane departs and lands. Please re-schedule this itinerary. All of these tickets belong to a gentleman traveling from JFK (JFK International Airport), so the trip must start at JFK. If there are multiple valid […]
Tag: sudo
How to successfully implement sudo apt-get update after key import fails
How to successfully implement sudo apt-get update after key import failure briefing Solution Situation Brief After changing the source, I used sudo apt-get update and found that reported that the following signature could not be verified because there is no public key: NO_PUBKEY error. After consulting a lot of information, , all are imported keys […]
[Linux] su, sudo and other “switch user” commands
[Linux] su, sudo and other “switch user” commands 1. The difference between $ and # 2.su 3.su- 4.su-root 5.sudo 6. sudo -i 7. sudo su – 8. Summary The difference between 1.$ and # The beginning of $ indicates that this is not a command executed under the root user (administrator user). [ubuntu@Default:~]$ pwd /home/ubuntu […]
Configure sudo permissions for ordinary users in linux
Table of contents 1. About sudo 2. The working process of sudo 3. Configure sudo permissions for ordinary users 3.1 Method 1: Change the ordinary user’s affiliated group to wheel so that it has sudo permissions (recommended) 3.2 Method 2: Modify the /etc/sudoers file so that ordinary users have sudo permissions 4. Detailed explanation of […]
Use the NeoPixel library to call the Rpi-ws2811/2 light strip (without using sudo to start the light strip)
Table of Contents 1. Selection of light strips 1. Rpi-ws2811 light strip LED 2. Rpi-ws2812 matrix LED Second, try to use the Rpi-ws281x library to test the LED (you can ignore it if you try to solve the sudo permission problem) 1. Understand the light strip wires 2. Start the Raspberry Pi and connect to […]
Linux commands – su, su -, sudo
The biggest difference between the sudo and su commands is: The sudo command requires the password of the current user, and the su command requires the password of the root user. Another difference is its default behavior. The sudo command only allows a single command to be run with elevated privileges, whereas the su command […]
150+ lines of Python code to implement Sudoku game with interface
150 lines of code to implement a graphical Sudoku game Github address, everyone is welcome to fork, star, etc. Thank you; I have nothing to do today. I have made an HTML + js version of Sudoku before. This time I will make a Python version. The interface is completed by pygame. The Sudoku generation […]
Easy to answer questions | Do you really know how to use su and sudo commands?
Brother Xu need to finish reading 12 minutes Speed reading in just 4 minutes / Do you really know how to use the su and sudo commands? / 1 1 su:switch user 1.1 Background Note There are multiple users in Linux, such as root, master, worker, etc. So how do I switch from one user […]
Linux Sudo privilege escalation vulnerability reappears (CVE-2023-22809)
@[TOC](Linux Sudo privilege escalation vulnerability recurrence (CVE-2023-22809)) Foreword ● Vulnerability introduction: sudoedit in Sudo has a flaw in handling extra parameters passed in user-provided environment variables (such as SUDO_EDITOR, VISUAL, and EDITOR). When a user-specified editor contains the “-” parameter that bypasses the sudoers policy, a local attacker with sudoedit access can ultimately achieve privilege […]
The difference between the Linux command su and sudo
I have been confused about the two commands su and sudo before. Recently, I searched for information on this aspect, and finally figured out the relationship and usage of the two. article to summarize the system. 1. Preparations Because this blog involves user switching, I need to prepare a few test users in advance to […]