Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet92/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   88   89   90   91   92   93   94   95   ...   482
Bog'liq
Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)

[
 62 
]
In the example that follows, we can see the output of this command from a sample 
user account:
Figure 2.11: Output from the chage command
In the output, we can see values for the date of expiration, the maximum number 
of days between password changes, and so on. Basically, it's the same information 
stored in 
/etc/shadow
 but it's much easier to read.
If you would like to change this information, 
chage
 will again be the tool of choice. 
The first example I'll provide is a very common one. When creating user accounts, 
you'll certainly want them to change their password when they first log in.
Unfortunately, not everyone will be keen on doing so. The 
chage
 command allows 
you to force a password change for a user when he or she first logs in. Basically, you 
can set their number of days to expiry to 
0
 as follows:
sudo chage -d 0
You can see the results of this command immediately if you run 
chage -l
 again 
against the user account you just modified:
sudo chage -l
The output will display information regarding the password change:
Figure 2.12: The chage command listing a user that has a required password change period set


Chapter 2

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   88   89   90   91   92   93   94   95   ...   482




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish