A little exercise on displaying dates and changing passwords in a Linux environment

Source: Internet
Author: User

1. Show 1984-11-18 is the first day of 1984

650) this.width=650; "title=" screenshot from 2017-07-19 14-31-19.png "style=" Float:none; "src=" https://s1.51cto.com/ Wyfs02/m02/9c/7b/wkiol1lwyvjtzhtyaachigo6cz4296.png "alt=" Wkiol1lwyvjtzhtyaachigo6cz4296.png "/>

2. Display the current date

650) this.width=650; "title=" screenshot from 2017-07-19 14-32-20 (copy). png "style=" Float:none; "src=" https:// S5.51cto.com/wyfs02/m00/9c/7a/wkiom1lwyviwzeg5aaapzsbuyxk621.png "alt=" Wkiom1lwyviwzeg5aaapzsbuyxk621.png "/>

650) this.width=650; "title=" screenshot from 2017-07-19 14-32-20.png "style=" Float:none; "src=" https://s2.51cto.com/ Wyfs02/m02/9c/7a/wkiom1lwyviicnadaaapzsbuyxk734.png "alt=" Wkiom1lwyviicnadaaapzsbuyxk734.png "/>

# #上面是两种不同的表现形式 # #

3. Modify the password of the student user under Superuser, and student the user to force the password change after the first login

650) this.width=650; "title=" screenshot from 2017-07-19 14-32-52 (copy). png "style=" Float:none; "src=" https:// S5.51cto.com/wyfs02/m00/9c/7b/wkiol1lwyvmr4jcqaafxgfprqc0035.png "alt=" Wkiol1lwyvmr4jcqaafxgfprqc0035.png "/>

# # passwd - e # force Change Password

# #注意: When you use the root user to modify other user passwords, add the user name after passwd

4. Modify the password of the student user under student

650) this.width=650; "title=" screenshot from 2017-07-19 14-43-18 (copy). png "style=" Float:none; "src=" https:// S4.51cto.com/wyfs02/m01/9c/7a/wkiom1lwyvqwjr-caacwbj_xrsu634.png "alt=" Wkiom1lwyvqwjr-caacwbj_xrsu634.png "/>

# #注意: When the user modifies their own password, passwd does not follow the user name

A little exercise on displaying dates and changing passwords in a Linux environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.