Has been doing the account management system of the Linux server in the lab. At this stage, after receiving the application, I receive the email and manually create it. This is a little troublesome and I plan to completely automate it. After the user applies, I can directly create a user by clicking the approval in the management interface, and send the email to the user at the same time.
The automation is built on a certain basis, firstly, the user is created, and the user is created under linux. Is useradd, you can use passwd to set the password after creation, but if you make it automated, you don't have to manually enter anything. Look carefully and find that there is a -p parameter in useradd to set the password, but the password after p parameter is crypt. , that is, must be ciphertext. The ciphertext can be generated using the openssl command, as follows:
The password is the password, the plaintext password is the above line, create a name Test, the password for "i am a codeformer" users are as follows:
useradd -p "S0dAmthh3vjPQ" test
Of course useradd There are many other parameters, just add it as needed.
This step is over, but more than one server in the lab needs to be managed. Here you can configure ssh to log in directly, and execute the ssh command remotely. You can view the .ssh free login, please check http://blog.csdn.net/dliyuedong/article/details/17792783.
The network structure under Linux is very complicated, but the basic user space network con
A. Static library concept 1. A library is a collection of pre-compiled object files that can be lin
After reinstalling Win7, I have never tried to install Linux again, occasionally playing, an
Ubuntu is a good Linux operating system, but for newcomers who just installed it, how to connect to
Vim tools commonly used in Linux
The tool bootchart that records the Linux boot process
Linux modify the partition name created during installation
Linux service NFS and SAMBA services
Redis common operation command
Linux-MySleep function implementation and race condition
Linux/centos solves Tomcat memory overflow
Character encoding and conversion tool for files under GnuLinux
Win Server 2012 diverse interface to meet different user needs
CF Linghu's Treasure Box Activity Props Attack
How to solve the problem of Win10 computer blue screen error code 000000050?
Windows 7 system "highest authority" reveals
Win8 software selection: fresh and fun Win8 boutique application
The second phase of the CF Heart of Honor battle hits the daily rituals and draws constantly
The rookie must read the XP login interface restore record
There are pictures with the truth. The latest Windows8 system screenshots (1)
No anti-virus software in the future? Windows 8 security performance enhancements