Tag:Ordinary users

  • Linux general knowledge


    Linux is the kernel of an open source and free multi-user multitasking operating system in the field of server applications. The following is an explanation of the above conclusion: operating system In short, the operating system is the housekeeper of all computing devices, ranging from smart watches to aerospace equipment. There will be operating systems […]

  • Linux ordinary users obtain administrator privileges


    1. To add a user, first add an ordinary user with the addUser command as follows: Copy code The code is as follows: #adduser tommy </p>#Passwd Tommy / / modify the passwordChanging password for user tommy.New UNIX password: / / enter the new password hereRetype new UNIX password: / / enter the new password againpasswd: […]

  • Linux Tomcat generate file permission problem


    The environment of the problemConfigure Tomcat in Linux, port changed to 80 (do not use reverse proxy, configuration is simple, but was pit)!) When the service starts with a port less than 1000, it needs to use the root permission. Therefore, when starting tomcat, it needs to use sudo to start. At this time, Tomcat […]

  • I’m garbage 02: protocol handler start failed caused by:


    Recently, when using MAC to start the project, it was found that an error was reported Protocol handler start failedCaused by: java.net.SocketException: Permission denied After inquiry, it was found thatLinux does not allow ordinary users to bind to TCP ports < = 1024 \. There is a reason for discussion [here](https://unix.stackexchange.co…)。 You tried to bind […]

  • Configuring arch Linux with wsl2


    This article comes from my noteshttps://github.com/levinit In the following, the windows commands are executed in either PowerShell or Windows terminal (recommended, which uses PowerShell by default). Enable wsl2 Enable hyperv Enable subsystem for Linux Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform Home version enables hyperv and creates a bat file, such as hyperv.bat The contents are as follows: […]

  • Linux privilege management (3) set uid privilege, set GID privilege, sticky bit privilege, chatr privilege


    Suid permissions, sgid permissions, sbit permissions are extremely unsafe permissions, here is just for learning, try not to set these permissions in the production environment! 1、 Set uid permission (suid permission) 1. Restrictions and functions of set uid permission Only executable binaries can set suid permissions(Invalid for normal shell scripts) The command executor has the […]

  • Mongodb primary series 1: users and permissions


    preface For databases, users and permissions are a very important part, because it involves security. What about mongodb users and permissions? explain Environmental description The version of mongodb used in this paper is 3.6, and the operating system is windows. Other instructions Limited to space, this article will not introduce the database from download to […]

  • Building Linux subsystem in win10


    The Linux subsystem of win10 is called WSL (Windows subsystem for Linux). The advantage is that the Linux system and windows system are connected, and the isolation phenomenon of the two systems caused by the traditional virtual machine / dual system is changed. The disadvantage is that it is not stable enough, but it is […]

  • Linux view server brutally crack SSH IP


    On the server of public network, you often encounter someone to blow up port 22 of your server, which is used to mine or do other things~ In this case, the correct way is to: Modify the default SSH port 22 Log in using set key or whitelist IP It is recommended that the server […]

  • Linux multi user file sharing


    Linux file permissions are divided into main permissions, group permissions, other user permissions and special permissions. special competencies s: Setuid: when a user executes a file with s permission, it will execute as the owner. Eg: when a normal user executes passwd to modify the password, it will execute through the owner of passwd, that […]

  • Special permissions for files in Linux (setuid / setgid / sbit)


    1.SetUID 1、 Functions of setuid Setuid mainly provides a root permission for commands, that is, the command runs with root user permission, and the root permission disappears after the command runs 1. Only executed binary program can set suid permission 2. The command executor should have X (execute) permission for the program 3. Command the […]