Загрузка...

Linux Command Line (19) Disable – Remove UserIDs

We review how an account is locked with a password expire date or if the password has expired and the inactive number of days have passed.

There is also a way to lock the account by setting the account locked with usermod -L userID or passwd -l userID

The status of a user account can be checked by typing sudo passwd -S userID

The account can be unlocked with usermod -U userID or passwd -u userID

To make the user account unusable change the users shell can be set to bin nologin
Another common shell setting to make the account usuable is to set the shell to bin false

To Disable the password aging you use chage -l -1 -m 0 -M 99999 -E -1 userID

Chage userID (will put you in interactive mode to update the chage details)

To delete a userID and keep the home directory files we can type sudo deluser userID
To delete a userID and also remove the home directory we can type sudo --remove-home deluser userID

See the complete LCL playlist at: https://www.youtube.com/watch?v=JMT5CGFxa_4&list=PLy7Kah3WzqrHPrgkBgwzXyfDDCvthdUfl

Website link:
https://thefrugalcomputerguy.com/linux/seriespg.php?ser=10020

Видео Linux Command Line (19) Disable – Remove UserIDs канала MichaelsTechTutorials
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять