Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ CentOS 6.0 system security level     - The Java development environment to build under Ubuntu 14.04 (Linux)

- Oracle 10g in the unique and index problems (Database)

- Java is simple to read and write HDFS Demo (Programming)

- Experience CoreCLR stack unwinding characteristics of initial implementation on Linux / Mac (Linux)

- The correct way to open Xcode - Debugging (Programming)

- Gitblit adopted Ticket collaborative development model (Linux)

- Modify Linux terminal prompt path length (Linux)

- jQuery plugin dynamic label generation (Linux)

- Python pickle module for simple use notes (Programming)

- Hibernate learning introductory tutorial (Programming)

- Ordinary users how the Linux system shutdown (Linux)

- JDK installation notes under CentOS (Linux)

- MySQL Authorized a recovered (Database)

- Compare several ways to transfer files between Linux hosts (Linux)

- LAN in Ubuntu shared folders to Windows (Linux)

- Effective Java - lazy initialization (Programming)

- Ubuntu 15.04 installation Powercommands 2.0 (Linux)

- Ubuntu 14.04 to install Blender 2.71 (Linux)

- Linux firewall iptables beginner tutorial (Linux)

- Linux system security configuration (Linux)

 
         
  CentOS 6.0 system security level
     
  Add Date : 2018-11-21      
         
       
         
  Windows hosts, whether server or client, the relevant user account and password information may have their own set. How long expired, how often to change your password reminder. So in the great CentOS Linux 6.0 operating system also has such way. Then the following we look at this mode of operation and examples. Of course, this article only mentions one mode of operation, that is, use the chage operate the way, in fact, still there are a lot of ways, as we talk about the future I will use to modify the configuration file in which to achieve the desired effect. /etc/login.defs and / etc / default / useradd CentOS system to improve the security level.

See examples. The following use root for the relevant tests and view the desired effect.

[Root @ localhost ~] # chage

Usage: chage [options] [LOGIN]

Options:

-d, --lastday LAST_DAY set date of last password change to LAST_DAY

-E, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE

-h, --help display this help message and exit

-I, --inactive INACTIVE set password inactive after expiration

to INACTIVE

-l, --list show account aging information

-m, --mindays MIN_DAYS set minimum number of days before password

change to MIN_DAYS

-M, --maxdays MAX_DAYS set maximim number of days before password

change to MAX_DAYS

-W, --warndays WARN_DAYS set expiration warning days to WARN_DAYS

To view the current changes have not been root account information.

[Root @ localhost ~] # chage -l root

Last password change: Jul 30, 2011

Password expires: never

Password inactive: never

Account expires: never

Minimum number of days between password change: 0

Maximum number of days between password change: 99999

Number of days of warning before password expires: 7

[Root @ localhost ~] # chage -m 1 -M 60 -W 5 root

Set the corresponding root information

[Root @ localhost ~] #chage -m 1 -M 60 -W 5 root

See root after the effective date, with the original information corresponding contrast. Significant changes

[Root @ localhost ~] # chage -l root

Last password change: Jul 30, 2011

Password expires: Sep 28, 2011

Password inactive: never

Account expires: never

Minimum number of days between password change: 1

Maximum number of days between password change: 60

Number of days of warning before password expires: 5

See whether the entry into force, and the associated account information

[Root @ localhost home] # passwd -S root

root PS 2011-07-29 1 60 5 -1 (Password set, SHA512 crypt.)
     
         
       
         
  More:      
 
- Struts2 Result Types (Programming)
- How to fix Ubuntu / Mint can not add PPA source of error (Linux)
- KVM installation under CentOS 5.5 (Linux)
- Oracle 11g dataguard main library backup and recovery to the test environment in one database error (Database)
- Android Notification (Programming)
- KVM virtualization of nested virtualization (Linux)
- Install the latest Pinta graphics editing software on Ubuntu 14.04 (Linux)
- Teach you self-built Linux firewall free (Linux)
- MariaDB 10 Multi-source replication (Database)
- Use install_updates upgrade GAMIT / GLOBK (Linux)
- SecureCRT connect virtual machine Linux system (Ubuntu) (Linux)
- Use PuTTY key authentication mechanism for remote login Linux (Linux)
- Sort search algorithm Java - application examples with recursive dichotomy (Programming)
- Linux_Logo - output color ANSI Linux distributions logo command-line tool (Linux)
- MySQL optimization of the relevant Group By (Database)
- Delete specific files using bash directory under Linux (Linux)
- Bash common several configuration files (Linux)
- Talk about jsonp (Programming)
- Ubuntu 14.10 installation SecureCRT 7.3 (Linux)
- To setup NOTRACK and TRACK of conntrack in iptables (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.